etherswitch.hh (11317:766c3eb44fd8) | etherswitch.hh (11341:bda2c39fd9fd) |
---|---|
1/* 2 * Copyright (c) 2014 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 46 unchanged lines hidden (view full) --- 55 EtherSwitch(const Params *p); 56 ~EtherSwitch(); 57 58 const Params * params() const 59 { 60 return dynamic_cast<const Params*>(_params); 61 } 62 | 1/* 2 * Copyright (c) 2014 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 46 unchanged lines hidden (view full) --- 55 EtherSwitch(const Params *p); 56 ~EtherSwitch(); 57 58 const Params * params() const 59 { 60 return dynamic_cast<const Params*>(_params); 61 } 62 |
63 EtherInt *getEthPort(const std::string &if_name, int idx); | 63 EtherInt *getEthPort(const std::string &if_name, int idx) override; |
64 65 protected: 66 /** 67 * Model for an Ethernet switch port 68 */ 69 class Interface : public EtherInt 70 { 71 public: --- 52 unchanged lines hidden --- | 64 65 protected: 66 /** 67 * Model for an Ethernet switch port 68 */ 69 class Interface : public EtherInt 70 { 71 public: --- 52 unchanged lines hidden --- |