ping: set fib_index for lookup_node 29/33729/2
authorArtem Glazychev <artem.glazychev@xored.com>
Wed, 15 Sep 2021 12:35:51 +0000 (19:35 +0700)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 22 Sep 2021 16:59:10 +0000 (16:59 +0000)
lookup node uses this field later to set fib_index for buffer

Type: fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Change-Id: I993cf80296e1713b4f13fc6ccdf49ebeaf295467

src/plugins/ping/ping.c

index 5973b48..38cb5b8 100644 (file)
@@ -990,6 +990,7 @@ send_ip46_ping (vlib_main_t * vm,
     ERROR_OUT (SEND_PING_NO_INTERFACE);
 
   vnet_buffer (b0)->sw_if_index[VLIB_RX] = sw_if_index;
+  vnet_buffer (b0)->sw_if_index[VLIB_TX] = fib_index;
 
   int l4_header_offset = ip46_fill_l3_header (pa46, b0, is_ip6);