[ns] MAC Broadcast RTS/CTS
Rohan S
syphy8 at yahoo.com
Sun Feb 15 22:43:43 PST 2004
Hi, I am trying to enable RTS/CTS for broadcast data
packets. But when I try to do that, I am also
enabling RTS/CTS for ARP packets (which are
broadcast). Could anyone suggest a way to disable
RTS/CTS for ARP and enable RTS/CTS for
broadcast data packets.Thank You
void
Mac802_11::sendRTS(int dst)
{
Packet *p = Packet::alloc();
hdr_cmn* ch = HDR_CMN(p);
struct rts_frame *rf = (struct
rts_frame*)p->access(hdr_mac::offset_);
hdr_arp *ah = HDR_ARP(p);
assert(pktTx_);
assert(pktRTS_ == 0);
/*
* If the size of the packet is larger than the
* RTSThreshold, then perform the RTS/CTS exchange.
*
* XXX: also skip if destination is a broadcast
*/
if( (u_int32_t) HDR_CMN(pktTx_)->size() <
macmib_->RTSThreshold ) {
Packet::free(pktRTS_);
//p = 0;
return;
}
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
More information about the Ns-users
mailing list