tcpdump mailing list archives

inquiry on variable insertion on tcpdump code


From: "Ignacio, Domingo Jr Ostria - igndo001" <DomingoJr.Ignacio () postgrads unisa edu au>
Date: Tue, 1 Jul 2008 13:34:20 +0930

Hello everyone,

Good day!

I am using tcpdump in my linux system to sniff and capture tcp packet
headers. 

I  inserted a new variable, srtt, into  the print_tcp.h header file  and
tcp.c source code.
I want  to print/output/capture  the inserted variable srtt into  the
tcp packet headers once I run tcpdump. 
Any idea on how to go about this?

However, once I run tcpdump with all the changes I made (of course,
after configuring and making) and  I got an error:

Bad header length and <bad opt>, header length too short<20.

I tried to increase the snap length to 1514 but I still got the same
errors. What seems to be the problem, anyone? Thanks!
(Command: tcpdump tcp -nvvvs 1514 -i eth0)

Also, I cannot see the inserted srtt variable in the tcpdump trace
files. Any idea on these guys?

 Help would be appreciated.

Cheers, Dom


-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: