tcpdump mailing list archives
Extra #ifdef's required for pcap-linux.c
From: Darren Reed <darren.reed () oracle com>
Date: Wed, 30 Jun 2010 15:10:52 -0700
Linux has defined a large number of values for dummy ARP header types (<net/if_arp.h>) that are not present in the official IANA listing. See the hardware type table here: http://www.iana.org/assignments/arp-parameters/arp-parameters.xhtml and compare it with the list found in pcap-linux.c. One of my current goals is to get pcap-linux.c to compile and function on Solaris using PF_PACKET in Solaris and after internal discussion, we're not entirely keen on defining all of the extra symbols found on Linux given that they have no actual basis. The attached diff introduces complimentary #ifdef's for all of the Linux extras, of which there is already some present. This should also make pcap-linux.c friendlier to all Linuxes. btw, the above table also suggests that the Linux handling of type 15, frame relay, is incorrect. Darren
Attachment:
pcap-linux.c.diff
Description:
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Extra #ifdef's required for pcap-linux.c Darren Reed (Jun 30)