mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
[dhcp] Allow use of custom reallocation functions for DHCP option blocks
Allow functions other than realloc() to be used to reallocate DHCP option block data, and specify the reallocation function at the time of calling dhcpopt_init(). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -133,7 +133,8 @@ static void nvo_init_dhcpopts ( struct nvo_block *nvo ) {
|
||||
memset ( nvo->data, 0, nvo->total_len );
|
||||
}
|
||||
|
||||
dhcpopt_init ( &nvo->dhcpopts, options_data, options_len );
|
||||
dhcpopt_init ( &nvo->dhcpopts, options_data, options_len,
|
||||
dhcpopt_no_realloc );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user