path: root/nametoaddr.c
diff options
authorguy <guy>2001-01-17 07:42:37 +0000
committerguy <guy>2001-01-17 07:42:37 +0000
commit9c3650645f904fed9422797d022ec50cb56c4910 (patch)
tree5b566ceb645d7e4e8e5aed62a292508527f0928e /nametoaddr.c
parent2f454fd0047454abd435a905ac052185cd8a2fd6 (diff)
At least some libc5 systems don't have <netinet/if_ether.h> but do have
<net/if_arp.h>, and the stuff we want is in <net/if_arp.h>, so include that rather than <netinet/if_ether.h>. At least some libc5 systems don't have <netpacket/packet.h>, but have a <sys/socket.h> that includes <linux/socket.h>, and the latter defines SO_ATTACH_FILTER if the kernel is a 2.2 or later kernel, so there exist systems that have SO_ATTACH_FILTER defined but don't have <netpacket/packet.h>. Work around that by: checking whether we have PF_PACKET sockets by checking whether PF_PACKET is defined, not whether we have <netpacket/packet.h> (but we still check whether we have <netpacket/packet.h> before including it); if PF_PACKET is defined but we don't have <netpacket/packet.h>, include <linux/if_packet.h> to get the relevant definitions.
Diffstat (limited to 'nametoaddr.c')
0 files changed, 0 insertions, 0 deletions