diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-03-29 04:43:04 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-04-16 20:06:00 +0200 |
commit | 4d56b70dc5facdf4b839b76bf80c93856bcbb121 (patch) | |
tree | 8cb9a6f7cc5b3ea463e018a82186f95f0860f6f0 /proto/bmp | |
parent | 568fd666136fcf7a37eb445d18b478b6464536c4 (diff) |
BMP: Remove duplicate functions for update encoding
Use existing BGP functions also for BMP update encoding.
Diffstat (limited to 'proto/bmp')
-rw-r--r-- | proto/bmp/bmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/bmp/bmp.c b/proto/bmp/bmp.c index 4728eaef..550e4c18 100644 --- a/proto/bmp/bmp.c +++ b/proto/bmp/bmp.c @@ -210,7 +210,7 @@ struct bmp_data_node { }; static void -bmp_route_monitor_pre_policy_table_in_snapshot(const struct channel *C); +bmp_route_monitor_pre_policy_table_in_snapshot(struct channel *C); static void bmp_common_hdr_serialize(buffer *stream, const enum bmp_message_type type, const u32 data_size) @@ -881,8 +881,8 @@ bmp_route_monitor_update_in_pre_end() } } -void -bmp_route_monitor_pre_policy_table_in_snapshot(const struct channel *C) +static void +bmp_route_monitor_pre_policy_table_in_snapshot(struct channel *C) { struct bmp_proto *p = g_bmp; @@ -915,7 +915,7 @@ bmp_route_monitor_pre_policy_table_in_snapshot(const struct channel *C) rte *e; for (e = n->routes; e; e = e->next) { - bgp_rte_update_in_notify(P, C, n, e, NULL, e->src); + bgp_rte_update_in_notify(C, n->n.addr, e, e->src); } bmp_route_monitor_update_in_pre_commit((struct bgp_proto *) P); |