Update DHCP to use data-xfer interface (not yet tested).

This commit is contained in:
Michael Brown
2007-06-27 23:20:36 +01:00
parent f77815f2b1
commit 07dc294de8
8 changed files with 250 additions and 148 deletions

View File

@@ -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 );
}
/**
@@ -337,15 +339,6 @@ struct dhcp_option_block * alloc_dhcp_options ( size_t max_len ) {
return options;
}
/**
* Free DHCP options block
*
* @v options DHCP option block
*/
void free_dhcp_options ( struct dhcp_option_block *options ) {
free ( options );
}
/**
* Resize a DHCP option
*