From: Florin Coras Date: Tue, 23 Sep 2025 19:32:11 +0000 (-0400) Subject: dhcp: fix lease renewal for non-default fibs X-Git-Tag: v26.02-rc0~1 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F43743%2F4;p=vpp.git dhcp: fix lease renewal for non-default fibs Type: fix Change-Id: Ic6f02e47cd7f83d3ac0f273b9bff5c6c1d8d5a43 Signed-off-by: Florin Coras Signed-off-by: Steven Luong --- diff --git a/src/plugins/dhcp/client.c b/src/plugins/dhcp/client.c index d81d2935577..1add8d5960e 100644 --- a/src/plugins/dhcp/client.c +++ b/src/plugins/dhcp/client.c @@ -510,7 +510,11 @@ send_dhcp_pkt (dhcp_client_main_t * dcm, dhcp_client_t * c, vnet_buffer (b)->ip.adj_index[VLIB_TX] = c->ai_bcast; } else - node_index = dcm->ip4_lookup_node_index; + { + node_index = dcm->ip4_lookup_node_index; + vnet_buffer (b)->sw_if_index[VLIB_TX] = + fib_table_get_index_for_sw_if_index (FIB_PROTOCOL_IP4, c->sw_if_index); + } /* Enqueue the packet right now */ f = vlib_get_frame_to_node (vm, node_index);