]> The Tcpdump Group git mirrors - libpcap/commit
Put the code to get a unit number from a device name into a common
authorguy <guy>
Mon, 21 May 2001 07:33:56 +0000 (07:33 +0000)
committerguy <guy>
Mon, 21 May 2001 07:33:56 +0000 (07:33 +0000)
commit469dc3588b3c49cd7b23a293e186b22c42faa555
tree791bc02f11cd4a3657dda7c881ad729be4097abf
parent60673d8144bf86ea00d26e2e0831bf465dc3d7e4
Put the code to get a unit number from a device name into a common
routine, and use it both on HP-UX and other DLPI systems; this means
that, in case there is ever a network device on HP-UX with a number in
the device type name, we'll properly extract the unit number (i.e.,
we'll extract the last number from the name, not the first number) - I
don't think that'll ever happen, but putting it into a common routine is
cleaner in any case.
pcap-dlpi.c