Hi,

The logical sum of TCP flags value should work.
e.g., flag = tcp.TCP_SYN | tcp.TCP_FIN

- The definitions of TCP flags:
https://github.com/osrg/ryu/blob/e3ebed794332ca23a0f67580fd3230612d9d7b07/ryu/lib/packet/tcp.py#L42

Regards,
Iwase


2019年12月3日(火) 9:33 Walaa Muhayya <walaa.muha...@gmail.com>:

> Hi ,
> I want to match certain TCP flags such as SYN, FYN in each TCP connection
> sent between host and destination. In RYU source code for openFlow13 what
> should exactly modify?
> Actually, in the switch feature class I do:
>
> match = parse.OFPMatch(eth_type=2048, eth_type=0x0800, ip_proto=6,
> tcp_flags=3)
> In Packet-In class I just extract the tcp.tcp packet from the original
> data. Then, I print its result to see what its contents are. Thus, I didn`t
> find the flags except an ACK flag.
>
> However, In general, What should I modify in the code to print in the
> controller side each SYN and FIN flags for every TCP connection sent
> between two hosts?
> If you do a simple code example for me will be so appreciated.
>
> Thank you
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to