Friday, November 27, 2020

Ryu Controller TCP Library Problems

Hello! I'm sorry if this is not the correct place to ask questions like this. I'm using a Ryu 4.34 controller and I want to do packet matching based on tcp destination port. I printed out the dst_port attribute but an error shows up saying NoneType object doesn't have that attribute. And then I try printing the tcp part of the object (pkt.get_protocol(tcp.tcp)) and it says it's None. But I checked the packets using Scapy and Wireshark and it is an HTTP request packet so it should have a dst_port=80, right? I do the same thing for ethernet and ipv4 and they work normally, so I am confused as to why it doesn't work for TCP. Does anyone know what's up with this?



No comments:

Post a Comment