summaryrefslogtreecommitdiffstats
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 03:06:16 +0200
committerOndrej Filip <feela@network.cz>2000-04-18 03:06:16 +0200
commit67315ef64e3655c65cfab032d637fe29d3cf91b2 (patch)
tree95ddb8cb514d5163c4fb5cbf1eb13bf2ab5d7ec3 /proto/ospf/packet.c
parent2a0925948de20bd391d2c27a08ffdf2b4350e5c3 (diff)
downloadbird-67315ef64e3655c65cfab032d637fe29d3cf91b2.tar
bird-67315ef64e3655c65cfab032d637fe29d3cf91b2.zip
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 cefc125..b04fa94 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);
+}