summaryrefslogtreecommitdiffstats
path: root/src/net/dhcpopts.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-06 18:07:50 +0200
committerMichael Brown2007-07-06 18:07:50 +0200
commit934b70d62c7cd9835b2b8682f665277e1e1259e1 (patch)
tree3d83d4e2f2cb922f95dc93dee0166083d367fa32 /src/net/dhcpopts.c
parentMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe (diff)
downloadipxe-934b70d62c7cd9835b2b8682f665277e1e1259e1.tar.gz
ipxe-934b70d62c7cd9835b2b8682f665277e1e1259e1.tar.xz
ipxe-934b70d62c7cd9835b2b8682f665277e1e1259e1.zip
Apply global DHCP options when register_dhcp_options() is called. Do
not apply DHCP options in dhcp_configure_netdev().
Diffstat (limited to 'src/net/dhcpopts.c')
-rw-r--r--src/net/dhcpopts.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/dhcpopts.c b/src/net/dhcpopts.c
index 6038709b..c713909e 100644
--- a/src/net/dhcpopts.c
+++ b/src/net/dhcpopts.c
@@ -289,6 +289,9 @@ void register_dhcp_options ( struct dhcp_option_block *options ) {
}
dhcpopt_get ( options );
list_add_tail ( &options->list, &existing->list );
+
+ /* Apply all registered DHCP options */
+ apply_global_dhcp_options();
}
/**
@@ -609,3 +612,12 @@ int apply_dhcp_options ( struct dhcp_option_block *options ) {
return 0;
}
+
+/**
+ * Apply global DHCP options
+ *
+ * @ret rc Return status code
+ */
+int apply_global_dhcp_options ( void ) {
+ return apply_dhcp_options ( NULL );
+}