Yusuke Iwase <iwase.yusuke0@...> writes:
> You need to unpack binary IPv4 address too, like as follows.
>
> src_ip = '10.0.0.1'
> nw_src = struct.unpack('!I', ipv4_to_bin(src_ip))[0]
> match = parser.OFPMatch(nw_src=nw_src, dl_type=0x0800)
>
> In addition...
> If you try to match nw_src, you should add Ethertype field (e.g.
dl_type=0x0800).
>
It works!!! Thanks a lot, and thanks for the advice with the Ethertype.
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel