]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix AIGP calculation in route advertisement
authorEnke Chen <enchen@paloaltonetworks.com>
Tue, 22 Oct 2024 01:03:08 +0000 (18:03 -0700)
committerEnke Chen <enchen@paloaltonetworks.com>
Tue, 22 Oct 2024 01:03:08 +0000 (18:03 -0700)
commitfc82d7750f3cc54855ca399f3060428b66e1fbec
tree312255a1b031bfeabf404b41dc692749ab68e90b
parent7e7f65cc00b13108e260bef329fc17374ea384f6
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>
bgpd/bgp_attr.c
bgpd/bgp_attr.h
bgpd/bgp_bmp.c
bgpd/bgp_route.c
bgpd/bgp_updgrp_packet.c