Get traceroute using ActionClass
This commit is contained in:
parent
b3f4733248
commit
8e0fdd9105
@ -1392,6 +1392,19 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
AC.DoAction();
|
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
|
#endregion ActionFunctions
|
||||||
|
|
||||||
|
@ -1465,7 +1465,8 @@ namespace EduNetworkBuilder
|
|||||||
destination = myNetwork.DNSLookup(ItemClickedOn, dest);
|
destination = myNetwork.DNSLookup(ItemClickedOn, dest);
|
||||||
if (destination == null || destination.GetIPString == NB.ZeroIPString)
|
if (destination == null || destination.GetIPString == NB.ZeroIPString)
|
||||||
destination = new NB_IPAddress(dest);
|
destination = new NB_IPAddress(dest);
|
||||||
ItemClickedOn.TracerouteFromHere(destination);
|
//ItemClickedOn.TracerouteFromHere(destination);
|
||||||
|
NB.DoActionTracertDevice(ItemClickedOn.GetUniqueIdentifier, destination);
|
||||||
myNetwork.ProcessPackets();
|
myNetwork.ProcessPackets();
|
||||||
UpdateMessages();
|
UpdateMessages();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user