diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-04 17:05:24 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-04 17:05:24 +0000 |
commit | 8e15e048f2e14dcdd9915860feace487e4ae07d5 (patch) | |
tree | b168d0731d55b79ba97c1634f0e7866128b1f47d /proto/ospf/lsack.c | |
parent | 7a03e29d5c7ff07c907ed0d4c4f1c226eba5941d (diff) |
Deleted useles "struct proto" sending.
Diffstat (limited to 'proto/ospf/lsack.c')
-rw-r--r-- | proto/ospf/lsack.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c index d2f20bf6..fb0844dd 100644 --- a/proto/ospf/lsack.c +++ b/proto/ospf/lsack.c @@ -18,11 +18,9 @@ char *s_queue[] = { "direct", "delayed" }; void ospf_lsack_enqueue(struct ospf_neighbor *n, struct ospf_lsa_header *h, - struct proto *p, int queue) + int queue) { - struct lsah_n *no; - - no = mb_alloc(n->pool, sizeof(struct lsah_n)); + struct lsah_n *no = mb_alloc(n->pool, sizeof(struct lsah_n)); memcpy(&no->lsa, h, sizeof(struct ospf_lsa_header)); add_tail(&n->ackl[queue], NODE no); DBG("Adding (%s) ack for %I, ID: %I, RT: %I, Type: %u\n", s_queue[queue], @@ -120,7 +118,7 @@ ospf_lsack_send(struct ospf_neighbor *n, int queue) } void -ospf_lsack_receive(struct ospf_lsack_packet *ps, struct proto *p, +ospf_lsack_receive(struct ospf_lsack_packet *ps, struct ospf_iface *ifa, u16 size) { u32 nrid, myrid; @@ -130,6 +128,7 @@ ospf_lsack_receive(struct ospf_lsack_packet *ps, struct proto *p, u16 nolsa, i; struct top_hash_entry *en; u16 lenn = ntohs(ps->ospf_packet.length); + struct proto *p = (struct proto *) ifa->proto; nrid = ntohl(ps->ospf_packet.routerid); |