<div dir="ltr"><div><div><div><div><div><div>Hi all,<br></div>I have a tcp traffic with l3_learning and I noticed that when a flow is installed there's also the source TCP port field.<br></div>I wouldn't like have this match.<br>
</div>I've tried to create the match rule from the packet and wildcard the field tp_src:<br><br>actions = []<br>        actions.append(of.ofp_action_dl_addr.set_dst(mac))<br>        actions.append(of.ofp_action_output(port = prt))<br>
        match = of.ofp_match.from_packet(packet, inport)<br>        match.dl_src = None # Wildcard source MAC<br>        match.tp_src=None<br>        msg = of.ofp_flow_mod(command=of.OFPFC_ADD,<br>                                idle_timeout=FLOW_IDLE_TIMEOUT,<br>
                                hard_timeout=of.OFP_FLOW_PERMANENT,<br>                                buffer_id=event.ofp.buffer_id,<br>                                actions=actions,<br>                                match=of.ofp_match.from_packet(packet,<br>
                                                               inport)))<br>        event.connection.send(msg.pack())<br><br></div>but it doesn't work.<br><br></div>Have you got any suggestions?<br><br></div>Thanks<br>
<div><div><div><br><div><div><div><br clear="all"><div><br>-- <br>Silvia Fichera
</div></div></div></div></div></div></div></div>