Commit Graph

10 Commits

Author SHA1 Message Date
Jörg Mayer 7c4176d868 Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Jörg Mayer 173fe5aef4 Replace the types from sys/types.h and netinet/in.h by their glib.h
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-08-02 23:36:07 +00:00
Gerald Combs 83dc23831a Update tethereal to handle the "<description> : <device ID>" interface
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-06-27 22:39:16 +00:00
Gerald Combs 0bc4c2d329 In the Windows capture dialog, place the interface description before the
interface name.

svn path=/trunk/; revision=5499
2002-05-18 02:41:46 +00:00
Guy Harris 45cffd9f12 Put in incomplete definitions of "struct mbuf" and "struct rtentry" to
eliminate compiler warnings on Digital UNIX.

svn path=/trunk/; revision=5251
2002-04-25 22:03:54 +00:00
Guy Harris 8ae18ded80 From Andrew Feren: on Windows, in the drop-down list for the "Interface"
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-04-01 03:55:44 +00:00
Guy Harris 2eb1990b0b From Joerg Mayer: mark function arguments as unused.
svn path=/trunk/; revision=5052
2002-03-31 21:05:47 +00:00
Guy Harris 45900852ff Fixes from Kazushi Sugyo:
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-09 08:16:25 +00:00
Guy Harris 4279815244 Put in an XXX note indicating that if we conclude we're using the AIX
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-09 07:51:01 +00:00
Guy Harris 40b22f317b Wrap calls to "pcap_datalink()" in a routine that attempts to compensate
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
2001-11-09 07:44:51 +00:00