<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am trying to install a rule via the following command:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<span style="color:rgb(68,68,68)"> fm = of.ofp_flow_mod()<br> fm.match.in_port = packet_in.in_port<br> fm.match.nw_src = IPAddr(ip.srcip)<br> fm.idle_timeout = 33<br>
fm.hard_timeout = 44<br><br> for connection in core.openflow._connections.values():<br> #connection.send(fm)<br></span></blockquote><br></div>I want the matching rule to have source ip address of incoming packet (and also port).<br>
<br></div>But this is the rule which is installed in switches(it does not include source ip, nw_src):<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<span style="color:rgb(102,102,102)">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=</span><br></blockquote><br></div>I also do not know how to add action "DROP". <br><br></div>Any help is appreciated.<br></div>Nibble<br></div>