]> git.ipfire.org Git - thirdparty/bird.git/commit
BMP: Fix connection management
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 20 Apr 2023 14:13:58 +0000 (16:13 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 20 Apr 2023 14:28:07 +0000 (16:28 +0200)
commit2c7d2141ac86b0d482d3221447d1ad920c557108
tree5f349d8bed4a0eab1dc13d7ebcaa98bf7e8cc86d
parent010df43519b12e83b0ff2cba9e344cba698586bb
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.
proto/bmp/bmp.c
proto/bmp/bmp.h