packets: Introduce xor and is_zero functions on IPv6 addresses.
authorJustin Pettit <jpettit@ovn.org>
Thu, 23 Jun 2016 01:17:07 +0000 (18:17 -0700)
committerJustin Pettit <jpettit@ovn.org>
Wed, 20 Jul 2016 04:54:54 +0000 (21:54 -0700)
commitb0ad27f3ad975ae35dc2cae76271f62079087c12
tree925057bdfbd17303d56b7b06bb5c9750d18898ad
parent9a9961d239bd5be010d52cd2bad3b9efbaf414ea
packets: Introduce xor and is_zero functions on IPv6 addresses.

These will have callers later.

This also rewrites ipv6_addr_bitand() to use newly defined macros.

Co-authored-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/packets.c
lib/packets.h