branch merge

This commit is contained in:
Tom Henderson
2008-10-10 14:22:53 -07:00
10 changed files with 20 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ else:
os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
## https://launchpad.net/pybindgen/
REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 593)
REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 595)
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)

View File

@@ -200,7 +200,7 @@ Packet::RemoveHeader (Header &header)
return deserialized;
}
uint32_t
Packet::PeekHeader (Header &header)
Packet::PeekHeader (Header &header) const
{
NS_LOG_FUNCTION (this << &header);
uint32_t deserialized = header.Deserialize (m_buffer.Begin ());

View File

@@ -210,7 +210,7 @@ public:
* \param header a reference to the header to read from the internal buffer.
* \returns the number of bytes read from the packet.
*/
uint32_t PeekHeader (Header &header);
uint32_t PeekHeader (Header &header) const;
/**
* Add trailer to this packet. This method invokes the
* Trailer::GetSerializedSize and Trailer::Serialize

View File

@@ -180,14 +180,15 @@ AdhocWifiMac::GetSsid (void) const
Mac48Address
AdhocWifiMac::GetBssid (void) const
{
// XXX the bssid should be generated by the procedure
// described in ieee802.11 section 11.1.3
return Mac48Address::GetBroadcast ();
return m_low->GetBssid ();
}
void
AdhocWifiMac::SetAddress (Mac48Address address)
{
m_low->SetAddress (address);
m_low->SetBssid (address);
// XXX the bssid should be generated by the procedure
// described in ieee802.11 section 11.1.3
}
void
AdhocWifiMac::SetSsid (Ssid ssid)

View File

@@ -77,7 +77,7 @@ public:
virtual Ssid GetSsid (void) const;
virtual void SetAddress (Mac48Address address);
virtual void SetSsid (Ssid ssid);
virtual Mac48Address GetBssid (void) const;
private:
// inherited from Object base class.
@@ -86,7 +86,6 @@ private:
void ForwardUp (Ptr<Packet> packet, WifiMacHeader const*hdr);
AdhocWifiMac (const AdhocWifiMac & ctor_arg);
AdhocWifiMac &operator = (const AdhocWifiMac &o);
Mac48Address GetBssid (void) const;
Ptr<DcaTxop> m_dca;
Callback<void,Ptr<Packet>, Mac48Address, Mac48Address> m_upCallback;

View File

@@ -49,7 +49,7 @@ NqapWifiMac::GetTypeId (void)
&NqapWifiMac::SetBeaconInterval),
MakeTimeChecker ())
.AddAttribute ("BeaconGeneration", "Whether or not beacons are generated.",
BooleanValue (false),
BooleanValue (true),
MakeBooleanAccessor (&NqapWifiMac::SetBeaconGeneration,
&NqapWifiMac::GetBeaconGeneration),
MakeBooleanChecker ())
@@ -251,6 +251,11 @@ NqapWifiMac::SetSsid (Ssid ssid)
NS_LOG_FUNCTION (ssid);
m_ssid = ssid;
}
Mac48Address
NqapWifiMac::GetBssid (void) const
{
return m_low->GetBssid ();
}
void

View File

@@ -83,7 +83,7 @@ public:
virtual Ssid GetSsid (void) const;
virtual void SetAddress (Mac48Address address);
virtual void SetSsid (Ssid ssid);
virtual Mac48Address GetBssid (void) const;
/**
* \param interval the interval between two beacon transmissions.

View File

@@ -248,7 +248,6 @@ NqstaWifiMac::SetSsid (Ssid ssid)
NS_LOG_FUNCTION (this << ssid);
m_ssid = ssid;
}
void
NqstaWifiMac::SetMaxMissedBeacons (uint32_t missed)
{

View File

@@ -83,7 +83,7 @@ public:
virtual Ssid GetSsid (void) const;
virtual void SetAddress (Mac48Address address);
virtual void SetSsid (Ssid ssid);
virtual Mac48Address GetBssid (void) const;
/**
* \param missed the number of beacons which must be missed
@@ -126,7 +126,6 @@ private:
void MissedBeacons (void);
void RestartBeaconWatchdog (Time delay);
SupportedRates GetSupportedRates (void) const;
Mac48Address GetBssid (void) const;
virtual void DoDispose (void);
NqstaWifiMac (const NqstaWifiMac & ctor_arg);
NqstaWifiMac &operator = (const NqstaWifiMac & ctor_arg);

View File

@@ -129,6 +129,10 @@ public:
* \param ssid the current ssid of this MAC layer.
*/
virtual void SetSsid (Ssid ssid) = 0;
/**
* \returns the bssid of the network this device belongs to.
*/
virtual Mac48Address GetBssid (void) const = 0;
private:
friend class WifiNetDevice;