[ns] DSDV Data recv()

2006-07-11 Thread Sameh Gobriel
Hi ns-users, I have a question related to the receive function in dsdv.cc If you take a look on the code it does the following: 1- It first checks if the node is the sender (src == myaddr_) 2- Then it checks if the packet received is a routing packet (src != myaddr_) (iph-dport() == ROUTER_PORT)

[ns] Pointer to LL at mac802.11

2006-08-02 Thread Sameh Gobriel
Hi NS users, I have a problem on getting a pointer to the link layer at the MAC. I added the following to the Mac802_11::command(){ . else if(strcmp(argv[1], up-target) == 0){ ll_ = (LL *) TclObject::lookup(argv[2]); assert(ll_);

[ns] Pointer to LL at mac 802.11

2006-08-02 Thread Sameh Gobriel
Hi NS users, I have a problem on getting a pointer to the link layer at the MAC. I added the following to the Mac802_11::command(){ . else if(strcmp(argv[1], up-target) == 0){ ll_ = (LL *) TclObject::lookup(argv[2]); assert(ll_); }

[ns] Queue Length at MAC. (repeated question)

2006-08-03 Thread Sameh Gobriel
Hi Ns-Users, I am trying to access the ifq from inside mac802.11. After searching the list I discovered that this question was around for long time but no one has answered it. The way described in this post gives a seg fault. http://mailman.isi.edu/pipermail/ns-users/2003-August/034951.html If