summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsack.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-03-30 22:00:42 +0200
committerOndrej Filip <feela@network.cz>2000-03-30 22:00:42 +0200
commitde769e24c01ff0c4aa573d9b4cec833dcae182d2 (patch)
tree2e930b785fecbe391e2ed53d67e8cc8e6c6cd243 /proto/ospf/lsack.c
parent95eb1dba3ffe810bd876546ca4580af3bccdf181 (diff)
downloadbird-de769e24c01ff0c4aa573d9b4cec833dcae182d2.tar
bird-de769e24c01ff0c4aa573d9b4cec833dcae182d2.zip
Skeleton structures and files added.
Diffstat (limited to 'proto/ospf/lsack.c')
-rw-r--r--proto/ospf/lsack.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
new file mode 100644
index 0000000..5870809
--- /dev/null
+++ b/proto/ospf/lsack.c
@@ -0,0 +1,39 @@
+/*
+ * BIRD -- OSPF
+ *
+ * (c) 2000 Ondrej Filip <feela@network.cz>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#include "ospf.h"
+
+void
+ospf_lsack_tx(struct ospf_neighbor *n)
+{
+ /* FIXME Go on! */
+}
+
+void
+ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
+ struct ospf_iface *ifa, u16 size)
+{
+ u32 nrid, myrid;
+ struct ospf_neighbor *n;
+ struct ospf_lsreq_header *lsh;
+ int length;
+ u8 i;
+
+ nrid=ntohl(ps->ospf_packet.routerid);
+
+ myrid=p->cf->global->router_id;
+
+ if((n=find_neigh(ifa, nrid))==NULL)
+ {
+ debug("%s: Received lsack from unknown neigbor! (%u)\n", p->name,
+ nrid);
+ return ;
+ }
+ /* FIXME Go on! */
+}
+