NDP will discover the IPv6 on-link prefix, so we should make it user-settable.
Signed-off-by: Hannes Reinecke <h...@suse.de> --- src/net/ndp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/net/ndp.c b/src/net/ndp.c index f28e71cbd..723c03917 100644 --- a/src/net/ndp.c +++ b/src/net/ndp.c @@ -1018,6 +1018,17 @@ static int ndp_register_settings ( struct net_device *netdev, return rc; } +/** Prefix setting */ +const struct setting ndp_prefix6_setting __setting ( SETTING_IP_EXTRA, prefix6) = { + .name = "prefix6", + .description = "IPv6 prefix", + .tag = NDP_TAG ( NDP_OPT_PREFIX, + offsetof ( struct ndp_prefix_information_option, + prefix ), 0 ), + .type = &setting_type_ipv6, + .scope = &ndp_settings_scope, +}; + /** DNS server setting */ const struct setting ndp_dns6_setting __setting ( SETTING_IP6_EXTRA, dns6 ) = { .name = "dns6", -- 2.13.6 _______________________________________________ ipxe-devel mailing list ipxe-devel@lists.ipxe.org https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel