From 2b70ffb1be9d5ec8d8bdc8ac97415bbe533f36d2 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 23 Sep 2025 15:32:11 -0400 Subject: [PATCH] dhcp: fix lease renewal for non-default fibs Type: fix Change-Id: Ic6f02e47cd7f83d3ac0f273b9bff5c6c1d8d5a43 Signed-off-by: Florin Coras Signed-off-by: Steven Luong --- src/plugins/dhcp/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.16.6