Generate a bad packet when coming in on a bad nic
This commit is contained in:
parent
0a13df1446
commit
18a8e6e3a1
@ -752,7 +752,16 @@ namespace EduNetworkBuilder
|
|||||||
mynet = NB.GetNetwork();
|
mynet = NB.GetNetwork();
|
||||||
nd = mynet.GetDeviceFromID(myID);
|
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))
|
if(!mynet.ItemTestIsComplete(nd.hostname, NetTestType.DeviceIsFrozen))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user