summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-04 03:23:03 +0200
committerOndrej Filip <feela@network.cz>2000-05-04 03:23:03 +0200
commitd345cda5a1cea03a09e5a37c999e88c5177c8a9e (patch)
tree2655c3d095e1ea1717807396a8d6df588f5a7905 /proto/ospf/neighbor.c
parent9e48d717cf681dcc3cfaaee4358b5c6fa3aa409e (diff)
downloadbird-d345cda5a1cea03a09e5a37c999e88c5177c8a9e.tar
bird-d345cda5a1cea03a09e5a37c999e88c5177c8a9e.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 050a253..831cd62 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);
}