summaryrefslogtreecommitdiff
path: root/proto/bmp/bmp.h
diff options
context:
space:
mode:
authorMichal Zagorski <mzagorsk@akamai.com>2023-05-30 17:09:25 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-05-30 17:09:25 +0200
commit62d8fbdc1cb3d358b0d20d7b10bd3f17f357d567 (patch)
tree8191901307820bb9ddebfa7ec4d4c4b5e900b373 /proto/bmp/bmp.h
parentae4d934c53cdc4cc5ec3d4535cd5138fdf9b25cb (diff)
BMP: Add local address option
Also remove unused local and ip_post_policy options. Co-authored with Pawel Maslanka <pmaslank@akamai.com>. Minor changes by committer.
Diffstat (limited to 'proto/bmp/bmp.h')
-rw-r--r--proto/bmp/bmp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/bmp/bmp.h b/proto/bmp/bmp.h
index 40d42e6a..6d429e66 100644
--- a/proto/bmp/bmp.h
+++ b/proto/bmp/bmp.h
@@ -35,11 +35,10 @@ struct bmp_config {
struct proto_config c;
const char *sys_descr; // sysDescr MIB-II [RFC1213] object
const char *sys_name; // sysName MIB-II [RFC1213] object
+ ip_addr local_addr; // Local IP address
ip_addr station_ip; // Monitoring station address
u16 station_port; // Monitoring station TCP port
bool monitoring_rib_in_pre_policy; // Route monitoring pre-policy Adj-Rib-In
- bool monitoring_rib_in_post_policy; // Route monitoring post-policy Adj-Rib-In
- bool monitoring_rib_local; // Route monitoring Local Rib
};
/* Forward declarations */
@@ -59,9 +58,10 @@ struct bmp_proto {
struct proto p; // Parent proto
const struct bmp_config *cf; // Shortcut to BMP configuration
sock *sk; // TCP connection
- event *tx_ev; // TX event
+ 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 local_addr; // Source local IP address
ip_addr station_ip; // Monitoring station IP address
u16 station_port; // Monitoring station TCP port
struct monitoring_rib monitoring_rib;