Mesh test refactored, see --pcap and --interfaces command line arguments
This commit is contained in:
@@ -33,21 +33,29 @@
|
||||
namespace ns3 {
|
||||
namespace dot11s {
|
||||
|
||||
MeshWifiHelper::MeshWifiHelper () : m_ssid("Mesh"), m_randomStartDelay (Seconds (0))
|
||||
MeshWifiHelper::MeshWifiHelper () : m_ssid("mesh"), m_randomStartDelay (Seconds (0))
|
||||
{
|
||||
}
|
||||
|
||||
void MeshWifiHelper::SetSsid (Ssid const & s)
|
||||
void
|
||||
MeshWifiHelper::SetSsid (Ssid const & s)
|
||||
{
|
||||
m_ssid = s;
|
||||
}
|
||||
|
||||
void MeshWifiHelper::SetRandomStartDelay (Time t)
|
||||
Ssid MeshWifiHelper::GetSsid () const
|
||||
{
|
||||
return m_ssid;
|
||||
}
|
||||
|
||||
void
|
||||
MeshWifiHelper::SetRandomStartDelay (Time t)
|
||||
{
|
||||
m_randomStartDelay = t;
|
||||
}
|
||||
|
||||
Ptr<WifiNetDevice> MeshWifiHelper::CreateInterface (const WifiPhyHelper &phyHelper, Ptr<Node> node) const
|
||||
Ptr<WifiNetDevice>
|
||||
MeshWifiHelper::CreateInterface (const WifiPhyHelper &phyHelper, Ptr<Node> node) const
|
||||
{
|
||||
Ptr<WifiNetDevice> device = CreateObject<WifiNetDevice> ();
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ public:
|
||||
MeshWifiHelper ();
|
||||
/// Set mesh SSID
|
||||
void SetSsid (const Ssid &);
|
||||
/// Get mesh SSID
|
||||
Ssid GetSsid () const;
|
||||
/// Set maximum random start delay
|
||||
void SetRandomStartDelay (Time delay);
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user