register switches in the traversal path
This commit is contained in:
parent
f2f7afc38d
commit
4755d0511d
@ -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
|
||||
|
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user