From de769e24c01ff0c4aa573d9b4cec833dcae182d2 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 30 Mar 2000 20:00:42 +0000 Subject: Skeleton structures and files added. --- proto/ospf/lsack.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 proto/ospf/lsack.c (limited to 'proto/ospf/lsack.c') diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c new file mode 100644 index 00000000..5870809b --- /dev/null +++ b/proto/ospf/lsack.c @@ -0,0 +1,39 @@ +/* + * BIRD -- OSPF + * + * (c) 2000 Ondrej Filip + * + * 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! */ +} + -- cgit v1.2.3