From 907fdc17dd30a6ba1fd7341e33fab5741da7761a Mon Sep 17 00:00:00 2001 From: Tim Young Date: Thu, 20 Oct 2016 14:59:48 -0500 Subject: [PATCH] Removed console.writelines that were no longer needed --- EduNetworkBuilder/NetworkDevice.cs | 4 ++-- EduNetworkBuilder/NetworkInterface.cs | 14 +++++++------- EduNetworkBuilder/Packet.cs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index 6031f2e..f30ac75 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -2382,8 +2382,8 @@ namespace EduNetworkBuilder //Now we pass it to the nic if (nc != null) nc.ProcessInboundPacket(tPacket); - if (hostname != null) - Console.WriteLine("Starting on device: " + hostname + " VLANID = " + tPacket.VLANID.ToString()); + //if (hostname != null) + // Console.WriteLine("Starting on device: " + hostname + " VLANID = " + tPacket.VLANID.ToString()); if(!tPacket.ready_to_delete) tPacket.StartOnDevice(this); } diff --git a/EduNetworkBuilder/NetworkInterface.cs b/EduNetworkBuilder/NetworkInterface.cs index 2ebacbf..dc75789 100644 --- a/EduNetworkBuilder/NetworkInterface.cs +++ b/EduNetworkBuilder/NetworkInterface.cs @@ -196,7 +196,7 @@ namespace EduNetworkBuilder if (What == VLANTagType.Forbidden) { //we drop it silently - Console.WriteLine(" -- Forbidding outbound packet. " + tPacket.VLANID + " " + HD.hostname + " " + VI.ID); + //Console.WriteLine(" -- Forbidding outbound packet. " + tPacket.VLANID + " " + HD.hostname + " " + VI.ID); string errString = string.Format(NB.Translate("NI_VLANOut"), hostname, tPacket.destIP.GetIPString); tPacket.AddMessage(DebugLevel.switching, errString); tPacket.Tracking.Status = errString; @@ -227,14 +227,14 @@ namespace EduNetworkBuilder { if (vi.ID == ID) { - if (vi.Tag == VLANTagType.Forbidden) - Console.WriteLine(" About to be forbidden."); + //if (vi.Tag == VLANTagType.Forbidden) + // Console.WriteLine(" About to be forbidden."); return vi; } } //We do not have one set yet. Add a new one newVLANinfo = new VLANInfo(ID, VLANTagType.Forbidden); - Console.WriteLine(" Creating forbidden vlan - " + ID); + //Console.WriteLine(" Creating forbidden vlan - " + ID); VLANs.Add(newVLANinfo); return newVLANinfo; } @@ -268,14 +268,14 @@ namespace EduNetworkBuilder { if (vi.ID == ID) { - if (vi.Tag == VLANTagType.Forbidden) - Console.WriteLine(" About to be outbound forbidden."); + //if (vi.Tag == VLANTagType.Forbidden) + // Console.WriteLine(" About to be outbound forbidden."); return vi; } } //We do not have one set yet. Add a new one newVLANinfo = new VLANInfo(ID, VLANTagType.Forbidden); - Console.WriteLine(" Creating outbound forbidden vlan - " + ID); + //Console.WriteLine(" Creating outbound forbidden vlan - " + ID); VLANs.Add(newVLANinfo); return newVLANinfo; } diff --git a/EduNetworkBuilder/Packet.cs b/EduNetworkBuilder/Packet.cs index 6f7b76e..ea85b4f 100644 --- a/EduNetworkBuilder/Packet.cs +++ b/EduNetworkBuilder/Packet.cs @@ -347,7 +347,7 @@ namespace EduNetworkBuilder public void StartOnLink(NetworkLink theLink, NetworkDevice start_device) { if (theLink == null) return; - Console.WriteLine("Starting on link: " + theLink.GetUniqueIdentifier + " vlanID = " + VLANID.ToString()); + //Console.WriteLine("Starting on link: " + theLink.GetUniqueIdentifier + " vlanID = " + VLANID.ToString()); InboundNic = null; InboundInterface = null; WhereAmI = theLink;