Minor work on tracert
This commit is contained in:
parent
efec67749d
commit
0d848c6823
21
EduNetworkBuilder.userprefs
Normal file
21
EduNetworkBuilder.userprefs
Normal file
@ -0,0 +1,21 @@
|
||||
<Properties StartupConfiguration="{5662A48F-E771-4C29-B120-54D65FBC4A14}|Default">
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" ActiveRuntime="Mono 5.0.1 (Visual)" />
|
||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore />
|
||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="EduNetworkBuilder\Properties\Resources.Designer.cs">
|
||||
<Files>
|
||||
<File FileName="EduNetworkBuilder\NetworkBuilder.cs" Line="54" Column="4" />
|
||||
<File FileName="EduNetworkBuilder\NetworkDevice.cs" Line="1" Column="1" />
|
||||
<File FileName="EduNetworkBuilder\NB.cs" Line="407" Column="15" />
|
||||
<File FileName="EduNetworkBuilder\IPAddressEntry.cs" Line="195" Column="27" />
|
||||
<File FileName="EduNetworkBuilder\DeviceConfig.cs" Line="324" Column="62" />
|
||||
<File FileName="EduNetworkBuilder\FirewallEditor.cs" Line="25" Column="15" />
|
||||
<File FileName="EduNetworkBuilder\VLANConfig.cs" Line="32" Column="15" />
|
||||
<File FileName="EduNetworkBuilder\Properties\Resources.Designer.cs" Line="1136" Column="1" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MultiItemStartupConfigurations />
|
||||
<MonoDevelop.Ide.ItemProperties.EduNetworkBuilder PreferredExecutionTarget="MonoDevelop.Default" />
|
||||
</Properties>
|
@ -125,8 +125,8 @@ namespace EduNetworkBuilder
|
||||
|
||||
private void LanguagifyComponents()
|
||||
{
|
||||
ResourceManager RM = NB.GetResource();
|
||||
CultureInfo CI = NB.GetCulture();
|
||||
//ResourceManager RM = NB.GetResource();
|
||||
//CultureInfo CI = NB.GetCulture();
|
||||
Text = NB.Translate("IPAE_lblIP");
|
||||
Text = NB.Translate("IPAE_lblNetmask");
|
||||
Text = NB.Translate("IPAE_lblGateway");
|
||||
|
@ -1352,7 +1352,9 @@ namespace EduNetworkBuilder
|
||||
}
|
||||
if (ipc.What == PacketType.ping_request && tPacket.MyType == PacketType.ping_answer)
|
||||
typesMatch = true;
|
||||
if(typesMatch)
|
||||
if (ipc.What == PacketType.tracert_request && tPacket.MyType == PacketType.tracert_reply)
|
||||
typesMatch = true;
|
||||
if (typesMatch)
|
||||
{
|
||||
return ipc.Response;
|
||||
}
|
||||
@ -1823,6 +1825,8 @@ namespace EduNetworkBuilder
|
||||
//Tracert_request is processed on the link arrivak
|
||||
if (tPacket.MyType == PacketType.tracert_reply)
|
||||
{
|
||||
ResponseToPacket response = HowToRespondToPacket(tPacket);
|
||||
if (response == ResponseToPacket.none) return; //We do not do anything with it here.
|
||||
//The reply got here. This packet is done
|
||||
tPacket.AddMessage(DebugLevel.info, NB.Translate("ND_ProcessArrival_TracertReply") + " " + tPacket.sourceIP.GetIPString);
|
||||
tPacket.Tracking.Status = NB.LeftPad(hostname) + " " + string.Format(NB.Translate("ND_ProcessArrival_TracertReply") + " " + tPacket.sourceIP.GetIPString);
|
||||
|
Loading…
Reference in New Issue
Block a user