aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/dhcpopts.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2008-03-21 00:26:29 +0000
committerMichael Brown <mcb30@etherboot.org>2008-03-21 00:26:29 +0000
commit1edbcd4246c3de183b1d34ebbc12f4ed19d11aa8 (patch)
treede3f0f0db387796598f2120a8fe5e339e5316f5b /src/net/dhcpopts.c
parent720e256c5022adb8713e0d682067958244800f46 (diff)
downloadipxe-1edbcd4246c3de183b1d34ebbc12f4ed19d11aa8.tar.gz
[Settings] Use a settings applicator to set the default TFTP URI.
Diffstat (limited to 'src/net/dhcpopts.c')
-rw-r--r--src/net/dhcpopts.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/net/dhcpopts.c b/src/net/dhcpopts.c
index 75a9f2a5..25b517d3 100644
--- a/src/net/dhcpopts.c
+++ b/src/net/dhcpopts.c
@@ -284,8 +284,6 @@ 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();
}
/**
@@ -564,36 +562,3 @@ void delete_dhcp_option ( struct dhcp_option_block *options,
unsigned int tag ) {
set_dhcp_option ( options, tag, NULL, 0 );
}
-
-/**
- * Apply DHCP options
- *
- * @v options DHCP options block, or NULL
- * @ret rc Return status code
- */
-int apply_dhcp_options ( struct dhcp_option_block *options ) {
- struct in_addr tftp_server;
- struct uri *uri;
- char uri_string[32];
-
- /* Set current working URI based on TFTP server */
- find_dhcp_ipv4_option ( options, DHCP_EB_SIADDR, &tftp_server );
- snprintf ( uri_string, sizeof ( uri_string ),
- "tftp://%s/", inet_ntoa ( tftp_server ) );
- uri = parse_uri ( uri_string );
- if ( ! uri )
- return -ENOMEM;
- churi ( uri );
- uri_put ( uri );
-
- return 0;
-}
-
-/**
- * Apply global DHCP options
- *
- * @ret rc Return status code
- */
-int apply_global_dhcp_options ( void ) {
- return apply_dhcp_options ( NULL );
-}