Greetings, Let me explain the context first. I have an application that filters pcap files in bulk. And then I got some pcap files from a third part, and the application just would not work. After analyzing this pcap file, I found out that there are 4 extra octets in the beginning of every packet in the file (analysis made by extracting the raw data from the pcap file). Due to these bytes, all the information is shifted, so the bytes informing that it is an IP packet are the 16th and 17th instead of the 12th and 13th expected. However, wireshark can read this file just fine. So here are the questions: 1) Is it possible to convert this file to remove these extra octets? 2) Why would there be these extra octets? 3) How does wireshark detect it? asked 06 Dec '13, 04:51 Lacovisk edited 07 Dec '13, 14:52 Guy Harris ♦♦ |
One Answer:
answered 06 Dec '13, 04:57 Jasper ♦♦ |
That's probably a VLAN tag. You should see the following in the Packet details pane, if it is a VLAN tag.
Based on the ethertype: 0x8100 for a VLAN tagged frame. 0x0800 for a 'regular' IP frame.
If it is a VLAN tag: see the answer of @Jasper or use tcprewrite
Regards
Kurt
VLAN tag! Of course, silly me!
Thanks very much!