Closed etkaar closed 2 years ago
I think the problem here is how you are building the packet with Scapy and not the netfilterqueue.
This fails not because set_payload()
function of netfilterqueue, but the bytes()
of the scapy Packet object:
packet.set_payload(bytes(pkt))
Closing because this is not netfilterqueue's fault.
After I was able to install NetfilterQueue (see https://github.com/kti/python-netfilterqueue/issues/53), I received a TypeError when using _setpayload() after directly changing a payload attribute.
On Debian Stretch this has worked without any problems for years. At this moment I use Debian Buster 10.2, NetfilterQueue 0.8.1, Python 3.7.3 and python3-scapy 2.4.0-2.
This problem can be fixed using two different ways:
When I remove python3-scapy (2.4.0-2) and update to scapy 2.4.3 via pip3, the error message changes: