From 8a4f6dadfd56b96a65010d77ed28522c51d0cfa9 Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Wed, 24 Jul 2019 22:06:55 -0400 Subject: misc: leverage vlib_buffer_get_current in srp Type: style Change-Id: I6c57ab3e71c693de5ecfbdfee118d521a8c9a4c2 Signed-off-by: Zhiyong Yang --- src/vnet/srp/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/srp') 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); -- cgit 1.2.3-korg