summaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorNuman Siddique <nusiddiq@redhat.com>2016-08-05 09:36:39 +0530
committerBen Pfaff <blp@ovn.org>2016-08-14 13:47:12 -0700
commit33ac3c83416334e8759ff21170e42aa9700be8e4 (patch)
tree165d36be177b4dd465019700a18cd311922ce23b /lib/packets.h
parent01cfdb2f7088e415eb5345b1d62cd44df492b36c (diff)
downloadopenvswitch-33ac3c83416334e8759ff21170e42aa9700be8e4.tar.gz
ovn-northd: Add logical flows to support DHCPv6
OVN implements native DHCPv6. DHCPv6 options are stored in the 'DHCP_Options' NB table and logical ports refer to this table to configure the DHCPv6 options. For each logical port configured with DHCPv6 Options following flows are added - A logical flow which copies the DHCPv6 options to the DHCPv6 request packets using the 'put_dhcpv6_opts' action and advances the packet to the next stage. - A logical flow which implements the DHCPv6 reponder by sending the DHCPv6 reply back to the inport once the 'put_dhcpv6_opts' action is applied. Signed-off-by: Numan Siddique <nusiddiq@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 9b98b29cd..dcfcd04b2 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -920,6 +920,7 @@ static inline bool ipv6_addr_equals(const struct in6_addr *a,
#endif
}
+/* Checks the IPv6 address in 'mask' for all zeroes. */
static inline bool ipv6_mask_is_any(const struct in6_addr *mask) {
return ipv6_addr_equals(mask, &in6addr_any);
}