Remove TapNetDevice::[GS]etName; a couple of bug fixes.
--- a/src/devices/tap-net-device/tap-net-device.cc Sun May 24 16:18:20 2009 +0100
+++ b/src/devices/tap-net-device/tap-net-device.cc Sat May 30 17:36:29 2009 +0100
@@ -121,18 +121,6 @@
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)
{
m_index = index;
@@ -176,7 +164,7 @@
bool
TapNetDevice::IsBroadcast (void) const
{
- return m_needsArp;
+ return true;
}
Address
@@ -217,7 +205,6 @@
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);
--- a/src/devices/tap-net-device/tap-net-device.h Sun May 24 16:18:20 2009 +0100
+++ b/src/devices/tap-net-device/tap-net-device.h Sat May 30 17:36:29 2009 +0100
@@ -116,8 +116,6 @@
// 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;