Hi Pawel,
Sorry for the late response -- I was swamped with work. :(
On Wed, 2010-04-07 at 11:48 +0200, Pawel p wrote:
> Hallo Group members.
> I have a trace, where packets are cut and I need to expand their
> payload and recompute checksum to have length declared in packet
> headers.
>
> Is netdude tool able to do this? in bach mode (trace is long!).
>
> I asking because I am running fc12; there is not ready to use netdude
> rpm package and I have some problems running it, thus I do not know
> whether it is worth fighting with it.
You can do this in Netdude, but you'll have to write a libnetdude plugin
for it. I'd estimate the amount of code needed at around 30 lines.
You'll need to use a packet iterator to iterate over the trace,
libnd_packet_adjust_len() to modify the packet size, and
libnd_packet_fix() to correct the checksums. I'm happy to explain
further if you decide to implement this in Netdude.
Another tool that might work for you is Scapy.
--
Cheers,
Christian
|