summaryrefslogtreecommitdiff
path: root/proto/ospf/lsupd.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-09 14:51:39 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-09 14:51:39 +0200
commit1647923bd8d2f8e53337365abc5be7e343aa570c (patch)
tree72f34e15257ca9a9fbe2d4041bf2bb210076e32c /proto/ospf/lsupd.c
parent255722e0fcf251c101ff5bec92f1867edf841daa (diff)
OSPF: Minor refactoring of packet sending code
Common behavior for LSupd and delayed LSack moved to ospf_send_to_iface() and other minor changes.
Diffstat (limited to 'proto/ospf/lsupd.c')
-rw-r--r--proto/ospf/lsupd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index fafe4872..66017a2e 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -398,15 +398,7 @@ ospf_flood_lsupd(struct ospf_proto *p, struct top_hash_entry **lsa_list, uint ls
OSPF_PACKET(ospf_dump_lsupd, ospf_tx_buffer(ifa),
"LSUPD packet flooded via %s", ifa->ifname);
- if (ifa->type == OSPF_IT_BCAST)
- {
- if ((ifa->state == OSPF_IS_DR) || (ifa->state == OSPF_IS_BACKUP))
- ospf_send_to_all(ifa);
- else
- ospf_send_to_des(ifa);
- }
- else
- ospf_send_to_agt(ifa, NEIGHBOR_EXCHANGE);
+ ospf_send_to_iface(ifa);
}
return i;