]> git.ipfire.org Git - thirdparty/bird.git/commit
BMP: Support multiple instances of BMP protocol
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 8 Jun 2023 02:56:41 +0000 (04:56 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 8 Jun 2023 03:03:15 +0000 (05:03 +0200)
commite8838d930cd5c875f32aa2b7da5d84995b14ccac
tree4cb70981a898dd1d294e6074399a76a6ab679537
parent0799fc99abb523432bc3f903f6a32eafbe37d043
BMP: Support multiple instances of BMP protocol

Add internal BMP functions with plicit bmp_proto *p as first argument,
which allows using TRACE() macro. Keep list of BMP instances and call
internal functions. Old BMP functions are wrappers that call internal
functions for all enabled BMP instances.

Extract End-of-RIB mark into separate function.

Based on patch from Michal Zagorski <mzagorsk@akamai.com>. Thanks!
proto/bgp/bgp.c
proto/bgp/bgp.h
proto/bgp/packets.c
proto/bmp/bmp.c
proto/bmp/bmp.h