nx-match: Refactor nxm_put_ip() to handle all IPv4 and IPv6 fields.
authorBen Pfaff <blp@nicira.com>
Sat, 10 May 2014 01:16:38 +0000 (18:16 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 14 May 2014 17:31:44 +0000 (10:31 -0700)
commit5e10215d5de38a5d5a5b1df1767dd803026b7313
treeade36011a937e46cf1273594a1d22dcd753c1cc7
parent70ae4f930cf99d0604f5e724f8f79bf08d11f263
nx-match: Refactor nxm_put_ip() to handle all IPv4 and IPv6 fields.

Until now, some fields have been handled in the caller, and the caller has
been responsible for distinguishing ICMPv4 from ICMPv6.  This
implementation seems to make the code a little easier to understand.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/nx-match.c