summaryrefslogtreecommitdiff
path: root/proto/bmp/bmp.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-03-28 16:41:53 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-04-16 20:05:17 +0200
commit568fd666136fcf7a37eb445d18b478b6464536c4 (patch)
tree02892333d0f9b756a4719ea6d7e87b139e6b021d /proto/bmp/bmp.h
parent4adebdf198d6e2ca1afcd7cb9bfac81725e7b24e (diff)
BMP: Integrate bmp_conn to bmp_proto
There is only one socket per BMP instance, no need to have separate struct (like in BGP).
Diffstat (limited to 'proto/bmp/bmp.h')
-rw-r--r--proto/bmp/bmp.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/proto/bmp/bmp.h b/proto/bmp/bmp.h
index 73f40eb8..ff02d3b2 100644
--- a/proto/bmp/bmp.h
+++ b/proto/bmp/bmp.h
@@ -46,12 +46,6 @@ struct bmp_config {
struct bgp_proto;
struct bmp_proto;
-struct bmp_conn {
- struct bmp_proto *bmp;
- struct birdsock *sk;
- event *tx_ev;
-};
-
// Stores sent and received BGP OPEN MSGs
struct bmp_peer_open_msg {
struct bmp_peer_map tx_msg;
@@ -70,7 +64,8 @@ struct rt_table_info {
struct bmp_proto {
struct proto p; // Parent proto
const struct bmp_config *cf; // Shortcut to BMP configuration
- struct bmp_conn *conn; // Connection we have established
+ sock *sk; // TCP connection
+ event *tx_ev; // TX event
char sys_descr[MIB_II_STR_LEN]; // sysDescr MIB-II [RFC1213] object
char sys_name[MIB_II_STR_LEN]; // sysName MIB-II [RFC1213] object
ip_addr station_ip; // Monitoring station IP address