summaryrefslogtreecommitdiff
path: root/proto/ospf/lsack.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-06 00:08:27 +0000
committerOndrej Filip <feela@network.cz>2000-06-06 00:08:27 +0000
commiteb436e16fd85340d3403a033ee86f973428a2f08 (patch)
tree7bef00ed3b6a56c0178484ae7bd8eb9a763fb803 /proto/ospf/lsack.c
parente5b5d18c1c8b33e76e954c0696e056fc11701631 (diff)
NBMA networks seems to work, but this should be better. :-)
Diffstat (limited to 'proto/ospf/lsack.c')
-rw-r--r--proto/ospf/lsack.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
index f79aa2ae..b7c13673 100644
--- a/proto/ospf/lsack.c
+++ b/proto/ospf/lsack.c
@@ -113,7 +113,14 @@ ospf_lsack_delay_tx(struct ospf_neighbor *n)
}
else
{
- sk_send_to_agt(sk, len, ifa, NEIGHBOR_EXCHANGE);
+ if((ifa->state==OSPF_IS_DR)||(ifa->state==OSPF_IS_BACKUP))
+ {
+ sk_send_to_agt(sk, len, ifa, NEIGHBOR_EXCHANGE);
+ }
+ else
+ {
+ sk_send_to_bdr(sk, len, ifa);
+ }
}
fill_ospf_pkt_hdr(n->ifa, pk, LSACK_P);