Skip to content

Commit

Permalink
EthernetLink: Changed base channel to Cable to display disabled/enabl…
Browse files Browse the repository at this point in the history
…ed state.
  • Loading branch information
levy committed Feb 16, 2024
1 parent bf7f21b commit be49324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/inet/node/ethernet/EthernetLink.ned
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

package inet.node.ethernet;

import ned.DatarateChannel;
import inet.common.Cable;

//
// Base for Ethernet link types. Propagation delay can be specified with the
// length of the cable, i.e. in meters instead of nanoseconds or microseconds.
//
channel EthernetLink extends DatarateChannel
channel EthernetLink extends Cable
{
double length @unit(m) = default(10m);
delay = default(replaceUnit(length / 2e8, "s"));
Expand Down

0 comments on commit be49324

Please sign in to comment.