when I try to modify IP header field using Scapy and write the modified packet to pcap using wrpcap, the Ethernet Padding layer is changed to Raw.
The packet's show function shows the Padding layer: pktn.show()
###[ Padding ]### load = '\x00\x00\x00\x00\x00\x00'
But the packet's show2 function shows Raw layer: pktn.show2()
###[ Raw ]### load = '\x00\x00\x00\x00\x00\x00'
Any idea why is this and how to keep the Padding layer? Otherwise the Padding bytes are recognized as TCP payload by Wireshark.
Thanks1