tool which go with wireshark which can help you:
editcap -s 52
What it does: it chos everything after 52 bytes from packet. 52 bytes is enough to capture L2/L3/L4 headers.
After this operation packets in file will be like this:
And at the end you will see - Packet size limited during capture.
This method is usefull when debugging communication problems, which is not related to Application layer.
You can check additional options of editcap, using editcap -h:
Usage: editcap [options] ...
A single packet or a range of packets can be selected.
Packet selection:
-r keep the selected packets; default is to delete them.
-A
to) the given time (format as YYYY-MM-DD hh:mm:ss).
-B
given time (format as YYYY-MM-DD hh:mm:ss).
Duplicate packet removal:
-d remove packet if duplicate (window == 5).
-D
Valid
NOTE: A
useful to print MD5 hashes.
-w
LESS THAN
A
(e.g. 0.000001).
NOTE: The use of the 'Duplicate packet removal' options with
other editcap options except -v may not always work as expected.
Specifically the -r, -t or -S options will very likely NOT have the
desired effect if combined with the -d, -D or -w.
Packet manipulation:
-s
-C
chop at the packet beginning, negative values at the
packet end.
-t
-S
strict chronological increasing order. The
adjustment> is specified in relative seconds with
values of 0 or 0.000001 being the most reasonable.
A negative adjustment value will modify timestamps so
that each packet's delta time is the absolute value
of the adjustment specified. A value of -0 will set
all packets to the timestamp of the first packet.
-E
that a particular packet byte will be randomly changed.
Output File(s):
-c
based on uniform packet counts
with a maximum of
-i
based on uniform time intervals
with a maximum of
-F
an empty "-F" option will list the file types.
-T
default is the same as the input file.
an empty "-T" option will list the encapsulation types.
Miscellaneous:
-h display this help and exit.
-v verbose output.
If -v is used with any of the 'Duplicate Packet
Removal' options (-d, -D or -w) then Packet lengths
and MD5 hashes are printed to standard-out.
No comments:
Post a Comment