lq_hello->comm.ttl = 1;
lq_hello->comm.hops = 0;
- lq_hello->comm.seqno = get_msg_seqno();
lq_hello->htime = outif->hello_etime;
lq_hello->will = olsr_cnf->willingness;
lq_tc->comm.ttl = MAX_TTL;
lq_tc->comm.hops = 0;
- lq_tc->comm.seqno = get_msg_seqno();
lq_tc->from = olsr_cnf->main_addr;
olsr_head_v4->ttl = comm->ttl;
olsr_head_v4->hops = comm->hops;
- olsr_head_v4->seqno = htons(comm->seqno);
+ olsr_head_v4->seqno = htons(get_msg_seqno());
}
else
{
olsr_head_v6->ttl = comm->ttl;
olsr_head_v6->hops = comm->hops;
- olsr_head_v6->seqno = htons(comm->seqno);
+ olsr_head_v6->seqno = htons(get_msg_seqno());
}
}
*/
if (0 < net_output_pending(outif)) {
for (neigh = lq_tc->neigh; neigh != NULL; neigh = neigh->next) {
+ // TODO sizeof_tc_lq function required
expected_size += olsr_cnf->ipsize + 4;
}
}
// force signed comparison
+ // TODO sizeof_tc_lq function required
if ((int)(size + olsr_cnf->ipsize + 4) > rem)
{
// finalize the OLSR header