diff options
author | Michael Brown | 2006-12-05 00:40:35 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-05 00:40:35 +0100 |
commit | d9f32726b46665165b9004797aebd58c7f2b03f4 (patch) | |
tree | ce200468c58ced411949813c4ef853eb28248e9b /src/core/nvo.c | |
parent | Added debug statements (diff) | |
download | ipxe-d9f32726b46665165b9004797aebd58c7f2b03f4.tar.gz ipxe-d9f32726b46665165b9004797aebd58c7f2b03f4.tar.xz ipxe-d9f32726b46665165b9004797aebd58c7f2b03f4.zip |
Added quick and dirty commands for testing the new NVO code.
Diffstat (limited to 'src/core/nvo.c')
-rw-r--r-- | src/core/nvo.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/nvo.c b/src/core/nvo.c index 9949a48b..0e88b8a7 100644 --- a/src/core/nvo.c +++ b/src/core/nvo.c @@ -28,6 +28,9 @@ * */ +#warning "Temporary hack" +struct nvo_block *ugly_nvo_hack = NULL; + /** * Calculate checksum over non-volatile stored options * @@ -83,7 +86,7 @@ int nvo_save ( struct nvo_block *nvo ) { int rc; /* Recalculate checksum */ - checksum -= nvo_checksum ( nvo ); + *checksum -= nvo_checksum ( nvo ); /* Write data a fragment at a time */ for ( fragment = nvo->fragments ; fragment->len ; fragment++ ) { @@ -182,6 +185,8 @@ int nvo_register ( struct nvo_block *nvo ) { nvo_init_dhcp ( nvo ); register_dhcp_options ( nvo->options ); + ugly_nvo_hack = nvo; + return 0; err: @@ -201,4 +206,6 @@ void nvo_unregister ( struct nvo_block *nvo ) { free_dhcp_options ( nvo->options ); nvo->options = NULL; } + + ugly_nvo_hack = NULL; } |