ip: retain local interface address adjacency 41/20541/3
authorMatthew Smith <mgsmith@netgate.com>
Sun, 7 Jul 2019 00:27:29 +0000 (19:27 -0500)
committerNeale Ranns <nranns@cisco.com>
Mon, 8 Jul 2019 17:46:28 +0000 (17:46 +0000)
commit44e60468a2f0ad7ceff67de718fe3c401016ef6d
tree857fcb9e340fdddd331eca9892dad8688cfe47dd
parent2eed1a12b425701d6109c9b55c9c1cac806de724
ip: retain local interface address adjacency

Type: feature

ip4_local_check_src() was overwriting vnet buffer opaque data
on the adjacency for packets with "local" (dpo-receive) destination
addresses.

Retain the dpo receive index in vnet_buffer()->adj_index[VLIB_TX].
This can allow a graph node to distinguish the interface where the
destination address is configured from the interface where the
packet was received. This can be useful in correctly handling
packets that have been sent to an address configured on a loopback
interface.

Change-Id: I52a942e85b5302b338a2d0404a37c5ea1a99e89f
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/vnet/ip/ip4_forward.c