linux-cp: stop managing adjacencies for tunnels 90/32890/1
authorAlexander Chernavin <achernavin@netgate.com>
Thu, 24 Jun 2021 14:46:19 +0000 (10:46 -0400)
committerAlexander Chernavin <achernavin@netgate.com>
Thu, 24 Jun 2021 14:46:19 +0000 (10:46 -0400)
commit959613b5d7fbb8fadcd96853585268ffc33b3593
tree6b6da24c45d0efd5897b253c11bfab125393c006
parent1ef38743fd1499d41cb5e5a6a8e8529fe10393d1
linux-cp: stop managing adjacencies for tunnels

Type: fix

Outbound packets which arrive on tun/L3 interfaces use a default
adjacency for the interface & address family from the corresponding
interface pair. However, there are entries in the linux-cp adj table
that are created for them. Managing these entries might cause a
segfault because the rewrite data might exceed the reserved space for
it of 28 bytes in the linux-cp adj key (e.g. in case of GRE IPv6).

With this change, stop creating adjacencies for tun/L3 interfaces in
the linux-cp adj table and delegating them.

Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Change-Id: I4bcd685860053ab87c65064c182e3ed53fd4fae9
src/plugins/linux-cp/lcp_adj.c