MAN page from RedHat 7.X ethereal-0.9.2-1.i386.rpm
Section: The Ethereal Network Analyzer (1)
editcap - Edit and/or translate the format of capture files
file format ][ -T
encapsulation type ][ -r
snaplen ][ -t
time adjustment ][ -h
is a program that reads a saved capture file and writes someor all of the packets in that capture file to another capture file. Editcap
knows how to read libpcap
capture files, including thoseof tcpdump
, and other tools that write captures in thatformat. In addition, Editcap
can read capture files from snoop
, Shomiti/Finisar Surveyor
, Novell LANalyzer
,Network General/Network Associates DOS-based Sniffer
(compressed oruncompressed), Microsoft Network Monitor
, CincoNetworks NetXRay
, Network Associates Windows-based Sniffer
router debug output, HP-UX
, the dump output from Toshiba's ISDN
routers, the outputfrom i4btrace
from the ISDN4BSD
project, the output in IPLog
format from the Cisco Secure Intrusion Detection System, pppd logs
(pppdump format), the output from VMS
utility, the textoutput from the DBS Etherwatch VMS
utility, and traffic capture filesfrom Visual Networks' Visual UpTime. There is no need to tellEditcap
what type of file you are reading; it will determine the filetype by itself. Editcap
is also capable of reading any of these fileformats if they are compressed using gzip. Editcap
recognizes thisdirectly from the file; the '.gz' extension is not required for thispurpose.
By default, it writes the capture file in libpcap format, and writesall of the packets in the capture file to the output file. The -Fflag can be used to specify the format in which to write the capturefile; it can write the file in libpcap format (standard libpcapformat, a modified format used by some patched versions of libpcap,the format used by Red Hat Linux 6.1, or the format used by SuSE Linux6.3), snoop format, uncompressed Sniffer format, MicrosoftNetwork Monitor 1.x format, the format used by Windows-based versionsof the Sniffer software, and the format used by Visual Networks'software.
A list of packet numbers can be specified on the command line; thepackets with those numbers will not be written to the capture file,unless the -r flag is specified, in which case only those packetswill be written to the capture file. Ranges of packet numbers can bespecified as start-end, referring to all packets from start toend (removing them all if -r isn't specified, including them allif -r is specified).
If the -s flag is used to specify a snapshot length, frames in theinput file with more captured data than the specified snapshot lengthwill have only the amount of data specified by the snapshot lengthwritten to the output file. This may be useful if the program that isto read the output file cannot handle packets larger than a certain size(for example, the versions of snoop in Solaris 2.5.1 and Solaris 2.6appear to reject Ethernet frames larger than the standard Ethernet MTU,making them incapable of handling gigabit Ethernet captures if jumboframes were used).
If the -t flag is used to specify a time adjustment, the specifiedadjustment will be applied to all selected frames in the capture file.The adjustment is specified as [-]seconds[.fractional seconds].For example, -t 3600 advances the timestamp on selected frames by onehour while -t -0.5 reduces the timestamp on selected frames byone-half second. This feature is useful when synchronizing dumpscollected on different machines where the time difference between thetwo machines is known or can be estimated.
If the -T flag is used to specify an encapsulation type, theencapsulation type of the output capture file will be forced to thespecified type, rather than being the type appropriate to theencapsulation type of the input capture file. Note that this merelyforces the encapsulation type of the output file to be the specifiedtype; the packet headers of the packets will not be translated from theencapsulation type of the input capture file to the specifiedencapsulation type (for example, it will not translate an Ethernetcapture to an FDDI capture if an Ethernet capture is read and '-Tfddi' is specified).
- Sets the file format of the output capture file.
- Sets the packet encapsulation type of the output capture file.
- Causes the packets whose packet numbers are specified on the commandline to be written to the output capture file, and no other packets tobe written to the output capture file.
- Causes editcap to print a number of messages while it's working.
- Sets the snapshot length to use when writing the data.
- Sets the time adjustment to use on selected frames.
- Prints the version and options and exits.
is part of the Ethereal
distribution. The latest versionof Ethereal
can be found at http://www.ethereal.com
Original Author -------- ------ Richard Sharpe <sharpeAATTns.aus.com>
Contributors ------------ Guy Harris <guyAATTalum.mit.edu>
- SEE ALSO
This document was created byman2html,using the manual pages.