summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-19 13:28:56 +0000
committerMartin Mares <mj@ucw.cz>2000-04-19 13:28:56 +0000
commite0d6a7bda446d96dc3d56f65afed1872f20407cb (patch)
tree5ef0a13f464a32724c474cac271f2bcfb926fbde
parent035044b1d946c50efd4b59a8869198a0300c8151 (diff)
Delay fetching of router ID.
-rw-r--r--proto/bgp/bgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index 411c7715..933ced83 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -311,6 +311,7 @@ bgp_start_locked(struct object_lock *lock)
struct bgp_config *cf = p->cf;
DBG("BGP: Got lock\n");
+ p->local_id = cf->c.global->router_id;
p->next_hop = cf->multihop ? cf->multihop_via : cf->remote_ip;
p->neigh = neigh_find(&p->p, &p->next_hop, NEF_STICKY);
if (!p->neigh)
@@ -400,7 +401,6 @@ bgp_init(struct proto_config *C)
p->local_as = c->local_as;
p->remote_as = c->remote_as;
p->is_internal = (c->local_as == c->remote_as);
- p->local_id = C->global->router_id;
return P;
}