]> The Tcpdump Group git mirrors - libpcap/commit
Don't assume that device entries in /sys/class/net aren't directories.
authorGuy Harris <[email protected]>
Sun, 2 Dec 2012 04:46:31 +0000 (20:46 -0800)
committerGuy Harris <[email protected]>
Sun, 2 Dec 2012 04:47:14 +0000 (20:47 -0800)
commitf6ffc3812e4522b67187bcc2d95aabb0d8d159d6
tree704a85745ee0c858e67d4a281d3c813391ce303b
parent06caa319fa7711b75441591af669d068d907279d
Don't assume that device entries in /sys/class/net aren't directories.

They're directories in older kernels, and symlinks to directories in
newer kernels.  Instead, check whether there's a "subsystem" entry
underneath them.  Ignore "." and "..", and also ignore plain files (as
there's nothing underneath plain files).
pcap-linux.c