Technically, the sender should NOT receive a broadcast packet from itself: since for most device, the carrier sense is disable during sending, there is no possibility that a node can receive during sending. So the functionality of ns2 at this point is correct.
If you need the sender to receive its packet, the easiest way is make a copy of the outgoing packet, and change only the hdr_cmn::direction()=hdr_cmn::UP; and call the recv() function of the same agent object. Then this packet would be received by itself. Hope this help -- Ke Liu Ph.D. Candidate in Computer Science Binghamton University, SUNY 30BU Aldrich Drive, Edison, NJ 08837 Cell: (607)372-6748 -- Ke Liu Ph.D. Candidate in Computer Science Binghamton University, SUNY 30BU Aldrich Drive, Edison, NJ 08837 Cell: (607)372-6748
