Ethereal-dev: [Ethereal-dev] IP defragment

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: Wed, 4 Apr 2001 00:15:50 +1000
Hi list

new diff against current cvs.

as usual:
change ip_defragment to TRUE in packet-ip.c and recompile to get
defragmentation.


I tried with having a it switchable from the Preferences menu but it did not
work properly.
For runtime on/off switching of this feature I need to dig a lot more in
ethereal.

It works quite well right now, except that it is not possible to switch
on/off
during runtime.


Guy:
Does rescan_packets() cause the cf->frame_data list to be built from
scratch?
 if not, that might explain why it didnt work.
During runtime, by switching ip-defragment on : caused the packets to be
defragmented and
inject_packet() was called, however the packets were not displayed on the
screen.
During runtime, by switching ip-defragment off caused a segv, as if the
fdata list still tried
to dereference the stuff I freed in xxx_init(). (wtap structure or the
buffer for the defragmented
packet?)
I will look into that during the next few days.



Attachment: defragment.diff
Description: Binary data