- Following is the snippet of my code.
- It opens a pcap file called test.
File : https://easyupload.io/w81oc1
- Edits a value called as QQIC.
- Creates a new pcap file.
from scapy.all import * from scapy.utils import rdpcap from scapy.utils import wrpcap import scapy.contrib.igmpv3 #Read the pcap file pkt = rdpcap("test.pcap") #Edit the value of qqic pkt[0]['IGMPv3mq'].qqic = 30 # Writ it to the pcap file. #wrpcap("final.pcap",pkt)
- All this works fine.
- However, when I check the pcap, I get an error stating that the checksum is invalid.
- Cant figure out a way to re compute the check sum.