diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index 684ba69..75a2ed3 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -1410,6 +1410,7 @@ namespace EduNetworkBuilder public void DHCPRequestFromHere() { + if (isFrozen() || IsBurned || PowerOff) return; bool tryit = false; if (CanUseDHCP) { @@ -1455,6 +1456,7 @@ namespace EduNetworkBuilder public void PingFromHere(IPAddress Destination) { + if (isFrozen() || IsBurned || PowerOff) return; //We need to create a packet Packet PingPacket = new Packet(this,Destination, NB.Translate("H_Ping_Title"), PacketType.ping_request); Network myNet = NB.GetNetwork(); @@ -1476,6 +1478,7 @@ namespace EduNetworkBuilder public void AskArpFromHere(IPAddress Destination, PacketMessage Tracker=null) { //We need to create a packet + if (isFrozen() || IsBurned || PowerOff) return; Packet ArpPacket = new Packet(this, Destination, NB.Translate("H_ARP_Title2"), PacketType.arp_request); if (Tracker != null) ArpPacket.ReplaceMessage(Tracker);