]> The Tcpdump Group git mirrors - libpcap/commit
Work around annoying Android problem.
authorGuy Harris <[email protected]>
Fri, 21 Mar 2014 17:57:05 +0000 (10:57 -0700)
committerGuy Harris <[email protected]>
Thu, 26 Feb 2015 01:30:44 +0000 (17:30 -0800)
commit28b59eb80912652180a09377690c72b454ca989b
treeab36995c1a3259c91eb76b90a52bc9ff8521ca25
parent35d5aaa95d2fa20e7f4a1c36cf4b56040a9f243d
Work around annoying Android problem.

For various annoying reasons having to do with DHCP software, some
versions of Android give the mobile-phone-network interface an ARPHRD_
value of ARPHRD_ETHER, even though the packet supplied by that interface
have no link-layer header, and begin with an IP header, so that the
ARPHRD_ value should be ARPHRD_NONE.

Detect those devices by checking the device name, and use DLT_RAW for them.
pcap-linux.c