Get traceroute using ActionClass

This commit is contained in:
Tim Young 2018-05-04 13:00:44 -05:00
parent b3f4733248
commit 8e0fdd9105
2 changed files with 15 additions and 1 deletions

View File

@ -1392,6 +1392,19 @@ namespace EduNetworkBuilder
AC.DoAction();
}
public static void DoActionTracertDevice(int HostID, NB_IPAddress Destination)
{
ActionClass AC = new ActionClass();
AC.Action = NBAction.traceroute;
AC.SourceID = HostID;
AC.Destination = Destination;
RegisterAction(AC);
AC.DoAction();
}
#endregion ActionFunctions

View File

@ -1465,7 +1465,8 @@ namespace EduNetworkBuilder
destination = myNetwork.DNSLookup(ItemClickedOn, dest);
if (destination == null || destination.GetIPString == NB.ZeroIPString)
destination = new NB_IPAddress(dest);
ItemClickedOn.TracerouteFromHere(destination);
//ItemClickedOn.TracerouteFromHere(destination);
NB.DoActionTracertDevice(ItemClickedOn.GetUniqueIdentifier, destination);
myNetwork.ProcessPackets();
UpdateMessages();
}