MeshPointDevice::SetAddress ()

This commit is contained in:
Pavel Boyko
2009-07-03 10:10:25 +04:00
parent 5f0da2733d
commit 80909769fa
2 changed files with 8 additions and 0 deletions

View File

@@ -167,6 +167,13 @@ MeshPointDevice::GetAddress () const
return m_address;
}
void
MeshPointDevice::SetAddress (Address a)
{
NS_LOG_WARN ("Manual changing mesh point address can cause routing errors.");
m_address = Mac48Address::ConvertFrom(a);
}
bool
MeshPointDevice::SetMtu (const uint16_t mtu)
{

View File

@@ -96,6 +96,7 @@ public:
virtual uint32_t GetIfIndex () const;
virtual Ptr<Channel> GetChannel () const;
virtual Address GetAddress () const;
virtual void SetAddress (Address a);
virtual bool SetMtu (const uint16_t mtu);
virtual uint16_t GetMtu () const;
virtual bool IsLinkUp () const;