Hi,

I'm trying to access the IFq of a node from an Agent attached to it,
mainly to see how many packets are waiting at this node and to extract
other info from them.

I call the following:

   PriQueue        *ifqueue;
   ifqueue->length();

Which results in a segmentation fault, presumably because my pointer is
NULL.

So, I tried the following as another way to get to it:

        LL *linklayer;
        int seqn = linklayer->seqno();
        Queue *the_q;
        the_q = linklayer->ifq();

If I print "the_q" and "seqn" then I find they are the same for every
node (I have an Agent attached to every node in the simulation).

I expected the seq numbers and ifq to be different for each node.

I'm using AODV and ns 2.30. The Agent is a modified copy of the Ping
tutorial which works correctly (tested before trying this).


I looked at:
http://mailman.isi.edu/pipermail/ns-users/2003-August/034951.html
but to no avail.

Can anyone help??


-- 
Nick Johnson
[EMAIL PROTECTED]

Reply via email to