summaryrefslogtreecommitdiffstats
path: root/src/net/dhcpopts.c
diff options
context:
space:
mode:
authorMichael Brown2008-03-21 00:15:48 +0100
committerMichael Brown2008-03-21 00:15:48 +0100
commitcf033046206aede5064c798bfa887fbb888b9217 (patch)
tree9836e9742cda7fd923a75eeb100b467817bd31b6 /src/net/dhcpopts.c
parent[Settings] Add per-netdevice settings block (diff)
downloadipxe-cf033046206aede5064c798bfa887fbb888b9217.tar.gz
ipxe-cf033046206aede5064c798bfa887fbb888b9217.tar.xz
ipxe-cf033046206aede5064c798bfa887fbb888b9217.zip
[Settings] Introduce settings applicators.
Convert DHCP option applicators in dns.c and iscsi.c to settings applicators. Kill off DHCP option applicators.
Diffstat (limited to 'src/net/dhcpopts.c')
-rw-r--r--src/net/dhcpopts.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/net/dhcpopts.c b/src/net/dhcpopts.c
index ed53916c..75a9f2a5 100644
--- a/src/net/dhcpopts.c
+++ b/src/net/dhcpopts.c
@@ -37,12 +37,6 @@
/** List of registered DHCP option blocks */
LIST_HEAD ( dhcp_option_blocks );
-/** Registered DHCP option applicators */
-static struct dhcp_option_applicator dhcp_option_applicators[0]
- __table_start ( struct dhcp_option_applicator, dhcp_applicators );
-static struct dhcp_option_applicator dhcp_option_applicators_end[0]
- __table_end ( struct dhcp_option_applicator, dhcp_applicators );
-
/**
* Obtain printable version of a DHCP option tag
*
@@ -578,13 +572,9 @@ void delete_dhcp_option ( struct dhcp_option_block *options,
* @ret rc Return status code
*/
int apply_dhcp_options ( struct dhcp_option_block *options ) {
- struct dhcp_option_applicator *applicator;
- struct dhcp_option *option;
struct in_addr tftp_server;
struct uri *uri;
char uri_string[32];
- unsigned int tag;
- int rc;
/* Set current working URI based on TFTP server */
find_dhcp_ipv4_option ( options, DHCP_EB_SIADDR, &tftp_server );
@@ -596,20 +586,6 @@ int apply_dhcp_options ( struct dhcp_option_block *options ) {
churi ( uri );
uri_put ( uri );
- /* Call all registered DHCP option applicators */
- for ( applicator = dhcp_option_applicators ;
- applicator < dhcp_option_applicators_end ; applicator++ ) {
- tag = applicator->tag;
- option = find_dhcp_option ( options, tag );
- if ( ! option )
- continue;
- if ( ( rc = applicator->apply ( tag, option ) ) != 0 ) {
- DBG ( "Could not apply DHCP option %s: %s\n",
- dhcp_tag_name ( tag ), strerror ( rc ) );
- return rc;
- }
- }
-
return 0;
}