To match on IP fields, you must specify that the dl_type is IP.

A "drop" action is simply an empty action list.

-- Murphy

On Jul 23, 2013, at 5:13 PM, nibble nibble wrote:

> Hi,
> 
> I am trying to install a rule via the following command:
> 
>                 fm = of.ofp_flow_mod()
>                 fm.match.in_port = packet_in.in_port
>                 fm.match.nw_src = IPAddr(ip.srcip)
>                 fm.idle_timeout = 33
>                 fm.hard_timeout = 44
> 
>                     for connection in core.openflow._connections.values():
>                               #connection.send(fm)
> 
> I want the matching rule to have source ip address of incoming packet (and 
> also port).
> 
> But this is the rule which is installed in switches(it does not include 
> source ip, nw_src):
> cookie=0, duration_sec=13s, duration_nsec=119000000s, table_id=0, 
> priority=32768, n_packets=6, n_bytes=252, 
> idle_timeout=33,hard_timeout=44,actions=
> 
> I also do not know how to add action "DROP". 
> 
> Any help is appreciated.
> Nibble

Reply via email to