};
BUILD_ASSERT_DECL(ND_PREFIX_OPT_LEN == sizeof(struct ovs_nd_prefix_opt));
-#define ND_PREFIX_ON_LINK 0x80
-#define ND_PREFIX_AUTONOMOUS_ADDRESS 0x40
-
/* Neighbor Discovery option: MTU. */
#define ND_MTU_OPT_LEN 8
#define ND_MTU_DEFAULT 0
config->min_interval = smap_get_int(&pb->options, "ipv6_ra_min_interval",
nd_ra_min_interval_default(config->max_interval));
config->mtu = smap_get_int(&pb->options, "ipv6_ra_mtu", ND_MTU_DEFAULT);
- config->la_flags = ND_PREFIX_ON_LINK;
+ config->la_flags = IPV6_ND_RA_OPT_PREFIX_ON_LINK;
const char *address_mode = smap_get(&pb->options, "ipv6_ra_address_mode");
if (!address_mode) {
}
if (!strcmp(address_mode, "dhcpv6_stateless")) {
config->mo_flags = IPV6_ND_RA_FLAG_OTHER_ADDR_CONFIG;
+ config->la_flags |= IPV6_ND_RA_OPT_PREFIX_AUTONOMOUS;
} else if (!strcmp(address_mode, "dhcpv6_stateful")) {
config->mo_flags = IPV6_ND_RA_FLAG_MANAGED_ADDR_CONFIG;
} else if (!strcmp(address_mode, "slaac")) {
- config->la_flags |= ND_PREFIX_AUTONOMOUS_ADDRESS;
+ config->la_flags |= IPV6_ND_RA_OPT_PREFIX_AUTONOMOUS;
} else {
VLOG_WARN("Invalid address mode %s", address_mode);
goto fail;
# And the other address mode
ovn-nbctl --wait=hv set Logical_Router_Port ro-sw ipv6_ra_configs:address_mode=dhcpv6_stateless
-ra_test 000005dc 40 80 40 aef00000000000000000000000000000 30 fd0f0000000000000000000000000000
+ra_test 000005dc 40 c0 40 aef00000000000000000000000000000 30 fd0f0000000000000000000000000000
OVN_CLEANUP([hv1],[hv2])
AT_CLEANUP