[ns] How I distinguish a packet in queue is a multicast packet?

2008-05-17 Thread 王远征

Hi, all:
I'm implementing a multicast-related router-protocol. When a packet
enques, I need to determine whether it's a multicast packet. how can I do?


   Best regards.
   Yuanzheng, Wang








[ns] How I distinguish a packet in queue is a multicast packet?

2008-05-17 Thread Sidney Doria

If you can access the packet header, a packet is a multicast packet if

#define MULTICAST_ADDRESS 0xE00

p-daddr() = MULTICAST_ADDRESS


Take a look in MAODV code for ns2. It uses this definition in recv() function


Sidney Doria

2008/5/17 王远征 [EMAIL PROTECTED]:


 Hi, all:
I'm implementing a multicast-related router-protocol. When a packet
 enques, I need to determine whether it's a multicast packet. how can I do?


   Best regards.
   Yuanzheng, Wang











--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)