initialize more state variables
This commit is contained in:
@@ -16,6 +16,11 @@ namespace ns3 {
|
||||
* Implement the DCF state holder
|
||||
****************************************************************/
|
||||
|
||||
DcfState::DcfState ()
|
||||
: m_backoffSlots (0),
|
||||
m_backoffStart (Seconds (0.0))
|
||||
{}
|
||||
|
||||
DcfState::~DcfState ()
|
||||
{}
|
||||
|
||||
@@ -30,6 +35,7 @@ DcfState::SetCwBounds (uint32_t minCw, uint32_t maxCw)
|
||||
{
|
||||
m_cwMin = minCw;
|
||||
m_cwMax = maxCw;
|
||||
ResetCw ();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -11,6 +11,8 @@ class MacParameters;
|
||||
class DcfState
|
||||
{
|
||||
public:
|
||||
DcfState ();
|
||||
|
||||
virtual ~DcfState ();
|
||||
|
||||
void SetAifsn (uint32_t aifsn);
|
||||
|
||||
Reference in New Issue
Block a user