add ethernet and wireless traversal information

This commit is contained in:
Tim Young 2017-08-25 10:41:02 -05:00
parent eaab7771ff
commit c3fcecdba0

View File

@ -417,6 +417,11 @@ namespace EduNetworkBuilder
myDirection = nb_direction.to_src; myDirection = nb_direction.to_src;
//Console.WriteLine(NB.Translate("P_StartingOnLink") + string.Format(" SMAC: {0} DMAC: {1}",sourceMAC,destMAC)); //Console.WriteLine(NB.Translate("P_StartingOnLink") + string.Format(" SMAC: {0} DMAC: {1}",sourceMAC,destMAC));
AddMessage(DebugLevel.debug, " " + NB.Translate("P_StartingOnLink")); AddMessage(DebugLevel.debug, " " + NB.Translate("P_StartingOnLink"));
if(theLink.theLinkType == LinkType.wireless)
TraversalInformation.AddPath(theLink.hostname, TraversalTechnology.wireless); //We just went to wireless
else
TraversalInformation.AddPath(theLink.hostname, TraversalTechnology.ethernet); //We just went to ethernet
} }
public void StartOnDevice(NetworkDevice theDevice) public void StartOnDevice(NetworkDevice theDevice)