[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