]> The Tcpdump Group git mirrors - tcpdump/commit
Default to first interface from pcap_findalldevs() 482/head
authorSimon Nicolussi <[email protected]>
Mon, 21 Sep 2015 20:12:20 +0000 (22:12 +0200)
committerSimon Nicolussi <[email protected]>
Mon, 21 Sep 2015 22:02:49 +0000 (00:02 +0200)
commit4494bd9c7d30d770502134d4684ec506c21fee1d
treee4513ae4e71a63bcc5da021d572ad7614e7baace
parent1f1771153757b79382d035b61d4c2c52ef4c9fb2
Default to first interface from pcap_findalldevs()

Only call (deprecated) pcap_lookupdev() as a last resort, as it doesn't
necessarily agree with pcap_findalldevs() on the order of interfaces and
the -D and -i options already rely upon the latter function's behaviour.
tcpdump.c