summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto/bgp/bgp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index fb6c9881..ceeec727 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -505,6 +505,10 @@ bgp_conn_enter_established_state(struct bgp_conn *conn)
if (ipa_zero(p->source_addr))
p->source_addr = conn->sk->saddr;
+ /* In case of LLv6 is not valid during BGP start */
+ if (ipa_zero(p->link_addr) && p->neigh && p->neigh->iface && p->neigh->iface->llv6)
+ p->link_addr = p->neigh->iface->llv6->ip;
+
conn->sk->fast_rx = 0;
p->conn = conn;