editcap: add new option (-a) to help
authorMartin Mathieson <martin.r.mathieson@googlemail.com>
Sun, 28 Jun 2015 12:31:14 +0000 (13:31 +0100)
committerAnders Broman <a.broman58@gmail.com>
Mon, 29 Jun 2015 02:41:54 +0000 (02:41 +0000)
Change-Id: Ic1a07e29d30d96bf1dd86e10b198c42dd9349838
Reviewed-on: https://code.wireshark.org/review/9198
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
doc/editcap.pod

index 33ed59ffc2e4e3850be3fbff5ca32fa8b9e97a42..d816926c2036c9afdd1a56180a2d480b90b37521 100644 (file)
@@ -6,6 +6,7 @@ editcap - Edit and/or translate the format of capture files
 =head1 SYNOPSIS
 
 B<editcap>
+S<[ B<-a> E<lt>frame:commentE<gt> ]>
 S<[ B<-A> E<lt>start timeE<gt> ]>
 S<[ B<-B> E<lt>stop timeE<gt> ]>
 S<[ B<-c> E<lt>packets per fileE<gt> ]>
@@ -58,6 +59,8 @@ B<Editcap> can also be used to remove duplicate packets.  Several different
 options (B<-d>, B<-D> and B<-w>) are used to control the packet window
 or relative time window to be used for duplicate comparison.
 
+B<Editcap> can be used to assign comment strings to frame numbers.
+
 B<Editcap> is able to detect, read and write the same capture files that
 are supported by B<Wireshark>.
 The input file doesn't need a specific filename extension; the file
@@ -75,6 +78,12 @@ file; B<editcap -F> provides a list of the available output formats.
 
 =over 4
 
+=item -a  E<lt>framenum:commentE<gt>
+
+For the specificed frame number, assign the given comment string.
+Can be repeated for multiple frames.  Quotes should be used with comment
+strings that include spaces.
+
 =item -A  E<lt>start timeE<gt>
 
 Saves only the packets whose timestamp is on or after start time.
@@ -392,6 +401,10 @@ in a single pass, use any of the 8 possible methods provided below:
     7) editcap -C -45:20 -C -60:-10 capture.pcap chopped.pcap
     8) editcap -C -45:20 -C 15:-10 capture.pcap chopped.pcap
 
+To add comment strings to the first 2 input frames, use:
+
+    editcap -a "1:1st frame" -a 2:Second capture.pcap capture-comments.pcap
+
 =head1 SEE ALSO
 
 pcap(3), wireshark(1), tshark(1), mergecap(1), dumpcap(1), capinfos(1),