From f55e4e0f587b2d07474a69323627ac29b2f6e431 Mon Sep 17 00:00:00 2001 From: Craig Dowell Date: Mon, 20 Apr 2009 19:36:31 -0700 Subject: [PATCH] put DeviceName Attribute back in emu net device --- src/devices/emu/emu-net-device.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/devices/emu/emu-net-device.cc b/src/devices/emu/emu-net-device.cc index 7d3e451eb..6b57baf53 100644 --- a/src/devices/emu/emu-net-device.cc +++ b/src/devices/emu/emu-net-device.cc @@ -68,6 +68,11 @@ EmuNetDevice::GetTypeId (void) Mac48AddressValue (Mac48Address ("ff:ff:ff:ff:ff:ff")), MakeMac48AddressAccessor (&EmuNetDevice::m_address), MakeMac48AddressChecker ()) + .AddAttribute ("DeviceName", + "The name of the underlying real device (e.g. eth1).", + StringValue ("eth1"), + MakeStringAccessor (&EmuNetDevice::m_deviceName), + MakeStringChecker ()) .AddAttribute ("Start", "The simulation time at which to spin up the device thread.", TimeValue (Seconds (0.)),