Skip to content

Commit

Permalink
EthernetMac, EthernetCsmaMac: fixed local state variable value at ope…
Browse files Browse the repository at this point in the history
…rational shutdown
  • Loading branch information
ZoltanBojthe committed Apr 5, 2024
1 parent b44279d commit e4640f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inet/linklayer/ethernet/base/EthernetMacBase.cc
Expand Up @@ -167,6 +167,7 @@ void EthernetMacBase::handleStopOperation(LifecycleOperation *operation)
else {
networkInterface->setCarrier(false);
networkInterface->setState(NetworkInterface::State::DOWN);
connected = false;
startActiveOperationExtraTimeOrFinish(par("stopOperationExtraTime"));
}
}
Expand All @@ -190,6 +191,7 @@ void EthernetMacBase::processAtHandleMessageFinished()
networkInterface->setCarrier(false);
processConnectDisconnect();
networkInterface->setState(NetworkInterface::State::DOWN);
connected = false;
startActiveOperationExtraTimeOrFinish(par("stopOperationExtraTime"));
}
}
Expand Down

0 comments on commit e4640f7

Please sign in to comment.