Mesh test refactored, see --pcap and --interfaces command line arguments

This commit is contained in:
Pavel Boyko
2009-04-01 18:43:58 +04:00
parent 8de7e3dbe5
commit 6e1a80ecb8
3 changed files with 31 additions and 12 deletions

View File

@@ -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> ();

View File

@@ -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);
/**