Finally make tap bridge work with VMs (bug 569)

This commit is contained in:
Craig Dowell committed 2009-06-23 22:12:35 -07:00
1 parent c3b6466263
commit 6e8b7012e7
22 files changed
+116 -121

No files matched your search

+8 -6
View File
@@ -76,12 +76,6 @@ SimpleNetDevice::SetChannel (Ptr<SimpleChannel> channel)
m_channel->Add (this);
}
void
SimpleNetDevice::SetAddress (Mac48Address address)
{
m_address = address;
}
void
SimpleNetDevice::SetIfIndex(const uint32_t index)
{
@@ -97,9 +91,17 @@ SimpleNetDevice::GetChannel (void) const
{
return m_channel;
}
void
SimpleNetDevice::SetAddress (Address address)
{
m_address = Mac48Address::ConvertFrom(address);
}
Address
SimpleNetDevice::GetAddress (void) const
{
//
// Implicit conversion from Mac48Address to Address
//
return m_address;
}
bool