]> The Tcpdump Group git mirrors - libpcap/commit
Don't treat all open errors as reasons not to list an interface.
authorGuy Harris <[email protected]>
Sun, 12 Jan 2014 04:38:02 +0000 (20:38 -0800)
committerGuy Harris <[email protected]>
Sun, 12 Jan 2014 04:38:02 +0000 (20:38 -0800)
commitfd04c4ff9f9a6b50fccec7afb18af64433730a2b
treecd8878b995f7d9a0fd1a64cde297237fca34b59b
parent0090376ca82ee0ceda3d92d1c015be2f70ee9d73
Don't treat all open errors as reasons not to list an interface.

Only treat "the capture mechanism doesn't know about this device" and
"you can't capture on the interface because it isn't up" as reasons not
to list it, as there's no point in showing those interfaces to users.
For all other reasons, show it to the user, so they can try to capture
on it and then find out why it doesn't work (e.g., you're not running
with sufficient permissions).
inet.c