Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can i remove packet headers with script

Hi, I wish to remove packet headers as vlan and mpls (maybe other headers in the future) on a pcap file, i have a few problems: 1. I need to do it with a script (Python based)(on windows env)(I have a lot of them so using gui based applications as TraceWrangler takes to much time) 2. I'm able to do so with editcap (it can remove vlan tags, but couldn't find any option for other headers). 3. With editcap i can remove other headers with the -C option, but the only way i was able to check the size and offset of a spesific header is with tshark extract to pdml file, the problem is it takes too long and i don't know why.

Thanks.

How can i remove packet headers with script

Hi, I wish to remove packet headers as vlan and mpls (maybe other headers in the future) on a pcap file, i have a few problems: 1. problems:

  1. I need to do it with a script (Python based)(on windows env)(I have a lot of them so using gui based applications as TraceWrangler takes to much time) 2. time)
  2. I'm able to do so with editcap (it can remove vlan tags, but couldn't find any option for other headers). 3. headers).
  3. With editcap i can remove other headers with the -C option, but the only way i was able to check the size and offset of a spesific header is with tshark extract to pdml file, the problem is it takes too long and i don't know why.

Thanks.