I think you might need to specify that it's IP traffic. Try adding "ip" to your flow definition.
--Justin > On Sep 8, 2016, at 7:38 PM, Warsang <wars...@minet.net> wrote: > > Hello, I am trying to add a rule in ryu to drop packets where TTL=0. > However in ovs when I use sudo ovs-ofctl -O OpenFlow14 add-flow 0_0_1 > "nw_ttl=0 actions=DROP" > > And then do: mininet@mininet-vm:~$ sudo ovs-ofctl dump-flows 0_0_1 > > I get NXST_FLOW reply (xid=0x4): > cookie=0x0, duration=495.989s, table=0, n_packets=236, n_bytes=14160, > idle_age=3, priority=65535,dl_dst=01:80:c2:00:00:0e,dl_type=0x88cc > actions=CONTROLLER:65535 > cookie=0x0, duration=496.138s, table=0, n_packets=30, n_bytes=1260, > idle_age=680, priority=0 actions=CONTROLLER:65535 > cookie=0x0, duration=45.276s, table=0, n_packets=135, n_bytes=5670, > idle_age=363, actions=drop > cookie=0x0, duration=1.943s, table=0, n_packets=0, n_bytes=0, idle_age=1, > priority=1,udp6 actions=dec_ttl > > > And when I generate traffic, these packets are not dropped. Any idea why that > is? Thank you in advance. > > _______________________________________________ > discuss mailing list > discuss@openvswitch.org > http://openvswitch.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss