]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Treat as4-path (17) attribute as withdraw if malformed 14341/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 1 Sep 2023 14:10:12 +0000 (17:10 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 1 Sep 2023 14:10:12 +0000 (17:10 +0300)
commite8cac071fb9106cbe235d3ff1f4dd9bfbd6c4cef
tree133114ab0dd1265056b83493b44d792ec8859727
parent8ef655c24967c75d8ad214216813f9d3c2ae9db8
bgpd: Treat as4-path (17) attribute as withdraw if malformed

rfc7606 defines:

Attributes 17 (AS4_PATH), 18 (AS4_AGGREGATOR), 22 (PMSI_TUNNEL), 23 (Tunnel
   Encapsulation Attribute), 26 (AIGP), 27 (PE Distinguisher Labels),
   and 29 (BGP-LS Attribute) do have error handling consistent with
   Section 8 and thus are not further discussed herein.

Section 8 defines:

The "treat-as-withdraw" approach is generally
   preferred and the "session reset" approach is discouraged.
For any malformed attribute that is handled by the "attribute
   discard" instead of the "treat-as-withdraw" approach, it is critical
   to consider the potential impact of doing so.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_attr.c