]> The Tcpdump Group git mirrors - tcpdump/commit
Try opening interfaces by name first, then by name-as-index.
authorGuy Harris <[email protected]>
Tue, 9 Aug 2016 18:12:35 +0000 (11:12 -0700)
committerGuy Harris <[email protected]>
Tue, 9 Aug 2016 18:12:35 +0000 (11:12 -0700)
commit0bc8e0e01ef0b14ed8663f37ce224f35f5fb496b
tree7b3ea724b0d9f2c4b653b7f6f1f4da37cabf5527
parent9e9347f3dce4a82a4b75230a39d3f382c6f15f2a
Try opening interfaces by name first, then by name-as-index.

Some UN*Xes apparently can have purely numeric interface names, so we
can't unconditionally treat purely numeric interface names as interface
indices.  Do so only for "names" that don't correspond to interfaces.

Fixes GitHub issue #522.
tcpdump.c