https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2611
Summary: text2pcap.pod: add -v to od(1) options
Product: Wireshark
Version: SVN
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Minor
Priority: Low
Component: Documentation
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: rspmn@xxxxxxxx
Created an attachment (id=1868)
--> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=1868)
text2pcap.pod patch
Build Information:
n/a to documentation
--
text2pcap(1) lists the hexdump format understood by text2pcap as the
output of "od -Ax -tx1". By default most od versions suppress duplicate
lines which may cause text2pcap to output a truncated .pcap file. This
can be avoided by using "od -Ax -tx1 -v":
$ dd if=/dev/zero ibs=1c count=42 of=ftpdatazero42.bin
42+0 records in
0+1 records out
42 bytes (42 B) copied, 0.000333301 s, 126 kB/s
$ od -Ax -tx1 ftpdatazero42.bin
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
000020 00 00 00 00 00 00 00 00 00 00
00002a
$ od -Ax -tx1 -v ftpdatazero42.bin
000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000020 00 00 00 00 00 00 00 00 00 00
00002a
$ od -Ax -tx1 ftpdatazero42.bin | text2pcap -t 12345,20 /dev/stdin
ftpdatazero42.pcap
Input from: /dev/stdin
Output to: ftpdatazero42.pcap
Wrote packet of 16 bytes at 0
Read 1 potential packets, wrote 1 packets
$ od -Ax -tx1 -v ftpdatazero42.bin | text2pcap -t 12345,20 /dev/stdin
ftpdatazero42.pcap
Input from: /dev/stdin
Output to: ftpdatazero42.pcap
Wrote packet of 42 bytes at 0
Read 1 potential packets, wrote 1 packets
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.