0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Merge commit 'e2f08c382a2adbbbd94c5cd7d996ce9175e0fb9c' into HEAD

This commit is contained in:
Maria Matejka 2023-10-12 11:38:16 +02:00
commit 3cfa9ac253
2 changed files with 9 additions and 0 deletions

View File

@ -125,7 +125,9 @@
#include "lib/string.h" #include "lib/string.h"
#include "bgp.h" #include "bgp.h"
#ifdef CONFIG_BMP
#include "proto/bmp/bmp.h" #include "proto/bmp/bmp.h"
#endif
static void bgp_listen_create(void *); static void bgp_listen_create(void *);
@ -796,8 +798,11 @@ bgp_conn_enter_established_state(struct bgp_conn *conn)
bgp_conn_set_state(conn, BS_ESTABLISHED); bgp_conn_set_state(conn, BS_ESTABLISHED);
proto_notify_state(&p->p, PS_UP); proto_notify_state(&p->p, PS_UP);
#ifdef CONFIG_BMP
bmp_peer_up(p, conn->local_open_msg, conn->local_open_length, bmp_peer_up(p, conn->local_open_msg, conn->local_open_length,
conn->remote_open_msg, conn->remote_open_length); conn->remote_open_msg, conn->remote_open_length);
#endif
} }
static void static void
@ -810,9 +815,11 @@ bgp_conn_leave_established_state(struct bgp_conn *conn, struct bgp_proto *p)
if (p->p.proto_state == PS_UP) if (p->p.proto_state == PS_UP)
bgp_stop(p, 0, NULL, 0); bgp_stop(p, 0, NULL, 0);
#ifdef CONFIG_BMP
bmp_peer_down(p, p->last_error_class, bmp_peer_down(p, p->last_error_class,
conn->notify_code, conn->notify_subcode, conn->notify_code, conn->notify_subcode,
conn->notify_data, conn->notify_size); conn->notify_data, conn->notify_size);
#endif
} }
void void

View File

@ -26,7 +26,9 @@
#include "nest/cli.h" #include "nest/cli.h"
#include "bgp.h" #include "bgp.h"
#ifdef CONFIG_BMP
#include "proto/bmp/bmp.h" #include "proto/bmp/bmp.h"
#endif
#define BGP_RR_REQUEST 0 #define BGP_RR_REQUEST 0