Generate a bad packet when coming in on a bad nic

This commit is contained in:
Tim Young 2018-04-04 12:57:58 +03:00
parent 0a13df1446
commit 18a8e6e3a1

View File

@ -752,7 +752,16 @@ namespace EduNetworkBuilder
mynet = NB.GetNetwork();
nd = mynet.GetDeviceFromID(myID);
if(mynet.ItemHasTest(nd.hostname,NetTestType.DeviceIsFrozen))
if (mynet.ItemHasTest(nd.hostname, NicName(), NetTestType.DeviceNICSprays))
{
//We should drop the current packet.
tPacket.AddMessage(DebugLevel.info, NB.Translate("N_ProssShouldContinTime"));
tPacket.Tracking.Status = NB.Translate("N_ProssShouldContinTime");
tPacket.MyStatus = PacketStatus.finished_failed;
//Then, we make a bad packet go out from here
nd.BadPacketFromHere();
}
if (mynet.ItemHasTest(nd.hostname,NetTestType.DeviceIsFrozen))
{
if(!mynet.ItemTestIsComplete(nd.hostname, NetTestType.DeviceIsFrozen))
{