Darren Reed
2011-04-09 02:51:14 UTC
Printing PPI packets with tcpdump does not turn out
to be that hard.
My simple tests have produced the output as below.
It would be worthwhile having some changes made into
the tcpdump code base that were similar to the attached
that print them out.
Darren
19:20:51.470264 , DLT IPV4 (228) len 0, length 76: ip: (tos 0x0, ttl 255, id 509, offset 0, flags [+, DF], proto ICMP (1), length 68)
1.1.1.1 > 1.1.1.2: ICMP echo request, id 35462, seq 3, length 48
0x0000: 0000 0000 0000 00e4 4500 0044 01fd 6000
0x0010: ff01 55b7 0101 0101 0101 0102 0800 45bd
0x0020: 8a86 0003 4d9f c283 0007 2c8c 0809 0a0b
0x0030: 0c0d 0e0f 1011 1213 1415 1617 1819 1a1b
0x0040: 1c1d 1e1f 2021 2223 2425 2627
19:20:52.470238 , DLT IPV4 (228) len 0, length 76: ip: (tos 0x0, ttl 255, id 510, offset 0, flags [+, DF], proto ICMP (1), length 68)
1.1.1.1 > 1.1.1.2: ICMP echo request, id 35462, seq 4, length 48
0x0000: 0000 0000 0000 00e4 4500 0044 01fe 6000
0x0010: ff01 55b6 0101 0101 0101 0102 0800 45cc
0x0020: 8a86 0004 4d9f c284 0007 2c7b 0809 0a0b
0x0030: 0c0d 0e0f 1011 1213 1415 1617 1819 1a1b
0x0040: 1c1d 1e1f 2021 2223 2425 2627
to be that hard.
My simple tests have produced the output as below.
It would be worthwhile having some changes made into
the tcpdump code base that were similar to the attached
that print them out.
Darren
19:20:51.470264 , DLT IPV4 (228) len 0, length 76: ip: (tos 0x0, ttl 255, id 509, offset 0, flags [+, DF], proto ICMP (1), length 68)
1.1.1.1 > 1.1.1.2: ICMP echo request, id 35462, seq 3, length 48
0x0000: 0000 0000 0000 00e4 4500 0044 01fd 6000
0x0010: ff01 55b7 0101 0101 0101 0102 0800 45bd
0x0020: 8a86 0003 4d9f c283 0007 2c8c 0809 0a0b
0x0030: 0c0d 0e0f 1011 1213 1415 1617 1819 1a1b
0x0040: 1c1d 1e1f 2021 2223 2425 2627
19:20:52.470238 , DLT IPV4 (228) len 0, length 76: ip: (tos 0x0, ttl 255, id 510, offset 0, flags [+, DF], proto ICMP (1), length 68)
1.1.1.1 > 1.1.1.2: ICMP echo request, id 35462, seq 4, length 48
0x0000: 0000 0000 0000 00e4 4500 0044 01fe 6000
0x0010: ff01 55b6 0101 0101 0101 0102 0800 45cc
0x0020: 8a86 0004 4d9f c284 0007 2c7b 0809 0a0b
0x0030: 0c0d 0e0f 1011 1213 1415 1617 1819 1a1b
0x0040: 1c1d 1e1f 2021 2223 2425 2627