[pox-dev] Wildcard tp_src
Silvia Fichera
fichera.sil at gmail.com
Thu Nov 28 06:56:02 PST 2013
Hi all,
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.
I wouldn't like have this match.
I've tried to create the match rule from the packet and wildcard the field
tp_src:
actions = []
actions.append(of.ofp_action_dl_addr.set_dst(mac))
actions.append(of.ofp_action_output(port = prt))
match = of.ofp_match.from_packet(packet, inport)
match.dl_src = None # Wildcard source MAC
match.tp_src=None
msg = of.ofp_flow_mod(command=of.OFPFC_ADD,
idle_timeout=FLOW_IDLE_TIMEOUT,
hard_timeout=of.OFP_FLOW_PERMANENT,
buffer_id=event.ofp.buffer_id,
actions=actions,
match=of.ofp_match.from_packet(packet,
inport)))
event.connection.send(msg.pack())
but it doesn't work.
Have you got any suggestions?
Thanks
--
Silvia Fichera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131128/88a9dafc/attachment.htm>
More information about the pox-dev
mailing list