]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Handle corner cases in event ordering
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 8 Apr 2019 14:39:22 +0000 (16:39 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 8 Apr 2019 14:56:56 +0000 (16:56 +0200)
commit4a50c8bd0310053a3dcab45c8dde0362348c0503
tree46f0b922b4a28c63f36cad87f7f6499bbaf52cb3
parent23ee6b1cd6dc597876d91db9a015f7a633764808
BGP: Handle corner cases in event ordering

When BGP connection is opened, it may happen that rx hook (with remote
OPEN) is called before tx hook (for local OPEN). Therefore, we need to do
internal changes (like setting local_caps) synchronously with OPENSENT
transition and we need to ensure that OPEN is sent before KEEPALIVE.
proto/bgp/bgp.c
proto/bgp/bgp.h
proto/bgp/packets.c