odp-util: fix bug in setting ipv4 frag flag mask
authorAndy Zhou <azhou@nicira.com>
Wed, 31 Jul 2013 20:54:12 +0000 (13:54 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 31 Jul 2013 22:50:48 +0000 (15:50 -0700)
commit34fe777bf40c6ced2367b67b9cccafc887342663
tree936d496ae19e4a70ebf2e8cecacb045acd2f4ca1
parenta91da5bca648a80f87727068ca29ee8ac9318c9b
odp-util: fix bug in setting ipv4 frag flag mask

This bug causes the flag mask to always mask only 1 bit, not the 2 bits
possible. While at it, make the top 6 bits exact match.

Bug #18834.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/odp-util.c
tests/ofproto-dpif.at