session: fix lcl port allocation with fib 57/42457/1
authorFlorin Coras <[email protected]>
Thu, 6 Mar 2025 19:20:14 +0000 (14:20 -0500)
committerFlorin Coras <[email protected]>
Thu, 6 Mar 2025 19:20:14 +0000 (14:20 -0500)
Type: fix

Change-Id: I0b0cc664cec2643a543a39cc7482292604381bf7
Signed-off-by: Florin Coras <[email protected]>
src/vnet/session/transport.c

index 015255e..150be40 100644 (file)
@@ -592,6 +592,7 @@ transport_endpoint_mark_used (u8 proto, u32 fib_index, ip46_address_t *ip,
   /* Pool reallocs with worker barrier */
   lep = transport_endpoint_alloc ();
   clib_memcpy_fast (&lep->ep.ip, ip, sizeof (*ip));
+  lep->ep.fib_index = fib_index;
   lep->ep.port = port;
   lep->proto = proto;
   lep->refcnt = 1;