From d9f32726b46665165b9004797aebd58c7f2b03f4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 4 Dec 2006 23:40:35 +0000 Subject: Added quick and dirty commands for testing the new NVO code. --- src/core/nvo.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/core/nvo.c') diff --git a/src/core/nvo.c b/src/core/nvo.c index 9949a48b4..0e88b8a75 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; } -- cgit v1.2.3-55-g7522