Good Morning,

I am trying to install rules into switches to match ip prefixes. For example 10.10.23.40/2. However, the rules i install endup looking like this: 0.0.0.0/2. I'm sure that I'm installing these rules incorrectly. Here is a fragment of the code that sets the matching criteria.

wildcard = (~OFPFW_NW_DST_ALL & (OFPFW_NW_DST_MASK << dstmask)) | wildcard;
        ofm->match.wildcards = htonl(wildcard);
        ofm->match.nw_dst=htonl(dstip);

I Can include more fragments of the code if you will find it helpful.
Theo
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to