put DeviceName Attribute back in emu net device
authorCraig Dowell <craigdo@ee.washington.edu>
Mon, 20 Apr 2009 19:36:31 -0700
changeset 4370 a64e987a727a
parent 4369 ffab83e88af3
child 4383 68b89964dd28
put DeviceName Attribute back in emu net device
src/devices/emu/emu-net-device.cc
--- a/src/devices/emu/emu-net-device.cc	Mon Apr 20 19:08:41 2009 +0100
+++ b/src/devices/emu/emu-net-device.cc	Mon Apr 20 19:36:31 2009 -0700
@@ -68,6 +68,11 @@
                    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.)),