tcp: set sw_if_index in tcp src-address cli 99/34799/2
authorMercury <mercury124185@gmail.com>
Fri, 24 Dec 2021 03:58:27 +0000 (11:58 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Sun, 26 Dec 2021 23:13:40 +0000 (23:13 +0000)
commit89618da2f719cc6b566a7e8f428f12917aeaaea5
treeabbdd258a08ccc360b2b2005286b523522b530c7
parent9ff617c1ac83c9e4a376959afdac6ae1e3981671
tcp: set sw_if_index in tcp src-address cli

the receive dpo added by tcp src-address cli do not have a valid sw_if_index ,
ip4_local_check_src() and tcp_input_lookup_buffer() will set ~0 to vnet_buffer(b)->sw_if_index[VLIB_RX],
which will cause crash in tcp46_reset_inline,

Type: fix
Signed-off-by: Mercury <mercury124185@gmail.com>
Change-Id: Ie01c31f3575e14187c6380ebcfff96fcb6098cde
src/vnet/tcp/tcp_cli.c