odp-util: Correctly [de]serialize mask for ND attributes.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 9 Dec 2015 02:39:18 +0000 (18:39 -0800)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 11 Dec 2015 01:38:23 +0000 (17:38 -0800)
commita63e3dc9534ae7264e919939b3a90ff79ce1dd27
treed7a19402ef4c17ff1f60619aedb66cf32643828c
parentca8d344271ab84666353b3f3456ac282af5722f5
odp-util: Correctly [de]serialize mask for ND attributes.

When converting between ODP attributes and struct flow_wildcards, we
check that all the prerequisites are exact matched on the mask.

For ND(ICMPv6) attributes, an exact match on tp_src and tp_dst
(which in this context are the icmp type and code) shold look like
htons(0xff), not htons(0xffff).  Fix this in two places.

The consequences were that the ODP mask wouldn't include the ND
attributes and the flow would be deleted by the revalidation.
lib/odp-util.c