diff options
| author | Michael Brown | 2011-01-11 00:58:11 +0100 |
|---|---|---|
| committer | Michael Brown | 2011-01-11 22:24:40 +0100 |
| commit | 17b6a3c506d94b8dc8bdae89828bac20ef56b1ef (patch) | |
| tree | 68e953fe63ac12df77198e1c80de0ba8d45da881 /src/core | |
| parent | [dhcp] Rename length fields for DHCP options (diff) | |
| download | ipxe-17b6a3c506d94b8dc8bdae89828bac20ef56b1ef.tar.gz ipxe-17b6a3c506d94b8dc8bdae89828bac20ef56b1ef.tar.xz ipxe-17b6a3c506d94b8dc8bdae89828bac20ef56b1ef.zip | |
[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>
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/nvo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/nvo.c b/src/core/nvo.c index 1a886c0f8..9b325db75 100644 --- a/src/core/nvo.c +++ b/src/core/nvo.c @@ -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 ); } /** |
