diff options
Diffstat (limited to 'src/dev/net/Ethernet.py')
-rw-r--r-- | src/dev/net/Ethernet.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/dev/net/Ethernet.py b/src/dev/net/Ethernet.py index 1f8e75200..68867c00f 100644 --- a/src/dev/net/Ethernet.py +++ b/src/dev/net/Ethernet.py @@ -95,13 +95,18 @@ class EtherSwitch(EtherObject): delay_var = Param.Latency('0ns', "packet transmit delay variability") time_to_live = Param.Latency('10ms', "time to live of MAC address maping") -class EtherTapStub(EtherObject): - type = 'EtherTapStub' +class EtherTapBase(EtherObject): + type = 'EtherTapBase' + abstract = True cxx_header = "dev/net/ethertap.hh" bufsz = Param.Int(10000, "tap buffer size") dump = Param.EtherDump(NULL, "dump object") + tap = SlavePort("Ethernet interface to connect to gem5's network") + +class EtherTapStub(EtherTapBase): + type = 'EtherTapStub' + cxx_header = "dev/net/ethertap.hh" port = Param.UInt16(3500, "Port helper should send packets to") - tap = SlavePort("Ethernet interface to gem5's network") class EtherDump(SimObject): type = 'EtherDump' |