More things the device cannot do when powered off or broken.
This commit is contained in:
parent
a45807cb2d
commit
ed432d03ef
@ -1410,6 +1410,7 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
public void DHCPRequestFromHere()
|
public void DHCPRequestFromHere()
|
||||||
{
|
{
|
||||||
|
if (isFrozen() || IsBurned || PowerOff) return;
|
||||||
bool tryit = false;
|
bool tryit = false;
|
||||||
if (CanUseDHCP)
|
if (CanUseDHCP)
|
||||||
{
|
{
|
||||||
@ -1455,6 +1456,7 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
public void PingFromHere(IPAddress Destination)
|
public void PingFromHere(IPAddress Destination)
|
||||||
{
|
{
|
||||||
|
if (isFrozen() || IsBurned || PowerOff) return;
|
||||||
//We need to create a packet
|
//We need to create a packet
|
||||||
Packet PingPacket = new Packet(this,Destination, NB.Translate("H_Ping_Title"), PacketType.ping_request);
|
Packet PingPacket = new Packet(this,Destination, NB.Translate("H_Ping_Title"), PacketType.ping_request);
|
||||||
Network myNet = NB.GetNetwork();
|
Network myNet = NB.GetNetwork();
|
||||||
@ -1476,6 +1478,7 @@ namespace EduNetworkBuilder
|
|||||||
public void AskArpFromHere(IPAddress Destination, PacketMessage Tracker=null)
|
public void AskArpFromHere(IPAddress Destination, PacketMessage Tracker=null)
|
||||||
{
|
{
|
||||||
//We need to create a packet
|
//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);
|
Packet ArpPacket = new Packet(this, Destination, NB.Translate("H_ARP_Title2"), PacketType.arp_request);
|
||||||
if (Tracker != null)
|
if (Tracker != null)
|
||||||
ArpPacket.ReplaceMessage(Tracker);
|
ArpPacket.ReplaceMessage(Tracker);
|
||||||
|
Loading…
Reference in New Issue
Block a user