I need help with the ConditionalField in Scapy. I am having trouble with the lambda function, how can I get the lambda function to check for a specific layer in the packet?
At present I have the code
lamda pkt: pkt.haslayer(RTP) == 1
This doesnt appear to work, I dont think pkt contains the contents of the pkt, how can I get around this?
Thanks for any help