aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-util.c
AgeCommit message (Collapse)AuthorFilesLines
2001-11-09Fixes from Kazushi Sugyo:Guy Harris1-2/+5
1) print the payload length in AH headers correctly (the field's value is length of the payload, minus 2, divided by 2, so we have to add 2 before multiplying by 2); 2) correctly handle, in an SIOCGIFCONF list, entries whose address has an "sa_len" field less than the size of a "struct sockaddr" (the length of the address in an entry is the maximum of the real length and the size of a "struct sockaddr"). svn path=/trunk/; revision=4186
2001-11-09Put in an XXX note indicating that if we conclude we're using the AIXGuy Harris1-1/+7
libpcap, we may also want to return a flag indicating that we have to map seconds/nanoseconds in the packet header to seconds/microseconds. svn path=/trunk/; revision=4185
2001-11-09Wrap calls to "pcap_datalink()" in a routine that attempts to compensateGuy Harris1-0/+439
for AIX 5.x's non-standard libpcap, where "pcap_datalink()" doesn't return DLT_ values, it returns RFC 1573 ifType values. Put that wrapper, and the routine to get the interface list, in a separate file, for packet-capture utility routines, so not everybody who includes "util.h" needs to include <pcap.h>. Fix up the Wiretap hack for dealing with said incompatibility to use the correct ifType value for Token Ring. svn path=/trunk/; revision=4184