Generate a bad packet when coming in on a bad nic
This commit is contained in:
parent
0a13df1446
commit
18a8e6e3a1
@ -751,8 +751,17 @@ namespace EduNetworkBuilder
|
||||
//We make sure the MAC matches.
|
||||
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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user