aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-util.c
AgeCommit message (Collapse)AuthorFilesLines
2003-03-25AIX's BPF, and thus its tcpdump, appears to use 24 as the link-layerGuy Harris1-1/+14
type for loopback devices; map it to DLT_NULL when reading libpcap files with a major version of 2 and a minor version of 2, and when capturing from an "loN" device on AIX. svn path=/trunk/; revision=7361
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-39/+39
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
2002-06-27Update tethereal to handle the "<description> : <device ID>" interfaceGerald Combs1-2/+9
names that are generated under Windows. Note in pcap-util.c that we may want to separate interface device names and descriptions in the future. svn path=/trunk/; revision=5770
2002-05-18In the Windows capture dialog, place the interface description before theGerald Combs1-32/+41
interface name. svn path=/trunk/; revision=5499
2002-04-25Put in incomplete definitions of "struct mbuf" and "struct rtentry" toGuy Harris1-1/+6
eliminate compiler warnings on Digital UNIX. svn path=/trunk/; revision=5251
2002-04-01From Andrew Feren: on Windows, in the drop-down list for the "Interface"Guy Harris1-2/+45
field in the "Capture Options" dialog, put the descriptive name of the device in parentheses after the actual device path. svn path=/trunk/; revision=5069
2002-03-31From Joerg Mayer: mark function arguments as unused.Guy Harris1-3/+7
svn path=/trunk/; revision=5052
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