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/lsupd.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 proto/ospf/lsupd.c (limited to 'proto/ospf/lsupd.c') diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c new file mode 100644 index 0000000..5f53311 --- /dev/null +++ b/proto/ospf/lsupd.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_lsupd_tx(struct ospf_neighbor *n) +{ + /* FIXME Go on! */ +} + +void +ospf_lsupd_rx(struct ospf_lsupd_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 lsupd from unknown neigbor! (%u)\n", p->name, + nrid); + return ; + } + /* FIXME Go on! */ +} + -- cgit v1.2.3