Hi, I am trying to install flow table entries on switches which outputs a
packet on a specified port based on a matching with the dest ip.

I need to specify two types of matches. the first set does a prefix match
(eg. 10.2.1.0/24 should match an incoming packet's dest ip with the mask
255.255.255.0). If none of these match, the next set of entries do a suffix
match (eg. 0.0.0.2/8 should match with mask 0.0.0.255).

I want to install these entries on a switch when it comes up (datapath-join
event). So I was wondering how I would mention these masks for the nw_dst
field in the match structure. openflow.h mentions something about wildcard
bit count and cidr.hh seems to provide some masking functions - do I use
these, if so how?

Thanks for your help.

Regards,
Arun
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to