http://git.etherboot.org
/
people
/
sha0
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply global DHCP options when register_dhcp_options() is called. Do
[people/sha0/gpxe.git]
/
src
/
net
/
dhcpopts.c
diff --git
a/src/net/dhcpopts.c
b/src/net/dhcpopts.c
index
6038709
..
c713909
100644
(file)
--- 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 );
}
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;
}
return 0;
}
+
+/**
+ * Apply global DHCP options
+ *
+ * @ret rc Return status code
+ */
+int apply_global_dhcp_options ( void ) {
+ return apply_dhcp_options ( NULL );
+}