X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdhcp%2Fdhcp_client_detect.c;h=de2702df398bae1f206f73678b805984157319c7;hb=aefbedeb5da326475230c31e75d0d9d6d0de8656;hp=f9ba4fee4d2a8e1e19b8476d919a4df4ca322dcd;hpb=8269d3dbe70adaae60806d5d84e35f25d23193c5;p=vpp.git diff --git a/src/vnet/dhcp/dhcp_client_detect.c b/src/vnet/dhcp/dhcp_client_detect.c index f9ba4fee4d2..de2702df398 100644 --- a/src/vnet/dhcp/dhcp_client_detect.c +++ b/src/vnet/dhcp/dhcp_client_detect.c @@ -131,14 +131,10 @@ dhcp_client_detect_node_fn (vlib_main_t * vm, ip2 = vlib_buffer_get_current (b2); ip3 = vlib_buffer_get_current (b2); - vnet_feature_next (vnet_buffer (b0)->sw_if_index[VLIB_TX], - &next0, b0); - vnet_feature_next (vnet_buffer (b1)->sw_if_index[VLIB_TX], - &next1, b1); - vnet_feature_next (vnet_buffer (b2)->sw_if_index[VLIB_TX], - &next2, b2); - vnet_feature_next (vnet_buffer (b3)->sw_if_index[VLIB_TX], - &next3, b3); + vnet_feature_next (&next0, b0); + vnet_feature_next (&next1, b1); + vnet_feature_next (&next2, b2); + vnet_feature_next (&next3, b3); if (ip0->protocol == IP_PROTOCOL_UDP) { @@ -237,8 +233,7 @@ dhcp_client_detect_node_fn (vlib_main_t * vm, * assigned) we are looking for the preverbial needle in the haystack * so assume the packet is not the one we are looking for. */ - vnet_feature_next (vnet_buffer (b0)->sw_if_index[VLIB_TX], - &next0, b0); + vnet_feature_next (&next0, b0); /* * all we are looking for here is DHCP/BOOTP packet-to-client