Ethereal-dev: [Ethereal-dev] IP defragment, enjoy, please consider this for cvs

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ronnie Sahlberg" <rsahlber@xxxxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 00:00:19 +1000
Hi list,

new patch for ethereal to add virtual packets, and defragmented ip packets
to
ethereal.
Fixed stupid bug in packet-ip.c (when handing a key to g_hash_insert(), dont
just rip it
out from under the feet of glib, glib does not like that :-( )

It should be ok now. It has been tested on several captures by several
people.


As usual,
ip_defragment  in packet-ip.c controls this behaviour:
  ==0 (as in this patch) old original behaviour is invoked. nothing has
changed.
  ==1 defragment all ip packets and present the defragmented packets as
virtual ip packets.
          this ip packet has no checksum, no flags, no offset fields.
          this ip packet has no options
          this ip packet has the same capture time as the previous packet
(i.e. last fragment required to successfully
          defragment the packet).
          this mode currently increases the memory requirement of ethereal
since the defragmented packets
          are all stored in memory.

Please add to your cvs tree, or tell me why and what needs to be changed in
order for it to enter the tree.

Perhaps someone who knows how the widgetset works can add a button somewhere
in the gui to toggle this behaviour on/off?
Perhaps also a cmd-line switch?

best regards
    ronnie s


Attachment: ethereal.diff
Description: Binary data

Attachment: A995.cap
Description: Binary data