summaryrefslogtreecommitdiff
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 01:06:16 +0000
committerOndrej Filip <feela@network.cz>2000-04-18 01:06:16 +0000
commit67315ef64e3655c65cfab032d637fe29d3cf91b2 (patch)
tree95ddb8cb514d5163c4fb5cbf1eb13bf2ab5d7ec3 /proto/ospf/packet.c
parent2a0925948de20bd391d2c27a08ffdf2b4350e5c3 (diff)
Some lsack work. There is something very worng. :-( It locked my network.
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index cefc125e..b04fa947 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -187,3 +187,12 @@ ospf_err_hook(sock *sk, int err)
DBG("%s: Err_Hook called on interface %s\n", p->name,sk->iface->name);
}
+void
+sk_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);
+}