I need to generate MaACsec traffic via scapy, I've tried to follow scapy.contrib.macsec .
Here is what i tried:
import scapy.all as scapy
from scapy.layers.inet import Ether
from scapy.contrib.macsec import MACsec
from scapy.layers.inet import IP, TCP
from scapy.all import *
data='test_MACsec'
pkt = Ether(dst="00:00:01:00:00:01", src="00:10:94:00:00:02") / MACsec() / data
sendp(pkt, iface="eth2", count=400)
Error I get in wireshark capture:
Any suggestions about how I can fix this issue?