|
@@ -289,6 +289,9 @@ void register_dhcp_options ( struct dhcp_option_block *options ) {
|
289
|
289
|
}
|
290
|
290
|
dhcpopt_get ( options );
|
291
|
291
|
list_add_tail ( &options->list, &existing->list );
|
|
292
|
+
|
|
293
|
+ /* Apply all registered DHCP options */
|
|
294
|
+ apply_global_dhcp_options();
|
292
|
295
|
}
|
293
|
296
|
|
294
|
297
|
/**
|
|
@@ -609,3 +612,12 @@ int apply_dhcp_options ( struct dhcp_option_block *options ) {
|
609
|
612
|
|
610
|
613
|
return 0;
|
611
|
614
|
}
|
|
615
|
+
|
|
616
|
+/**
|
|
617
|
+ * Apply global DHCP options
|
|
618
|
+ *
|
|
619
|
+ * @ret rc Return status code
|
|
620
|
+ */
|
|
621
|
+int apply_global_dhcp_options ( void ) {
|
|
622
|
+ return apply_dhcp_options ( NULL );
|
|
623
|
+}
|