diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-09 00:24:22 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-09 00:24:22 +0200 |
commit | 0ebb8b64f384d57889271389abe9b8926dde7af8 (patch) | |
tree | 64953a7b97b94715cd3a8804b357509bab2a6252 /proto/ospf/hello.c | |
parent | 77fbd315dfa2dd6b8252cf13386d8b8480234bcc (diff) | |
download | bird-0ebb8b64f384d57889271389abe9b8926dde7af8.tar bird-0ebb8b64f384d57889271389abe9b8926dde7af8.zip |
Bugfix in new neighbor allocation.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r-- | proto/ospf/hello.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c index 566c36f..2d1cdaa 100644 --- a/proto/ospf/hello.c +++ b/proto/ospf/hello.c @@ -84,8 +84,8 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p, if((n=find_neigh(ifa, nrid))==NULL) { - log("%s: New neighbor found: %I.", p->name,nrid); - n=mb_alloc(p->pool, sizeof(struct ospf_neighbor)); + debug("%s: New neighbor found: %I.\n", p->name,nrid); + n=mb_allocz(p->pool, sizeof(struct ospf_neighbor)); add_tail(&ifa->neigh_list, NODE n); n->rid=nrid; n->ip=faddr; @@ -96,7 +96,7 @@ ospf_hello_rx(struct ospf_hello_packet *ps, struct proto *p, n->ifa=ifa; n->adj=0; n->ldbdes=mb_alloc(p->pool, ifa->iface->mtu); - neigh_chstate(n,NEIGHBOR_DOWN); + n->state=NEIGHBOR_DOWN; install_inactim(n); n->rxmt_timer=tm_new(p->pool); n->rxmt_timer->data=n; |