aboutsummaryrefslogtreecommitdiff
path: root/src/net/udp
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-12-05 15:12:50 +0000
committerMichael Brown <mcb30@ipxe.org>2013-12-05 15:12:50 +0000
commit4a6c453b5bff2b49903f91f4d07da91549c3d108 (patch)
treead2acd6988af9b33e6569b85d40d7b8d08fc2211 /src/net/udp
parentf3e5df3162b9e9dec0e91e59ad2567bcc78ef03d (diff)
downloadipxe-4a6c453b5bff2b49903f91f4d07da91549c3d108.zip
ipxe-4a6c453b5bff2b49903f91f4d07da91549c3d108.tar.gz
ipxe-4a6c453b5bff2b49903f91f4d07da91549c3d108.tar.bz2
[dhcpv6] Add DHCPv6 "filename" setting
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/udp')
-rw-r--r--src/net/udp/dhcpv6.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/udp/dhcpv6.c b/src/net/udp/dhcpv6.c
index 61c26f2..b86b833 100644
--- a/src/net/udp/dhcpv6.c
+++ b/src/net/udp/dhcpv6.c
@@ -363,6 +363,7 @@ static int dhcpv6_register ( struct dhcpv6_option_list *options,
/** Options to be requested */
static uint16_t dhcpv6_requested_options[] = {
htons ( DHCPV6_DNS_SERVERS ), htons ( DHCPV6_DOMAIN_LIST ),
+ htons ( DHCPV6_BOOTFILE_URL ), htons ( DHCPV6_BOOTFILE_PARAM ),
};
/**
@@ -969,3 +970,12 @@ int start_dhcpv6 ( struct interface *job, struct net_device *netdev,
ref_put ( &dhcpv6->refcnt );
return rc;
}
+
+/** Boot filename setting */
+const struct setting filename6_setting __setting ( SETTING_BOOT, filename ) = {
+ .name = "filename",
+ .description = "Boot filename",
+ .tag = DHCPV6_BOOTFILE_URL,
+ .type = &setting_type_string,
+ .scope = &ipv6_scope,
+};