]> The Tcpdump Group git mirrors - libpcap/commit
Isn't Linux fun? You might have a distribution whose kernel is a shiny
authorguy <guy>
Sat, 6 Jul 2002 21:22:35 +0000 (21:22 +0000)
committerguy <guy>
Sat, 6 Jul 2002 21:22:35 +0000 (21:22 +0000)
commit541d54330f9e5d807827434908f6b6fc211683a1
treeaf306b51695784038edc8a04a4b895d0eb2b1e4d
parente61a5c069bc9acffcd4567bab420d4c4c4165fca
Isn't Linux fun?  You might have a distribution whose kernel is a shiny
new 2.2-or-later kernel, with PF_PACKET sockets including SOL_PACKET,
but with an older version of the C library whose headers don't define
SOL_PACKET.

On those systems, define SOL_PACKET to have the value it has in the
2.2.0 kernel; this means we can get rid of the "#ifdef
SOL_PACKET"/#endif stuff wrapped around the code to turn promiscuous
mode on or off (we don't want that #ifdeffed out, as if it's absent we
won't pay attention to the "promiscuous mode" flag argument to
"pcap_open_live()").
pcap-linux.c