diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-04 01:23:03 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-04 01:23:03 +0000 |
commit | d345cda5a1cea03a09e5a37c999e88c5177c8a9e (patch) | |
tree | 2655c3d095e1ea1717807396a8d6df588f5a7905 /proto/ospf/neighbor.c | |
parent | 9e48d717cf681dcc3cfaaee4358b5c6fa3aa409e (diff) |
Bugfix in Network lsa originating
Bugfix in ntohlsab() and htonlsab()
For calculating of rt I use my own fib. I delete routes! ;-)
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r-- | proto/ospf/neighbor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 050a253d..831cd621 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -27,7 +27,7 @@ neigh_chstate(struct ospf_neighbor *n, u8 state) ifa=n->ifa; if(n->state==NEIGHBOR_FULL) { - ifa->fadj++; + ifa->fadj--; n->state=state; originate_rt_lsa(ifa->oa,ifa->oa->po); originate_net_lsa(ifa,ifa->oa->po); @@ -39,7 +39,7 @@ neigh_chstate(struct ospf_neighbor *n, u8 state) n->state=state; if(state==NEIGHBOR_FULL) { - ifa->fadj--; + ifa->fadj++; originate_rt_lsa(n->ifa->oa,n->ifa->oa->po); originate_net_lsa(ifa,ifa->oa->po); } |