Traceback (most recent call last):
File "payload_read.py", line 14, in decode_message
if pckt[RTP].version == 1:
TypeError: 'netfilterqueue.Packet' object is not subscriptable
pkt.decode_payload_as(RTP) and if pckt[RTP].version == 1: works great while I don't use Netfilterqueue (those are used with scapy library).
Any ideas how could I disect packets with scapy while using netfilterqueue? How can I separate where packet is used by netfilterqueue and where (same packet) by scapy (Don't know any other place where I could ask)
I have a code (well, part of it):
And I get an error:
pkt.decode_payload_as(RTP)
andif pckt[RTP].version == 1:
works great while I don't use Netfilterqueue (those are used with scapy library). Any ideas how could I disect packets with scapy while using netfilterqueue? How can I separate where packet is used by netfilterqueue and where (same packet) by scapy (Don't know any other place where I could ask)