Hi again I am sorry but I found the problem. It was my mistake. The thing is that I am using an aodv queue and the packet was being dropped because of timeout.
Thanks! David >________________________________ > De: David Rodenas <drodenasherr...@yahoo.es> >Para: "ns-users@isi.edu" <ns-users@ISI.EDU> >Enviado: miércoles 4 de enero de 2012 20:10 >Asunto: [ns] HDR_CMN(p)->next_hop_ is different from the MAC destination >address (p802_15_4macDA(p)) > > >Hi all > >I have the following problem. I am working with the IEEE 802.15.4 Zheng's >implementation in ns-2. In the routing layer I send a cbr packet where the >HDR_CMN(p)->next_hop_ is set to a specific node address. However, at MAC >layer, some cbr packets are not sent to that node but to another. Checking the >p802_15_4macDA(p) value (which get the mac destination address), I see that >the mac destination address of those packets is different to >the HDR_CMN(p)->next_hop_ that I set, when I suppose that both addresses might >be the same. For this reason, I searched where the MAC destination address is >populated but I could not find it. What I can say is that if I set the MAC >destination address at routing layer, this field is different when the packet >arrives to the MAC layer. > >My question is where the MAC destination address is set and why could be the >reason of this problem? > >Thanks in advance, > >David > > >