summaryrefslogtreecommitdiff
path: root/proto/bmp/bmp.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-04-20 16:13:58 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-04-20 16:28:07 +0200
commit2c7d2141ac86b0d482d3221447d1ad920c557108 (patch)
tree5f349d8bed4a0eab1dc13d7ebcaa98bf7e8cc86d /proto/bmp/bmp.h
parent010df43519b12e83b0ff2cba9e344cba698586bb (diff)
BMP: Fix connection management
Replace broken TCP connection management with a simple state machine. Handle failed attempts properly with a timeout, detect and handle TCP connection close and try to reconnect after that. Remove useless 'station_connected' flag. Keep open messages saved even after the BMP session establishment, so they can be used after BMP session flaps. Use proper log messages for session events.
Diffstat (limited to 'proto/bmp/bmp.h')
-rw-r--r--proto/bmp/bmp.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/proto/bmp/bmp.h b/proto/bmp/bmp.h
index 22ee79c3..19623e33 100644
--- a/proto/bmp/bmp.h
+++ b/proto/bmp/bmp.h
@@ -81,7 +81,6 @@ struct bmp_proto {
list tx_queue; // Stores queued packets going to be sent
timer *connect_retry_timer; // Timer for retrying connection to the BMP collector
struct rt_table_info rt_table_in_pre_policy; // Pre-policy route import table
- bool station_connected; // Flag that stores connection status with BMP station
bool started; // Flag that stores running status of BMP instance
};