Commit Graph

11 Commits

Author SHA1 Message Date
Guy Harris 5f4ed6f6f8 Clear the interface list and free up interface names whenever a new
capture is read.

"interface_anzahl" is always <= MAX_INTERFACES, so we don't need to
check array indices against MAX_INTERFACES when iterating over all known
interfaces.

svn path=/trunk/; revision=9577
2004-01-06 22:05:37 +00:00
Guy Harris 77e43b09ea Don't add an interface to the interface list if we already have
MAX_INTERFACES interfaces in the list.

Make "found" a gboolean.

svn path=/trunk/; revision=9576
2004-01-06 21:11:04 +00:00
Guy Harris be2736adcf Have a pseudo-header for Ethernet packets, giving the size of the FCS -
0 means "there is no FCS in the packet data", 4 means "there is an FCS
in the packet data", -1 means "I don't know whether there's an FCS in
the packet data, guess based on the packet size".

Assume that Ethernet encapsulated inside other protocols has no FCS, by
having the "eth" dissector assume that (and not check for an Ethernet
pseudo-header).

Have "ethertype()" take an argument giving the FCS size; pass 0 when
appropriate.

Fix up Wiretap routines to set the pseudo-header.  This means we no
longer use the "generic" seek-and-read routine, so get rid of it.

svn path=/trunk/; revision=8574
2003-10-01 07:11:49 +00:00
Guy Harris c45515079b From Alfred Koebler:
add interpretation of chain position;

	add a preference to interpret the new file format used by fw
	monitor options -u/-s.

svn path=/trunk/; revision=8169
2003-08-16 00:29:15 +00:00
Guy Harris 96524f20bc There are 10 bytes of interface name in the header; make the buffer for
the interface name 10+1 bytes (1 byte for a terminating null - we
mustn't assume there's one in the header, as *no* Ethereal dissector
should ever make assumptions about file contents that would cause
misbehavior) rather than 20 bytes (the extra 9 bytes wouldn't be used
and aren't necessary), and pass the size of the buffer to
"tvb_get_nstringz0()" rather than the size of the field in the packet.

svn path=/trunk/; revision=7856
2003-06-12 07:37:30 +00:00
Guy Harris 644d19129a From Alfred Koebler: add support for a column for the interface and
direction in Firewall-1 monitor files.

svn path=/trunk/; revision=6771
2002-12-10 00:12:59 +00:00
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
Guy Harris c67f736679 The name "interface" causes compilation problems with MSVC++; use
"interface_name" instead.

svn path=/trunk/; revision=5979
2002-08-11 22:34:55 +00:00
Jörg Mayer 526ad6dcd4 Remove some unused includes.
svn path=/trunk/; revision=5971
2002-08-08 21:42:05 +00:00
Guy Harris 59f81a75fc Make "dissect_fw1()" static.
Get rid of the redundant "fw1_" in the "summary in tree" preference name
(the full name is "fw1.summary_in_tree", so you don't need another
"fw1_" in there).

svn path=/trunk/; revision=5970
2002-08-08 09:33:26 +00:00
Guy Harris 1882579b7e From Alfred Koebler: support for interpreting Ethernet captures as
CheckPoint FireWall-1 monitor files (those files look like snoop files
for Ethernet).

svn path=/trunk/; revision=5969
2002-08-08 09:28:11 +00:00