tcp: fix the tcp src-address cli 14/34714/2
authorMercury <mercury124185@gmail.com>
Sat, 11 Dec 2021 07:58:32 +0000 (15:58 +0800)
committerMercury <mercury124185@gmail.com>
Sun, 12 Dec 2021 00:26:49 +0000 (08:26 +0800)
commit8ade4a568a51db6f38d7b0508484d433af21f7a1
treeeb0e2601ee4e8279dd369f742409510a5b45c966
parent7c3275e84b64ade4e20d00e4457bd4e437b1894f
tcp: fix the tcp src-address cli

When the src-address to add match a route
without a valid output interface(such as default route 0.0.0.0/0),
fib_entry_get_resolving_interface() will return (u32)~0,
which will cause crash in ip4_neighbor_proxy_enable().

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