]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: bmp loc-rib RFC9069 compliant monitoring messages
authormxyns <mx.yns@outlook.fr>
Thu, 28 Jul 2022 14:11:47 +0000 (16:11 +0200)
committerMaxence Younsi <mx.yns@outlook.fr>
Sat, 4 Nov 2023 11:17:48 +0000 (12:17 +0100)
commitf83857832f6083b27ea40fda1bd32a2095fbfc27
tree12c48da02fd4fbfb4333e4513923df8124dc6b2f
parentf9af3476db4734e6994b24d67269993e7d659ef2
bgpd: bmp loc-rib RFC9069 compliant monitoring messages

set field peer bgp id to the peer's remote id in every case except loc-rib (RFC9069 case) in which we put the bgp instance's router-id if available or 0-filled if not available
set field peer asn to local primary bgp asn in case of loc-rib instance (RFC9069) else it's set to the peer's asn
set field peer address to 0 in loc-rib instance (RFC9069 case) and to the peer's address in other cases
had to pass struct bgp reference to bmp_per_peer_hdr to access router-id and such, but it's always safely accessed when used

Signed-off-by: Maxence Younsi <mx.yns@outlook.fr>
bgpd/bgp_bmp.c