Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^7: filter tcpdump packets

by Anonymous Monk
on Sep 04, 2014 at 19:52 UTC ( [id://1099586]=note: print w/replies, xml ) Need Help??


in reply to Re^6: filter tcpdump packets
in thread filter tcpdump packets

Although in this case your post gives enough information to figure out the apparent issue, showing the code you're running generally helps too. See How do I post a question effectively?

Also, what was meant with "the actual tshark output" is the following:

If your code is this:

my @cmd = ('tshark','-r',$PCAPFILE, qw# -R tcp.options.mss -T fields -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e tcp.options.mss_val #); open my $ts, '-|', @cmd or die "Error opening pipe: $!";

Then please show the output of the following (replacing $PCAPFILE with the actual filename of course):

## from your command line $ tshark -r $PCAPFILE -R tcp.options.mss -T fields -e ip.src \ -e tcp.srcport -e ip.dst -e tcp.dstport -e tcp.options.mss_val

That way we know what the input to Perl looks like.

Although admittedly, in this case, the frame dump actually gave the most important hint as to what's going on (MPLS GRE).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1099586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found