]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix AIGP calculation in route advertisement 17184/head
authorEnke Chen <enchen@paloaltonetworks.com>
Tue, 22 Oct 2024 01:03:08 +0000 (18:03 -0700)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 22 Oct 2024 05:40:50 +0000 (05:40 +0000)
commit8b6fb17142f4babf098c30248a3a4563838f4cc8
tree73774e18172b4d11fab94be49ea21bde5cffa491
parent862d7bcd6f7378a61bbdbb23b1820dfd8635beaf
bgpd: fix AIGP calculation in route advertisement

Currently the AIGP is always incremented when a route with the
attribute is advertised. That is incorrect when the nexthop is
unchanged, as is commonly the case in route reflection.

Adjust the AIGP for propagation only when the nexthop is set
to ourselves.

Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
(cherry picked from commit fc82d7750f3cc54855ca399f3060428b66e1fbec)
bgpd/bgp_attr.c
bgpd/bgp_attr.h
bgpd/bgp_bmp.c
bgpd/bgp_route.c
bgpd/bgp_updgrp_packet.c