summaryrefslogtreecommitdiff
path: root/src/dev/ns_gige.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/ns_gige.hh')
-rw-r--r--src/dev/ns_gige.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dev/ns_gige.hh b/src/dev/ns_gige.hh
index 8032c0623..f4d0171d6 100644
--- a/src/dev/ns_gige.hh
+++ b/src/dev/ns_gige.hh
@@ -118,7 +118,7 @@ class Packet;
/**
* NS DP83820 Ethernet device model
*/
-class NSGigE : public EtherDevice
+class NSGigE : public EtherDevBase
{
public:
/** Transmit State Machine states */
@@ -346,7 +346,10 @@ class NSGigE : public EtherDevice
public:
typedef NSGigEParams Params;
- const Params *params() const { return (const Params *)_params; }
+ const Params *params() const {
+ return dynamic_cast<const Params *>(_params);
+ }
+
NSGigE(Params *params);
~NSGigE();