http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51854
User: cmaynard
Date: 2013/09/08 06:04 PM
Log:
OK, allow either positive or negative offsets no matter if we're chopping from the beginning or the end.
Given the following example, it's now possible to chop the 10 bytes depicted from the 100 byte packet 4 different ways and achieve the exact same results:
<-------- 100 --------> Methods:
1) editcap -C 20:10 in.pcap out.pcap
+------+----+---------+ 2) editcap -C -80:10 in.pcap out.pcap
| 20 | 10 | 70 | 3) editcap -C -70:-10 in.pcap out.pcap
+------+----+---------+ 4) editcap -C 30:-10 in.pcap out.pcap
Directory: /trunk/doc/
Changes Path Action
+2 -2 editcap.pod Modified
Directory: /trunk/
Changes Path Action
+37 -30 editcap.c Modified