A Discrete-Event Network Simulator
wifi-utils.cc File Reference
#include <cmath>
#include "ns3/packet.h"
#include "wifi-utils.h"
#include "ctrl-headers.h"
#include "wifi-mac-header.h"
#include "wifi-mac-trailer.h"
+ Include dependency graph for wifi-utils.cc:

Go to the source code of this file.


namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.


void ns3::AddWifiMacTrailer (Ptr< Packet > packet)
 Add FCS trailer to a packet. More...
double ns3::DbmToW (double dbm)
 Convert from dBm to Watts. More...
double ns3::DbToRatio (double db)
 Convert from dB to ratio. More...
uint32_t ns3::GetAckSize (void)
 Return the total Ack size (including FCS trailer). More...
uint32_t ns3::GetBlockAckRequestSize (BlockAckReqType type)
 Return the total BlockAckRequest size (including FCS trailer). More...
uint32_t ns3::GetBlockAckSize (BlockAckType type)
 Return the total BlockAck size (including FCS trailer). More...
uint32_t ns3::GetCtsSize (void)
 Return the total CTS size (including FCS trailer). More...
uint32_t ns3::GetMuBarSize (std::list< BlockAckReqType > types)
 Return the total MU-BAR size (including FCS trailer). More...
uint32_t ns3::GetRtsSize (void)
 Return the total RTS size (including FCS trailer). More...
uint32_t ns3::GetSize (Ptr< const Packet > packet, const WifiMacHeader *hdr, bool isAmpdu)
 Return the total size of the packet after WifiMacHeader and FCS trailer have been added. More...
bool ns3::IsInWindow (uint16_t seq, uint16_t winstart, uint16_t winsize)
double ns3::RatioToDb (double ratio)
 Convert from ratio to dB. More...
double ns3::WToDbm (double w)
 Convert from Watts to dBm. More...