summaryrefslogtreecommitdiff
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index 26cc4d43..4f5db664 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -226,19 +226,26 @@ ospf_err_hook(sock * sk, int err UNUSED)
}
void
-sk_send_to_agt(sock * sk, u16 len, struct ospf_iface *ifa, u8 state)
+ospf_send_to_agt(sock * sk, u16 len, struct ospf_iface *ifa, u8 state)
{
struct ospf_neighbor *n;
WALK_LIST(NODE n, ifa->neigh_list) if (n->state >= state)
- sk_send_to(sk, len, n->ip, OSPF_PROTO);
+ ospf_send_to(sk, len, n->ip);
}
void
-sk_send_to_bdr(sock * sk, u16 len, struct ospf_iface *ifa)
+ospf_send_to_bdr(sock * sk, u16 len, struct ospf_iface *ifa)
{
if (ipa_compare(ifa->drip, ipa_from_u32(0)) != 0)
- sk_send_to(sk, len, ifa->drip, OSPF_PROTO);
+ ospf_send_to(sk, len, ifa->drip);
if (ipa_compare(ifa->bdrip, ipa_from_u32(0)) != 0)
- sk_send_to(sk, len, ifa->bdrip, OSPF_PROTO);
+ ospf_send_to(sk, len, ifa->bdrip);
}
+
+void
+ospf_send_to(sock *sk, u16 len, ip_addr ip)
+{
+ sk_send_to(sk, len, ip, OSPF_PROTO);
+}
+