would you ever meet this problem with DSR ?
void NSCLASS send_buf_timeout(unsigned long data)
{
struct send_buf_entry *e;
int pkts;
struct timeval expires, now;
/* char buf[2048]; */
gettime(&now);
/* send_buf_print(&send_buf, buf); */
/* DEBUG("\n%s\n", buf); */
pkts = tbl_for_each_del(&send_buf, &now, crit_garbage);
DEBUG("%d packets garbage collected\n", pkts);
DSR_READ_LOCK(&send_buf.lock);
/* Get first packet in maintenance buffer */
e = (struct send_buf_entry *)__tbl_find(&send_buf, NULL, crit_none);
if (!e) {
DEBUG("No packet to set timeout for\n");
DSR_READ_UNLOCK(&send_buf.lock);
return;
}
expires = e->qtime;
timeval_add_usecs(&expires, ConfValToUsecs(SendBufferTimeout));
DEBUG("now=%s qtime=%s exp=%s\n", print_timeval(&now), print_timeval
(&e->qtime), print_timeval(&expires));
DSR_READ_UNLOCK(&send_buf.lock);
set_timer(&send_buf_timer, &expires);
}
when DEBUG("now=%s qtime=%s exp=%s\n", print_timeval(&now),
print_timeval(&e->qtime), print_timeval(&expires)) is excuted, then
simulation will be aborted.
It seems that this DSR protocol doesn't allow the simulation go on
when more than 30s passed, still no route is found by this route
discovery.
I also build a 2-node topology, node 1 is still, node 2 is moving far
away from node 1, when node 2 moves out of the transmission range of
node1, then the commucation between node 1 and node 2 will stop, if
this disconnection between node 1 and node 2 lasts more than 30s, then
the simulation will aborted. The same problem happens as I listed
above.
Is it anyone who ever met the same problem with me? How could I solve
this problem?
Are your working in windows? Please, send me more information. I need more
information for fixing the problem
--------------------------------------------------
From: "Jeanviolet" <zuoji...@gmail.com>
Sent: Wednesday, February 03, 2010 1:36 AM
To: "omnetpp" <omn...@googlegroups.com>
Subject: [Omnetpp-l] SendBufferTimeout Problem in DSR in InetManet
> --
> You received this message because you are subscribed to the Google Groups
> "omnetpp" group.
> To post to this group, send email to omn...@googlegroups.com.
> To unsubscribe from this group, send email to
> omnetpp+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/omnetpp?hl=en.
>
>