From 5e3436d20ffdd95a164ffcb82f584fad76fb94e7 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 6 Jun 2004 19:53:52 +0000 Subject: Cleanup in packet.c. Deleted unused parameters. --- proto/ospf/dbdes.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'proto/ospf/dbdes.c') diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index 3d8ec50..54dd71f 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -182,26 +182,11 @@ ospf_dbdes_reqladd(struct ospf_dbdes_packet *ps, struct ospf_neighbor *n) void ospf_dbdes_receive(struct ospf_dbdes_packet *ps, - struct ospf_iface *ifa, u16 size) + struct ospf_iface *ifa, struct ospf_neighbor *n) { struct proto *p = (struct proto *) ifa->proto; - u32 nrid, myrid = p->cf->global->router_id; - struct ospf_neighbor *n; - - nrid = ntohl(((struct ospf_packet *) ps)->routerid); - - - if ((n = find_neigh(ifa, nrid)) == NULL) - { - OSPF_TRACE(D_PACKETS, "Received dbdes from unknown neigbor! %I.", nrid); - return; - } - - if (ifa->iface->mtu < size) - { - OSPF_TRACE(D_PACKETS, "Received dbdes larger than MTU from %I!", n->ip); - return; - } + u32 myrid = p->cf->global->router_id; + unsigned int size = ntohs(ps->ospf_packet.length); OSPF_TRACE(D_PACKETS, "Received dbdes from %I via %s.", n->ip, ifa->iface->name); -- cgit v1.2.3