register switches in the traversal path

This commit is contained in:
Tim Young 2017-08-25 15:44:51 -05:00
parent f2f7afc38d
commit 4755d0511d
2 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,7 @@ namespace EduNetworkBuilder
packet_in=4, packet_out=8, packet_duplicate=16, all=63,
dump=256, pause=512}
public enum TraversalTechnology { gateway, static_route, vlan, ethernet, wireless, firewall,
vpn, vpn_encryption, vpn_decryption, ip_address, masquerade}
vpn, vpn_encryption, vpn_decryption, ip_address, masquerade, forward}
[Serializable]
public struct HostNicID //This holds a unique identifier for a network card. Links use this to know what it is connected to

View File

@ -1636,6 +1636,7 @@ namespace EduNetworkBuilder
//But if we do not know a dnic, send it out all of them (except the sNic)
if (sNic != nic && (tdNic == null || (tdNic != null && tdNic.ConnectedLink == -1) || tdNic == nic))
{
tPacket.TraversalInformation.AddPath(hostname, TraversalTechnology.forward);
if (nic.SendPacketOutNIC(tPacket))
{
count++;