arp: fix dump API 24/43424/1
authorKlement Sekera <[email protected]>
Wed, 9 Jul 2025 12:34:11 +0000 (14:34 +0200)
committerKlement Sekera <[email protected]>
Wed, 9 Jul 2025 13:15:28 +0000 (15:15 +0200)
Add missing fib index to table id conversion in dump API.

Type: fix
Change-Id: Id5f7325ca31875abb39b33156f3938a051888ad3
Signed-off-by: Klement Sekera <[email protected]>
src/vnet/arp/arp_api.c

index 170bace..083fa50 100644 (file)
@@ -86,7 +86,8 @@ send_proxy_arp_details (const ip4_address_t * lo_addr,
   clib_memset (mp, 0, sizeof (*mp));
   mp->_vl_msg_id = ntohs (VL_API_PROXY_ARP_DETAILS + REPLY_MSG_ID_BASE);
   mp->context = ctx->context;
-  mp->proxy.table_id = htonl (fib_index);
+  mp->proxy.table_id = clib_host_to_net_u32 (
+    fib_table_get_table_id (fib_index, FIB_PROTOCOL_IP4));
 
   ip4_address_encode (lo_addr, mp->proxy.low);
   ip4_address_encode (hi_addr, mp->proxy.hi);