|
@@ -153,8 +153,9 @@ find_dhcp_option_with_encap ( struct dhcp_option_block *options,
|
153
|
153
|
break;
|
154
|
154
|
/* Check for matching tag */
|
155
|
155
|
if ( option->tag == tag ) {
|
156
|
|
- DBG ( "Found DHCP option %s (length %d)\n",
|
157
|
|
- dhcp_tag_name ( original_tag ), option->len );
|
|
156
|
+ DBG ( "Found DHCP option %s (length %d) in block %p\n",
|
|
157
|
+ dhcp_tag_name ( original_tag ), option->len,
|
|
158
|
+ options );
|
158
|
159
|
return option;
|
159
|
160
|
}
|
160
|
161
|
/* Check for explicit end marker */
|
|
@@ -221,8 +222,8 @@ void register_dhcp_options ( struct dhcp_option_block *options ) {
|
221
|
222
|
|
222
|
223
|
/* Determine priority of new block */
|
223
|
224
|
options->priority = find_dhcp_num_option ( options, DHCP_EB_PRIORITY );
|
224
|
|
- DBG ( "Registering DHCP options block with priority %d\n",
|
225
|
|
- options->priority );
|
|
225
|
+ DBG ( "Registering DHCP options block %p with priority %d\n",
|
|
226
|
+ options, options->priority );
|
226
|
227
|
|
227
|
228
|
/* Insert after any existing blocks which have a higher priority */
|
228
|
229
|
list_for_each_entry ( existing, &option_blocks, list ) {
|
|
@@ -260,6 +261,9 @@ void init_dhcp_options ( struct dhcp_option_block *options,
|
260
|
261
|
option = options->data;
|
261
|
262
|
option->tag = DHCP_END;
|
262
|
263
|
options->len = 1;
|
|
264
|
+
|
|
265
|
+ DBG ( "DHCP options block %p initialised (data %p max_len %#zx)\n",
|
|
266
|
+ options, options->data, options->max_len );
|
263
|
267
|
}
|
264
|
268
|
|
265
|
269
|
/**
|
|
@@ -365,12 +369,12 @@ struct dhcp_option * set_dhcp_option ( struct dhcp_option_block *options,
|
365
|
369
|
option = find_dhcp_option_with_encap ( options, tag, &encapsulator );
|
366
|
370
|
if ( option ) {
|
367
|
371
|
old_len = dhcp_option_len ( option );
|
368
|
|
- DBG ( "Resizing DHCP option %s from length %d to %d\n",
|
369
|
|
- dhcp_tag_name ( tag ), option->len, len );
|
|
372
|
+ DBG ( "Resizing DHCP option %s from length %d to %d in block "
|
|
373
|
+ "%p\n", dhcp_tag_name (tag), option->len, len, options );
|
370
|
374
|
} else {
|
371
|
375
|
old_len = 0;
|
372
|
|
- DBG ( "Creating DHCP option %s (length %d)\n",
|
373
|
|
- dhcp_tag_name ( tag ), new_len );
|
|
376
|
+ DBG ( "Creating DHCP option %s (length %d) in block %p\n",
|
|
377
|
+ dhcp_tag_name ( tag ), len, options );
|
374
|
378
|
}
|
375
|
379
|
|
376
|
380
|
/* Ensure that encapsulator exists, if required */
|