initialize more state variables

This commit is contained in:
Mathieu Lacage
2007-11-13 17:58:22 +01:00
parent 87db306da0
commit 1bbd9675b6
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -11,6 +11,8 @@ class MacParameters;
class DcfState
{
public:
DcfState ();
virtual ~DcfState ();
void SetAifsn (uint32_t aifsn);