summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-03-30 18:22:58 +0200
committerOndrej Filip <feela@network.cz>2000-03-30 18:22:58 +0200
commitce0603a6eda81b97d6db021c91b86cb4c920eb04 (patch)
tree37bac73e58d45aad24669d1f92c3793cb055c21c /proto
parent3fdbafb6f49946f15d0c10d311dd35479bf6c0f1 (diff)
downloadbird-ce0603a6eda81b97d6db021c91b86cb4c920eb04.tar
bird-ce0603a6eda81b97d6db021c91b86cb4c920eb04.zip
Better list manipulation.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/lsreq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/proto/ospf/lsreq.c b/proto/ospf/lsreq.c
index a0a8685..954ad7b 100644
--- a/proto/ospf/lsreq.c
+++ b/proto/ospf/lsreq.c
@@ -24,13 +24,11 @@ ospf_lsreq_tx(struct ospf_neighbor *n)
fill_ospf_pkt_hdr(n->ifa, pk, LSREQ);
- s_init(&(n->lsrqi), &(n->lsrql));
- sn=s_get(&(n->lsrqi));
+ sn=SHEAD(n->lsrql);
if(sn==NULL) return;
- /* FIXME above I don't need iterator and slist */
i=j=(n->ifa->iface->mtu-SIPH-sizeof(struct ospf_lsreq_packet))/
- sizeof(struct ospf_lsreq_header); /* FIXME IP header! */
+ sizeof(struct ospf_lsreq_header);
lsh=(struct ospf_lsreq_header *)(pk+1);
for(;i>0;i--)