summaryrefslogtreecommitdiffstats
path: root/src/net/dhcpopts.c
diff options
context:
space:
mode:
authorMichael Brown2007-06-28 00:20:36 +0200
committerMichael Brown2007-06-28 00:20:36 +0200
commit07dc294de8e984b450297037b53ac33b038dcd7b (patch)
treefa0bd2f4d3ad93e5104b1e20907b29740ef0d6ec /src/net/dhcpopts.c
parentKill off hotplug.h and just make net devices normal reference-counted (diff)
downloadipxe-07dc294de8e984b450297037b53ac33b038dcd7b.tar.gz
ipxe-07dc294de8e984b450297037b53ac33b038dcd7b.tar.xz
ipxe-07dc294de8e984b450297037b53ac33b038dcd7b.zip
Update DHCP to use data-xfer interface (not yet tested).
Diffstat (limited to 'src/net/dhcpopts.c')
-rw-r--r--src/net/dhcpopts.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/net/dhcpopts.c b/src/net/dhcpopts.c
index b2a22666..bb977317 100644
--- a/src/net/dhcpopts.c
+++ b/src/net/dhcpopts.c
@@ -280,6 +280,7 @@ void register_dhcp_options ( struct dhcp_option_block *options ) {
if ( options->priority > existing->priority )
break;
}
+ dhcpopt_get ( options );
list_add_tail ( &options->list, &existing->list );
}
@@ -290,6 +291,7 @@ void register_dhcp_options ( struct dhcp_option_block *options ) {
*/
void unregister_dhcp_options ( struct dhcp_option_block *options ) {
list_del ( &options->list );
+ dhcpopt_put ( options );
}
/**
@@ -338,15 +340,6 @@ struct dhcp_option_block * alloc_dhcp_options ( size_t max_len ) {
}
/**
- * Free DHCP options block
- *
- * @v options DHCP option block
- */
-void free_dhcp_options ( struct dhcp_option_block *options ) {
- free ( options );
-}
-
-/**
* Resize a DHCP option
*
* @v options DHCP option block