Hi, On 2015年12月15日 01:29, Ramana Reddy wrote: > I am not getting what each hex decimal and Y represents: > > ['\x02\x04\x05\xb4\x04\x02\x08', '\x00)Y\xa8\x00\x00\x00\x00\x01\x03\x03'] > > On Mon, Dec 14, 2015 at 9:58 PM, Ramana Reddy <[email protected] > <mailto:[email protected]>> wrote: > > When I get SYN packet, I displayed pkt_tcp.option.split(). And below is > the output. > Can some one explain what this output means. Somehow, I am getting what > each hex decimal and Y represents. > > ['\x02\x04\x05\xb4\x04\x02\x08', '\x00)Y\xa8\x00\x00\x00\x00\x01\x03\x03']
As far as I know, TCP packet library of RYU don't have the feature to serialize/parse the tcp option. I will make a patch. Please wait for a while. > > Thanks, > Ramana > > On Mon, Dec 14, 2015 at 3:33 PM, Ramana Reddy <[email protected] > <mailto:[email protected]>> wrote: > > Hi All, > > I would like to know how to set or get TCP options in RYU. > When I print tcp options, its just printing some unreadable symbols. > I have to print each tcp option (mss, timestamps etc). > > In the code simple_switch_13.py : > > In _packet_in_handler module: > > pkt = packet.Packet(msg.data) > pkt_tcp = pkt.get_protocol(tcp.tcp) > > if pkt_tcp: > print pkt_tcp.option > > Can some one tell me how to do that. > > Many thanks, > Ramana > > > > > > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
