fib: fix sa selection for fib routed destinations 15/31315/3
authorJúlius Milan <julius.milan@pantheon.tech>
Tue, 16 Feb 2021 18:20:47 +0000 (19:20 +0100)
committerBeno�t Ganne <bganne@cisco.com>
Wed, 24 Feb 2021 15:21:46 +0000 (15:21 +0000)
commit98874cda5853ea2d6b2dc32001b935d394b88430
tree35ea43524d8138eb6a6e28276f4d7061d45a2967
parentcb1c4902bbc29d2bec2862c385659c682aa3984e
fib: fix sa selection for fib routed destinations

The move from ip4(6)_src_address_for_packet to fib_sas4(6)_get changed
the behavior, so that the new looked only to adjacent gleans. This
caused a problem for destinations routed according to FIB table.

To reproduce:
vpp# create tap
vpp# set interface state tap0 up
vpp# set interface ip address tap0 192.168.11.1/24
vpp# ip route add 192.168.20.0/24 via 192.168.11.2

linux$ sudo ip addr add 192.168.20.1/24 dev lo
linux$ sudo ip link set tap0 up
linux$ sudo ip addr add 192.168.11.2/24 dev tap0

vpp# ping 192.168.20.1
Failed: no source address for egress interface

Type: fix
Signed-off-by: Július Milan <julius.milan@pantheon.tech>
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I22899f4dbbf8c1c85ccce72f801b92c183195b5d
src/vnet/adj/adj_glean.c
test/test_ping.py