Translating Tunnel Packet

This commit is contained in:
Peter Wilson 2015-11-16 11:44:01 -06:00
parent 509f9c7828
commit 08a9dc11d2
2 changed files with 10 additions and 2 deletions

View File

@ -1157,7 +1157,7 @@ namespace EduNetworkBuilder
if(Destination == null)
{
Payload.MyStatus = PacketStatus.finished_failed;
Payload.Tracking.AddMessage(DebugLevel.info, hostname, "Packet sent out tunnel but no endpoint set. Dropping");
Payload.Tracking.AddMessage(DebugLevel.info, hostname, NB.Translate("ND_TunnelPacketFromHere_Error"));
return;
}
PacketType TunType = PacketType.tun_packet;
@ -1167,7 +1167,7 @@ namespace EduNetworkBuilder
TunnelPacket.payloadPacket = Payload;
TunnelPacket.EncryptionString = Encryption;
if(Payload != null)
Payload.Tracking.AddMessage(DebugLevel.info, this, "Packet going into tunnel.");
Payload.Tracking.AddMessage(DebugLevel.info, this, NB.Translate("ND_TunnelPacketFromHere_Message"));
Network myNet = NB.GetNetwork();
myNet.addPacket(TunnelPacket);
}

View File

@ -777,4 +777,12 @@
<data name="H_WirelessSSID_Title" xml:space="preserve">
<value>Wireless SSID</value>
</data>
<data name="ND_TunnelPacketFromHere_Error" xml:space="preserve">
<value>Packet sent out tunnel but no endpoint set. Dropping</value>
<comment>ND_TunnelPacketFromHere_Error = Packet sent out tunnel but no endpoint set. Dropping</comment>
</data>
<data name="ND_TunnelPacketFromHere_Message" xml:space="preserve">
<value>Packet going into tunnel.</value>
<comment>ND_TunnelPacketFromHere_Message = Packet going into tunnel.</comment>
</data>
</root>