]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Treat PMSI tunnel attribute as withdrawn if malformed
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 1 Sep 2023 14:00:55 +0000 (17:00 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 1 Sep 2023 14:00:55 +0000 (17:00 +0300)
commit8ef655c24967c75d8ad214216813f9d3c2ae9db8
treee20b3d6813f5765c0df32f1e98e2e02190a4189a
parent640b59a8b0d87337fef336950e7ebf94a3344a7f
bgpd: Treat PMSI tunnel attribute as withdrawn if malformed

https://datatracker.ietf.org/doc/html/rfc6514#page-10 states:

A router that supports the PMSI Tunnel attribute considers this
   attribute to be malformed if either (a) it contains an undefined
   tunnel type in the Tunnel Type field of the attribute, or (b) the
   router cannot parse the Tunnel Identifier field of the attribute as a
   tunnel identifier of the tunnel types specified in the Tunnel Type
   field of the attribute.

When a router that receives a BGP Update that contains the PMSI
   Tunnel attribute with its Partial bit set determines that the
   attribute is malformed, the router SHOULD treat this Update as though
   all the routes contained in this Update had been withdrawn.

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