Remove TapNetDevice::[GS]etName; a couple of bug fixes.

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-05-30 17:36:29 +01:00
parent 7605d91dbe
commit 7c33f16166
2 changed files with 1 additions and 16 deletions

View File

@@ -120,18 +120,6 @@ TapNetDevice::PromiscReceive (Ptr<Packet> packet, uint16_t protocol,
}
void
TapNetDevice::SetName (const std::string name)
{
m_name = name;
}
std::string
TapNetDevice::GetName (void) const
{
return m_name;
}
void
TapNetDevice::SetIfIndex (const uint32_t index)
{
@@ -176,7 +164,7 @@ TapNetDevice::SetLinkChangeCallback (Callback<void> callback)
bool
TapNetDevice::IsBroadcast (void) const
{
return m_needsArp;
return true;
}
Address
@@ -217,7 +205,6 @@ TapNetDevice::Send (Ptr<Packet> packet, const Address& dest, uint16_t protocolNu
bool
TapNetDevice::SendFrom (Ptr<Packet> packet, const Address& source, const Address& dest, uint16_t protocolNumber)
{
NS_FATAL_ERROR ("not implemented");
if (m_sendCb (packet, source, dest, protocolNumber))
{
m_txTrace (packet);

View File

@@ -116,8 +116,6 @@ public:
// inherited from NetDevice base class.
virtual void SetName(const std::string name);
virtual std::string GetName(void) const;
virtual void SetIfIndex(const uint32_t index);
virtual uint32_t GetIfIndex(void) const;
virtual Ptr<Channel> GetChannel (void) const;