Better list manipulation.
This commit is contained in:
parent
3fdbafb6f4
commit
ce0603a6ed
1 changed files with 2 additions and 4 deletions
|
@ -24,13 +24,11 @@ ospf_lsreq_tx(struct ospf_neighbor *n)
|
||||||
|
|
||||||
fill_ospf_pkt_hdr(n->ifa, pk, LSREQ);
|
fill_ospf_pkt_hdr(n->ifa, pk, LSREQ);
|
||||||
|
|
||||||
s_init(&(n->lsrqi), &(n->lsrql));
|
sn=SHEAD(n->lsrql);
|
||||||
sn=s_get(&(n->lsrqi));
|
|
||||||
if(sn==NULL) return;
|
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))/
|
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);
|
lsh=(struct ospf_lsreq_header *)(pk+1);
|
||||||
|
|
||||||
for(;i>0;i--)
|
for(;i>0;i--)
|
||||||
|
|
Loading…
Reference in a new issue