]> The Tcpdump Group git mirrors - libpcap/commit
Handle kernels that don't support PACKET_RESERVE.
authorGuy Harris <[email protected]>
Fri, 13 May 2011 07:24:42 +0000 (00:24 -0700)
committerGuy Harris <[email protected]>
Fri, 13 May 2011 07:24:42 +0000 (00:24 -0700)
commitc3e4329535c3de5b66c418d79f34ac9ea8eae1e2
tree687210a8df8a88421924f60478fbf33520dedba4
parentc1731e7a143a1337317dab2f3137d6ea1d698f15
Handle kernels that don't support PACKET_RESERVE.

If, for some reason, the header files define PACKET_RESERVE but the
kernel fails with ENOPROTOOPT if we use it in getsockopt(), treat it the
same way we treat systems that don't define PACKET_RESERVE in the first
place.  One might argue that this "can't happen", but it apparently did
happen in Debian bug 625443:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625443
pcap-linux.c