Capabilities are only supported on a session when both sides announce
authorclaudio <claudio@openbsd.org>
Sun, 16 May 2021 09:09:11 +0000 (09:09 +0000)
committerclaudio <claudio@openbsd.org>
Sun, 16 May 2021 09:09:11 +0000 (09:09 +0000)
commit5abcf997c684dadf53b561c4d8079c810c94220c
treecbc876ea72935fa99d566272e056505ddde7ceed
parentbeb775c7452b0e8fa5d4b5f173a2fe0de3b3a18d
Capabilities are only supported on a session when both sides announce
that capability. Change capa_neg_calc() to check always both the
ann(ounce) and peer capa struct to figure out what was negotiated.
This change affects route refersh and graceful restart (where before
setting the capability in the config to 'no' would not fully disable
the feature).
Also ignore and warn about unexpected route refresh messages.
OK benno@
usr.sbin/bgpd/session.c