diff options
author | Michael Brown | 2007-06-28 00:20:36 +0200 |
---|---|---|
committer | Michael Brown | 2007-06-28 00:20:36 +0200 |
commit | 07dc294de8e984b450297037b53ac33b038dcd7b (patch) | |
tree | fa0bd2f4d3ad93e5104b1e20907b29740ef0d6ec /src/net/dhcpopts.c | |
parent | Kill off hotplug.h and just make net devices normal reference-counted (diff) | |
download | ipxe-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.c | 11 |
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 |