ping: correct the fib-index used for the reply 57/35357/6
authorNeale Ranns <neale@graphiant.com>
Thu, 17 Feb 2022 15:41:32 +0000 (15:41 +0000)
committerOle Tr�an <otroan@employees.org>
Fri, 4 Mar 2022 16:25:00 +0000 (16:25 +0000)
commitf478f758b9fc13089a4ff47fa1e66d7d1db9f003
treefa9941f247208fe6e085ee17e336ae49d2c5e377
parent5c6dd17a373a2c56e57f02426d66a79af7faa19c
ping: correct the fib-index used for the reply

Type: fix

if original packet was to the link local, then the
fib index in the buffer is that of the LL table, we can't use that
to foward the response if the new destination
is global, so reset to the fib index of the link.
In other case, the fib index we need has been written
to the buffer already.

Add a test for IPv6 ping in an MPLS-VPN where int inout interface is
not the the same VRF as the response should be sent.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I18a232d90ddd3ef051a52476c5d861c87060e76f
src/plugins/ping/ping.c
test/test_mpls.py