Hi, Which match-fields are you setting in the Flow? For setting Source and Destination Port Addresses (tp_dst or tp_src), OpenFlow protocol requires you to set the Network Protocol (nw_proto) match-field as well. This field tells the datapath what header to expect next after the IP header. A nw_proto=6 indicate TCP packets, while nw_proto=17 indicate UDP. Once this field is set, the tp_dst and tp_src can be set and assigned value, otherwise these two fields are ignored/wildcarded by default.
You can read about it further on page 4 and page 8 of the OpenFlow switch specification document (version 1.0.0). Regards, Khan On Wed, Sep 28, 2011 at 8:13 PM, Shrutarshi Basu <ba...@cs.cornell.edu>wrote: > Hi, > I'm trying to install a flow that matches on IP as well as port numbers. > I'm using the flow provided by calling extract_flow() on a packet as the > argument to install_datapath_flow() but if I use 'dpctl dump-flows' on a > switch the flow displayed does not have entries for tp_dst or tp_src. Is > there something else I need to be doing in order to get matching on port > numbers? > Thanks > Basu > > -- > Shrutarshi Basu > Basus.me > The ByteBaker <http://bytebaker.com> -- because Computer Science is not > about computers > > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > >
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev