summaryrefslogtreecommitdiff
path: root/proto/ospf/lsupd.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/lsupd.c
parente5b5d18c1c8b33e76e954c0696e056fc11701631 (diff)
NBMA networks seems to work, but this should be better. :-)
Diffstat (limited to 'proto/ospf/lsupd.c')
-rw-r--r--proto/ospf/lsupd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index e28b6a7e..8059c369 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -149,7 +149,9 @@ flood_lsa(struct ospf_neighbor *n, struct ospf_lsa_header *hn,
if(ifa->type==OSPF_IT_NBMA)
{
- sk_send_to_agt(sk ,len, ifa, NEIGHBOR_EXCHANGE);
+ if((ifa->state==OSPF_IS_BACKUP)||(ifa->state==OSPF_IS_DR))
+ sk_send_to_agt(sk ,len, ifa, NEIGHBOR_EXCHANGE);
+ else sk_send_to_bdr(sk ,len, ifa);
}
else
{