mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
[ipv6] Expose IPv6 settings acquired through NDP
Expose the IPv6 address (or prefix) as ${ip6}, the prefix length as
${len6}, and the router address as ${gateway6}.
Originally-implemented-by: Hannes Reinecke <hare@suse.de>
Originally-implemented-by: Marin Hannache <git@mareo.fr>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -284,6 +284,9 @@ struct builtin_setting {
|
||||
extern const struct settings_scope builtin_scope;
|
||||
|
||||
/** IPv6 setting scope */
|
||||
extern const struct settings_scope ipv6_scope;
|
||||
|
||||
/** DHCPv6 setting scope */
|
||||
extern const struct settings_scope dhcpv6_scope;
|
||||
|
||||
/**
|
||||
@@ -433,6 +436,12 @@ gateway_setting __setting ( SETTING_IP4, gateway );
|
||||
extern const struct setting
|
||||
dns_setting __setting ( SETTING_IP4_EXTRA, dns );
|
||||
extern const struct setting
|
||||
ip6_setting __setting ( SETTING_IP6, ip6 );
|
||||
extern const struct setting
|
||||
len6_setting __setting ( SETTING_IP6, len6 );
|
||||
extern const struct setting
|
||||
gateway6_setting __setting ( SETTING_IP6, gateway6 );
|
||||
extern const struct setting
|
||||
hostname_setting __setting ( SETTING_HOST, hostname );
|
||||
extern const struct setting
|
||||
domain_setting __setting ( SETTING_IP_EXTRA, domain );
|
||||
|
||||
Reference in New Issue
Block a user