| ndp_from_link_local |bool | 1 | Use link-local source addresses for NDP operations (RFC 4861, §4.2 compliance) and macOS compatibility |
| prefix_filter |string |`::/0` | Only advertise on-link prefixes within the provided IPv6 prefix; others are filtered out. [IPv6 prefix] |
| ntp |list |`<local address>`| NTP servers to announce accepts IPv4 and IPv6 |
-| ra_management |string | - | TBD |
| upstream |list | - | TBD |
| ra_advrouter |bool | - | TBD |
IFACE_ATTR_DHCPV6_NA,
IFACE_ATTR_DHCPV6_HOSTID_LEN,
IFACE_ATTR_RA_DEFAULT,
- IFACE_ATTR_RA_MANAGEMENT,
IFACE_ATTR_RA_FLAGS,
IFACE_ATTR_RA_SLAAC,
IFACE_ATTR_RA_OFFLINK,
[IFACE_ATTR_DHCPV6_NA] = { .name = "dhcpv6_na", .type = BLOBMSG_TYPE_BOOL },
[IFACE_ATTR_DHCPV6_HOSTID_LEN] = { .name = "dhcpv6_hostidlength", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_DEFAULT] = { .name = "ra_default", .type = BLOBMSG_TYPE_INT32 },
- [IFACE_ATTR_RA_MANAGEMENT] = { .name = "ra_management", .type = BLOBMSG_TYPE_INT32 },
[IFACE_ATTR_RA_FLAGS] = { .name = "ra_flags", . type = BLOBMSG_TYPE_ARRAY },
[IFACE_ATTR_RA_SLAAC] = { .name = "ra_slaac", .type = BLOBMSG_TYPE_BOOL },
[IFACE_ATTR_RA_OFFLINK] = { .name = "ra_offlink", .type = BLOBMSG_TYPE_BOOL },
if ((c = tb[IFACE_ATTR_RA_DEFAULT]))
iface->default_router = blobmsg_get_u32(c);
- /* IFACE_ATTR_RA_MANAGEMENT aka ra_management is deprecated since 2019 */
- if (!tb[IFACE_ATTR_RA_FLAGS] && !tb[IFACE_ATTR_RA_SLAAC] &&
- (c = tb[IFACE_ATTR_RA_MANAGEMENT])) {
- switch (blobmsg_get_u32(c)) {
- case 0:
- iface->ra_flags = ND_RA_FLAG_OTHER;
- iface->ra_slaac = true;
- break;
- case 1:
- iface->ra_flags = ND_RA_FLAG_OTHER|ND_RA_FLAG_MANAGED;
- iface->ra_slaac = true;
- break;
- case 2:
- iface->ra_flags = ND_RA_FLAG_OTHER|ND_RA_FLAG_MANAGED;
- iface->ra_slaac = false;
- break;
- default:
- break;
- }
- }
-
if ((c = tb[IFACE_ATTR_RA_FLAGS])) {
iface->ra_flags = 0;