diff options
Diffstat (limited to 'src/vnet/srp/node.c')
-rw-r--r-- | src/vnet/srp/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srp/node.c b/src/vnet/srp/node.c index 35121cc61bf..6b7602516ba 100644 --- a/src/vnet/srp/node.c +++ b/src/vnet/srp/node.c @@ -402,7 +402,7 @@ srp_control_input (vlib_main_t * vm, b0 = vlib_get_buffer (vm, bi0); - s0 = (void *) (b0->data + b0->current_data); + s0 = vlib_buffer_get_current(b0); l2_len0 = vlib_buffer_length_in_chain (vm, b0); l3_len0 = l2_len0 - STRUCT_OFFSET_OF (srp_generic_control_header_t, control); |