diff --git a/EduNetworkBuilder/toedit.txt b/EduNetworkBuilder/toedit.txt index 49bef6d..458fd93 100644 --- a/EduNetworkBuilder/toedit.txt +++ b/EduNetworkBuilder/toedit.txt @@ -1,125 +1,35 @@ DeviceConfig.cs:143: lbArpTable.Items.Add("Arp Table MAC\tIPAddress"); DeviceConfig.cs:146: lbArpTable.Items.Add(ae.MACAddress + "\t" + ae.IPAddr); -DeviceConfig.cs:151: string selectedNicName = ""; -DeviceConfig.cs:153: selectedNicName = Regex.Replace(selectedNicName, " .*", ""); -DeviceConfig.cs:154: selectedNicName = Regex.Replace(selectedNicName, "\\*", ""); -DeviceConfig.cs:352: selectedNIC = Regex.Replace(selectedNIC, " .*", ""); -DeviceConfig.cs:353: selectedNIC = Regex.Replace(selectedNIC, "\\*", ""); -IPAddress.cs:99: public bool Edit(NetworkDevice FromWhat, string message="") -IPAddress.cs:102: if (message != "") -IPAddress.cs:122: _mask = "255.255.255.0".ParseIp(); -IPAddress.cs:127: if(mySplitVal[0] == "10") -IPAddress.cs:129: _mask = "255.0.0.0".ParseIp(); -IPAddress.cs:131: if (mySplitVal[0] == "172") -IPAddress.cs:133: _mask = "255.255.0.0".ParseIp(); -IPAddress.cs:135: if (mySplitVal[0] == "192") -IPAddress.cs:137: _mask = "255.255.255.0".ParseIp(); -IPAddress.cs:244: return String.Join(".", parts); -IPAddressEntry.cs:32: string hostname = ""; -IPAddressEntry.cs:48: if (!lNM.Contains("255")) -IPAddressEntry.cs:49: lNM = "255.255.255.0"; -LanguageString.cs:14: public string text=""; -LanguageString.cs:15: public string language="en"; LanguageString.cs:30: if(Regex.IsMatch(theNode.Name.ToLower(),"^[a-z][a-z]_" + tag)) -LanguageString.cs:34: language = Regex.Replace(theNode.Name.ToLower(), "_" + tag, ""); -LanguageString.cs:39: language = "en"; -LanguageString.cs:55: string tag = ""; -LanguageString.cs:113: if(language != "en") -LanguageString.cs:115: return GetText("en"); -LanguageString.cs:123: return ""; -LinkEditor.cs:72: string SrcHost=""; -LinkEditor.cs:75: string DstHost=""; -LinkEditor.cs:78: string SrcNic = ""; -LinkEditor.cs:88: string DstNic = ""; -LinkEditor.cs:154: if (SrcNic != "") -LinkEditor.cs:160: if (DstNic != "") LinkEditor.cs:175: if (Regex.IsMatch(SrcNic, "^wport") || Regex.IsMatch(SrcNic, "^wlan")) ListBoxWindow.cs:47: if (str == SelectedTag || (SelectedTag == "ALL" && Regex.IsMatch(str,"Level"))) -ListBoxWindow.cs:78: lbWindowData.Font = new System.Drawing.Font("Courier New", 8); -ListBoxWindow.cs:86: lbWindowData.Font = new System.Drawing.Font("Courier New", 8); ListBoxWindow.cs:139: newCB.Name = "checkBox" + count.ToString(); ListBoxWindow.cs:159: return "Level_" + PI.Level; -ListBoxWindow.cs:168: string selected = ""; ListBoxWindow.cs:220: shown_name = "* " + shown_name; -ListBoxWindow.cs:230: if(selected != null && selected != "") -ListBoxWindow.cs:251: TheName = Regex.Replace(TheName, @"^\* ", ""); -NB.cs:95: HostName = ""; -NB.cs:96: NicName = ""; NB.cs:131: get { return HostID.ToString()+"-"+NicID.ToString(); } NB.cs:213: PuzzleTags.Add("Level_" + Individual.InnerText); -NB.cs:228: public static string BroadcastMACString = "FF:FF:FF:FF:FF:FF"; //The broadcast MAC address -NB.cs:229: public static string BroadcastIPString = "255.255.255.255"; //the generic broadcast IP address -NB.cs:230: public static string ZeroIPString = "0.0.0.0"; -NB.cs:231: public static string LoopbackIPString = "127.0.0.1"; -NB.cs:232: public static int LinkStep = 8;//The percentage of the link we move at each "tick" -NB.cs:326: string answer=""; -NB.cs:328: if (answer == null) return ""; NB.cs:336: return "H_" + What.ToString() + "_Key"; NB.cs:340: return "H_" + What.ToString() + "_Title"; -NB.cs:362: if (lang == "") lang = "en"; -NB.cs:364: string StartingItem = ""; NB.cs:563: sBuilder.Append(number.ToString("X2")); -NB.cs:595: "Invalid Bit " + BitNumber.ToString() + "! (Should be from 0 to 7)"); -NB.cs:608: "Invalid Bit" + BitNumber.ToString() + "! (Should be from 0 to 7)"); -NetTest.cs:14: public string sHost = ""; -NetTest.cs:15: public string dHost = ""; -NetTest.cs:114: string toreturn = ""; -NetTest.cs:130:// toreturn = "Cannot ping"; -NetTest.cs:190:// toreturn = "Cannot ping host:"; -NetTest.cs:244: toreturn = ""; -NetTest.cs:252: string toreturn = ""; NetTest.cs:255: return TestDescription(amount) + " " + sHost; NetTest.cs:260: toreturn = sHost + " " + TestDescription(amount); NetTest.cs:263: toreturn = sHost + " " + TestDescription(amount); NetTest.cs:266: toreturn = sHost + " " + TestDescription(amount) + " " + dHost; -NetTest.cs:269: toreturn = ""; -NetTest.cs:359: //The IP address chosen is "local" to the source host. So it should ping between them -NetTest.cs:405: //dHost is either "true" or "false" NetTestEditor.cs:108: cbDest.Items.Add("?Button"); NetTestEditor.cs:116: theNames.Remove("None"); -Network.cs:20: public string PuzzleName=""; -Network.cs:37: private IPAddress lastAddress = new IPAddress("0.0.0.0/24"); -Network.cs:38: public string NetworkFilename = ""; Network.cs:54: NetMessage = new LanguageStrings("message"); Network.cs:55: NetTitle = new LanguageStrings("title"); Network.cs:87: Load(@"C:\Users\tyoung\Desktop\Test.enbx"); -Network.cs:157: //Tags.Add("Level_" + Individual.InnerText); Network.cs:167: if(Regex.IsMatch(Individual.Name.ToLower(),"message")) Network.cs:172: if (Regex.IsMatch(Individual.Name.ToLower(), "title")) -Network.cs:183: if (NetMessage.GetText() != "" && !AlreadyDisplayedMessage) Network.cs:207: Save(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Test.enbx")); -Network.cs:461: if(tString != "") -Network.cs:503: if (nt.ColorItemsIfNeeded(HintsToDisplay != NetTestVerbosity.none)) //only change the color if we are not "none" -Network.cs:667: if (PuzzleName != "" && PuzzleName != null) -Network.cs:730: if (nt.TheTest == NetTestType.HelpRequest && sHost == "" && dHost == nt.dHost && dHost == "?Button") -Network.cs:1089: //Console.WriteLine("position=" + HowFar.ToString()); -Network.cs:1099: //Console.WriteLine("position=" + HowFar.ToString()); -NetworkBuilder.cs:24: public Network myNetwork = new Network(""); -NetworkBuilder.cs:26: private string selectedButton = ""; -NetworkBuilder.cs:37: public string ChosenLanguage = "en"; //The language to try to load -NetworkBuilder.cs:64: lblStatus.Text = ""; -NetworkBuilder.cs:155: if (answer == null) return ""; -NetworkBuilder.cs:338: if (myNetwork.NetworkFilename != "") -NetworkBuilder.cs:368: if (myNetwork.NetTitle.GetText() != "") NetworkBuilder.cs:369: Text += ": " + myNetwork.NetTitle.GetText(); -NetworkBuilder.cs:370: if (myNetwork.NetMessage.GetText() != "") -NetworkBuilder.cs:449: //Console.WriteLine("Puzzle: " + str + " " + newPuzzle.PuzzleTitle); -NetworkBuilder.cs:519: lblStatus.Text = ""; -NetworkBuilder.cs:520: selectedButton = ""; NetworkBuilder.cs:552: pbNetworkView.ContextMenuStrip.Items.Add(string.Format("NB_NetViewArpStr", tStr)); NetworkBuilder.cs:589: pbNetworkView.ContextMenuStrip.Items.Add(string.Format("NB_NetViewRmLnkStr", host)); -NetworkBuilder.cs:608: released = Regex.Replace(released, ".* ", ""); -NetworkBuilder.cs:713: IPAddress destination = new IPAddress(NB.ZeroIPString, "255.255.255.255", IPAddressType.ip_only); -NetworkBuilder.cs:731: lblStatus.Text = ""; NetworkBuilder.cs:754: if (selectedButton == "btnLink") -NetworkBuilder.cs:861: string newtooltip = ""; -NetworkBuilder.cs:875: myNetwork = new Network(""); NetworkBuilder.cs:896: mydialog.Filter = "EduNet File (*.enbx)|*.enbx"; -NetworkBuilder.cs:899: if (LastPath != null && LastPath != "") mydialog.FileName = LastPath; NetworkBuilder.cs:902: if(!Regex.IsMatch(mydialog.FileName,@"^.*.enbx$")) -NetworkBuilder.cs:919: if (oldfile != null && oldfile != "" && File.Exists(oldfile)) NetworkBuilder.cs:940: mydialog.Filter = "EduNet File (*.enbx)|*.enbx"; -NetworkBuilder.cs:943: if (myNetwork.NetworkFilename != "") NetworkBuilder.cs:1085: LoadNetworkFromResource("OneNet"); NetworkBuilder.cs:1091: LoadNetworkFromResource("TwoNets"); NetworkBuilder.cs:1097: LoadNetworkFromResource("DHCP"); @@ -128,117 +38,56 @@ NetworkBuilder.cs:1110: LoadNetworkFromResource("TwoNets"); NetworkBuilder.cs:1117: LoadNetworkFromResource("DHCP"); NetworkBuilder.cs:1124: LoadNetworkFromResource("ThreeNets"); NetworkBuilder.cs:1130: LoadNetworkFromResource("ThreeNets"); -NetworkBuilder.cs:1166: //MessageBox.Show("Trying Localpath: " + uri.LocalPath); -NetworkBuilder.cs:1167: //MessageBox.Show("isUNC: " + uri.IsUnc.ToString()); -NetworkBuilder.cs:1168: //MessageBox.Show("isFile: " + uri.IsFile.ToString()); -NetworkBuilder.cs:1191: bool didsomething = myNetwork.NoteActionDone(NetTestType.HelpRequest, "", "?Button"); NetworkBuilder.cs:1204: rtwin = new RTFWindow("Help: " + myNetwork.NetTitle.GetText(), myNetwork.NetMessage.GetText(), myNetwork.NetTests); NetworkBuilder.cs:1247: LoadNetworkFromResource("firewalls"); NetworkBuilder.cs:1253: LoadNetworkFromResource("firewalls"); -NetworkCard.cs:26: private string _nic_name=""; -NetworkCard.cs:42: nInterface = new NetworkInterface(NicName(), "127.0.0.1", "255.0.0.0", myID); NetworkCard.cs:116: myID.Save(writer, "myid"); -NetworkCard.cs:120: if(EncryptionKey != "") -NetworkCard.cs:122: if (SSID != "") NetworkCard.cs:126: TunnelEndpoint.Save(writer, "tunnelendpoint"); NetworkCard.cs:171: string connected = " "; NetworkCard.cs:172: if (isConnected(true)) connected = "*"; NetworkCard.cs:175: return NicName() + connected + " " + MAC; -NetworkCard.cs:196: string DHCPString = ""; NetworkCard.cs:197: if (UsesDHCP && CanUseDHCP) DHCPString = "DHCP: "; -NetworkCard.cs:418: //if(nPacket.sourceMAC == null || nPacket.sourceMAC == "" || nPacket.isFresh) -NetworkCard.cs:424: if (nPacket.destMAC == null || nPacket.destMAC == "") -NetworkCard.cs:432: if(nPacket.destMAC == "") NetworkCard.cs:434: nPacket.AddMessage(DebugLevel.debug, " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString); NetworkCard.cs:439: nPacket.Tracking.Status = hostname + " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString; NetworkCard.cs:449: nPacket.PacketDump(myID.HostName + "-" + _nic_name, DebugPausePoint.packet_out); NetworkCard.cs:479: nPacket.Tracking.AddMessage(DebugLevel.natting, WhereFrom.hostname, "MASQ: Changing outbound IP to: " + nf.myIP.GetIPString); -NetworkCard.cs:483: if (nPacket.destMAC == null || nPacket.destMAC == "") -NetworkCard.cs:487: if (nPacket.destMAC == "") NetworkCard.cs:489: nPacket.AddMessage(DebugLevel.debug, " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString); NetworkCard.cs:494: nPacket.Tracking.Status = hostname + " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString; NetworkCard.cs:504: nPacket.PacketDump(myID.HostName + "-" + _nic_name, DebugPausePoint.packet_out); -NetworkCard.cs:523: EncryptionKey = ""; -NetworkCard.cs:536: if((tPacket.InboundNic != null && tPacket.InboundNic.GetNicType == NicType.wan) || tPacket.InboundNic == null || tPacket.destMAC == "") -NetworkCard.cs:539: if(nPacket.sourceMAC == null || nPacket.sourceMAC == "" || nPacket.isFresh) -NetworkCard.cs:542: string getMAC=""; -NetworkCard.cs:547: if (getMAC != "") nPacket.destMAC = getMAC; -NetworkCard.cs:553: if (nPacket.destMAC == "") NetworkCard.cs:555: nPacket.AddMessage(DebugLevel.debug, " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString); NetworkCard.cs:560: nPacket.Tracking.Status = hostname + " No Machine matching that IP address on this subnet. " + nPacket.destIP.GetIPString; -NetworkCard.cs:570: if (nPacket.sourceMAC == null || nPacket.sourceMAC == "") -NetworkCard.cs:581: if (nPacket.destMAC == null || nPacket.destMAC == "" && tPacket.OutboundIP != null) NetworkCard.cs:649: tPacket.Tracking.AddMessage(DebugLevel.natting, nd.hostname, "MASQ: Changing source IP back to: " + oAddress.GetIPString); NetworkCard.cs:661: tPacket.Tracking.Status = hostname + " The packet was rejected by the firewall.. Dropped."; -NetworkCardEditor.cs:42: string btnval = "0.0.0.0"; NetworkCardEditor.cs:81: lblVPNEnd.Text = "SSID:"; -NetworkCardEditor.cs:145: string btnval = "0.0.0.0"; -NetworkCardEditor.cs:192: MyNicToEdit.TunnelEndpoint = new IPAddress(NB.ZeroIPString, "255.255.255.0", IPAddressType.ip_only); NetworkCardEditor.cs:194: MyNicToEdit.TunnelEndpoint.Edit(nd,"Endpoint"); -NetworkComponent.cs:18: public bool IsDirty = true; //If something has changed and it needs to be re-drawn. It starts as "true" -NetworkComponent.cs:20: public string hostname = ""; NetworkDevice.cs:390: DefaultGW.Save(writer, "gateway"); NetworkDevice.cs:397: ip.Save(writer, "route"); NetworkDevice.cs:401: dhcp.Save(writer, "dhcprange"); NetworkDevice.cs:439: answer += "\n" + addr; NetworkDevice.cs:449: answer += "\n" + tString; -NetworkDevice.cs:720: if (nic.SSID == "") continue; -NetworkDevice.cs:844: tstr = Regex.Replace(name, " .*", ""); -NetworkDevice.cs:871: Font stringFont = new Font("Consolas", 17); -NetworkDevice.cs:919: string title = ""; NetworkDevice.cs:921: title += "if: "; NetworkDevice.cs:923: title += nic.NicName() + ": "; -NetworkDevice.cs:961: return new HostNicID(-1, -1, hostname, ""); -NetworkDevice.cs:995: if (dest.GetMask != 0 && dest.GetMask.ToIpString() != "255.255.255.0") -NetworkDevice.cs:1155: public void TunnelPacketFromHere(IPAddress Destination, Packet Payload, string Encryption = "") -NetworkDevice.cs:1164: if (Encryption != "") -NetworkDevice.cs:1201: //Console.WriteLine(hostname + ": packet=" + tPacket.MyType.ToString()); -NetworkDevice.cs:1202: //Console.WriteLine(" " + hostname + ": d:" + ipc.destIP.GetIPString + " s:" + tPacket.sourceIP.GetIPString); -NetworkDevice.cs:1204: // Console.WriteLine(" Broadcast"); -NetworkDevice.cs:1212: //Console.WriteLine(" " + hostname + ": True"); -NetworkDevice.cs:1268: // Set the "we have processed it" flag NetworkDevice.cs:1286: Console.WriteLine("Debug"); -NetworkDevice.cs:1289: //if we are supposed to route (do-not-route flag not set) or if the packet is "fresh" NetworkDevice.cs:1300: string errString = string.Format("{0} No route to host: {1}", hostname, tPacket.destIP.GetIPString); -NetworkDevice.cs:1438: if (tPacket.destMAC == "") -NetworkDevice.cs:1442: //The packet was not successfully sent anywhere. DMac = "". This means no host with the specified IP NetworkDevice.cs:1443: tPacket.AddMessage(DebugLevel.info, string.Format("{0} Failed: No such IP on the local network - Arp only searches the local network.", hostname)); NetworkDevice.cs:1444: tPacket.Tracking.Status = string.Format("{0} Failed: No such IP on the local network.", hostname); -NetworkDevice.cs:1449: //The packet was not successfully sent anywhere. DMac = "". This means no host with the specified IP NetworkDevice.cs:1450: tPacket.AddMessage(DebugLevel.info, string.Format("{0} Failed: No such IP.",hostname)); NetworkDevice.cs:1451: tPacket.Tracking.Status = string.Format("{0} Failed: No such IP.", hostname); NetworkDevice.cs:1458: tPacket.AddMessage(DebugLevel.info, string.Format("{0} No local interface to send packet out.", hostname)); NetworkDevice.cs:1459: tPacket.Tracking.Status = string.Format("{0} No local interface to send packet out", hostname); -NetworkDevice.cs:1535: nPacket = new Packet(this, tPacket.sourceIP, "", PacketType.ping_answer); -NetworkDevice.cs:1574: nPacket.destMAC = ""; -NetworkDevice.cs:1575: nPacket.sourceMAC = ""; NetworkDevice.cs:1582: tPacket.AddMessage(DebugLevel.info, "The broadcast ping reached a destination that was not on the same network"); NetworkDevice.cs:1583: tPacket.Tracking.Status = hostname + ":\t" + "The broadcast ping reached a destination that was not on the same network" + tPacket.sourceIP.GetIP.ToIpString() + " -> " + hostname; NetworkDevice.cs:1595: tPacket.AddMessage(DebugLevel.info, "Success! The ping returned from its destination." + " But some was lost: health=" + tPacket.health.ToString() ); NetworkDevice.cs:1597: tPacket.Tracking.Status = hostname + string.Format(":\tPing partial success: {0}% packet loss. {1} -> {2}", left , tPacket.sourceIP.GetIP.ToIpString(),tPacket.destIP.GetIP.ToIpString()); NetworkDevice.cs:1603: tPacket.Tracking.Status = hostname + ":\tPing success: The ping returned from its destination" + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString(); NetworkDevice.cs:1618: tPacket.Tracking.Status = hostname + ":\tPing failed: Arrived at a machine that was not expecting it and was rejected." + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString(); -NetworkDevice.cs:1654: if (tstrings.Count > 0 && !Regex.IsMatch(tstrings[0], "127.0.0.1")) -NetworkDevice.cs:1663: nPacket.destMAC = ""; -NetworkDevice.cs:1664: tPacket.sourceMAC = ""; NetworkDevice.cs:1670: tPacket.Tracking.Status = hostname + ":\tArp Request found IP: " + tPacket.sourceIP.GetIPString + " on MAC: "+ nPacket.sourceMAC; NetworkDevice.cs:1688: tPacket.Tracking.Status = hostname + ":\tArp request success: Who Has " + tPacket.sourceIP.GetIP.ToIpString() + " tell " + tPacket.sourceIP.GetIP.ToIpString() + " = " + tPacket.sourceMAC; NetworkDevice.cs:1695: tPacket.Tracking.Status = hostname + ":\tARP failed: Arrived at a machine that was not expecting it and was rejected." + tPacket.sourceIP.GetIP.ToIpString() + " -> " + tPacket.destIP.GetIP.ToIpString(); -NetworkDevice.cs:1733: nPacket.OutboundMAC = ""; -NetworkDevice.cs:1738: string IP = ""; -NetworkDevice.cs:1740: if(IP == "" && nPacket.WhereAmI != null) { NetworkDevice.cs:1744: tPacket.Tracking.Status = hostname + ":\tDHCP Request found Server: " + IP; NetworkDevice.cs:1764: tPacket.Tracking.Status = hostname + ":\tDHCP request/answer. " + tPacket.payloadIP.GetIP.ToIpString(); NetworkDevice.cs:1773: string sIP = "?.?.?.?"; NetworkDevice.cs:1776: tPacket.Tracking.Status = hostname + ":\tDHCP Request failed: Arrived at a machine that was not expecting it and was rejected." + sIP + " -> " + tPacket.destIP.GetIP.ToIpString(); -NetworkDevice.cs:1891: string DHCPGW = ""; -NetworkDevice.cs:1900: if(nic.UsesDHCP && nic.CanUseDHCP && DHCPGW == "") -NetworkDevice.cs:1919: if (DHCPGW != "") -NetworkDevice.cs:1927: if((tPacket.OutboundMAC == null || tPacket.OutboundMAC == "") && -NetworkDevice.cs:1929: (tPacket.sourceMAC == "" || tPacket.sourceMAC == null)) -NetworkDevice.cs:1953: if ((tPacket.OutboundMAC == null || tPacket.OutboundMAC == "") && -NetworkDevice.cs:1955: (tPacket.sourceMAC == "" || tPacket.sourceMAC == null)) -NetworkDevice.cs:1961: if (!nic.HasIP(new IPAddress("127.0.0.1").GetIP)) //don't bother pinging on the loopback NetworkDevice.cs:1985: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: DHCP Server does not have gateway set. DHCP server failing" + tPacket.OutboundIP.GetIP.ToIpString()); NetworkDevice.cs:1986: tPacket.Tracking.Status = hostname + " ERROR: DHCP Server does not have gateway set. DHCP server failing"; NetworkDevice.cs:1992: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: No route or local interface for packet. " + tPacket.OutboundIP.GetIP.ToIpString()); @@ -247,8 +96,6 @@ NetworkDevice.cs:2006: tPacket.AddMessage(DebugLevel.info, ho NetworkDevice.cs:2007: tPacket.Tracking.Status = hostname + " No route or local network card for packet."; NetworkDevice.cs:2018: tPacket.AddMessage(DebugLevel.info, hostname + " ERROR: No local interface for packet. :" + tPacket.OutboundIP.GetIP.ToIpString()); NetworkDevice.cs:2019: tPacket.Tracking.Status = hostname + " No route or local interface for packet."; -NetworkDevice.cs:2026: if (tPacket.destMAC == "" || tPacket.destMAC == null) //was != broadcast-mac -NetworkDevice.cs:2034: if (tPacket.OutboundMAC == "") NetworkDevice.cs:2196: tPacket.Tracking.Status = hostname + " Failed: no card available to use."; NetworkDevice.cs:2235: tPacket.AddMessage(DebugLevel.debug, hostname + " Packet request fell on deaf ears. This is not a DHCP server."); NetworkDevice.cs:2236: tPacket.Tracking.Status = hostname + " Failed: Not a DHCP Server. Packet Dropped."; @@ -256,26 +103,13 @@ NetworkDevice.cs:2243: tPacket.AddMessage(DebugLevel.debug, h NetworkDevice.cs:2244: tPacket.Tracking.Status = hostname + " This device is not a router. Packet dropped."; NetworkDevice.cs:2253: tPacket.AddMessage(DebugLevel.debug, hostname + " The device had no local IPs. Quietly dropped."); NetworkDevice.cs:2254: tPacket.Tracking.Status = hostname + " Failed: no IPs local to the packet."; -NetworkDevice.cs:2314: return ""; -NetworkDevice.cs:2324: return ""; -NetworkDevice.cs:2334: return new HostNicID(-1,-1,"",""); -NetworkDevice.cs:2343: return new HostNicID(-1, -1, "", ""); -NetworkDevice.cs:2350: if (arp == "") -NetworkDevice.cs:2375: if (found == "") -NetworkDevice.cs:2461: if (ip.GetIP.ToIpString() != "127.0.0.1") NetworkDevice.cs:2465: theStrings.Add("IF:" + ip.GetIP.ToIpString().PadLeft(15) + " Range: " + NetworkDevice.cs:2466: ip.GetMask.ToIpString() + " - " + ip.GetGateway.ToIpString()); -NetworkDevice.cs:2482: if (ip.GetIP.ToIpString() != "127.0.0.1" && InterfaceIP.IsLocal(ip)) NetworkInterface.cs:50: myIP.Save(writer, "myip"); NetworkInterface.cs:59: tstring += " - " + myIP.GetMask.ToIpString(); -NetworkInterface.cs:64: mask = Regex.Replace(mask, "0", ""); -NetworkInterface.cs:66: tstring += "/" + count.ToString(); -NetworkInterface.cs:107: tPacket.sourceIP = new IPAddress(myIP.GetIP.ToIpString(), "", IPAddressType.ip_only); //We only want the IP address -NetworkLink.cs:50: if(IsWireless && AccessPoint != null && Client != null && AccessPoint.SSID != null && AccessPoint.SSID != "") NetworkLink.cs:65: MessageBox.Show("The SSID and Key have been updated on the client."); NetworkLink.cs:120: SrcNic.Save(writer, "SrcNic"); NetworkLink.cs:121: DstNic.Save(writer, "DstNic"); -NetworkLink.cs:287: //Console.WriteLine(" health=" + tPacket.health.ToString()); NetworkLink.cs:306: tPacket.Tracking.AddMessage(DebugLevel.info, this, "The packet was corrupted. The network wire may run too close to electricity or fluorescent lighting, or the wireless path is being interfered by a microwave, wireless phone, or other radio device."); NetworkLink.cs:307: tPacket.Tracking.Status = "The packet got corrupted and was dropped."; NetworkLink.cs:314: tPacket.Tracking.AddMessage(DebugLevel.info, this, "The packet tried to use a broken network wire and was corrupted."); @@ -299,9 +133,6 @@ OptionsWindow.cs:44: myToolTip.SetToolTip(lblLevel, "The Level that t OptionsWindow.cs:45: myToolTip.SetToolTip(tbLevel, "The Level that this puzzle is stored in."); OptionsWindow.cs:46: myToolTip.SetToolTip(lblSortOrder, "How this is sorted within the list of puzzles."); OptionsWindow.cs:47: myToolTip.SetToolTip(tbSortOrder, "How this is sorted within the list of puzzles."); -OptionsWindow.cs:78: tbSortOrder.Text = myNet.SortOrder.ToString("00.000"); -OptionsWindow.cs:85: if (what != "") -OptionsWindow.cs:141: NT = new NetTest("", "", NetTestType.NeedsDefaultGW); OptionsWindow.cs:183: lbTests.ContextMenuStrip.Items.Add("Add"); OptionsWindow.cs:185: lbTests.ContextMenuStrip.Items.Add("Edit"); OptionsWindow.cs:187: lbTests.ContextMenuStrip.Items.Add("Delete"); @@ -313,19 +144,9 @@ OptionsWindow.cs:260: lbTags.ContextMenuStrip.Items.Add("Edit OptionsWindow.cs:262: lbTags.ContextMenuStrip.Items.Add("Read"); OptionsWindow.cs:264: lbTags.ContextMenuStrip.Items.Add("Delete"); OptionsWindow.cs:286: tlist.Remove("None"); -OptionsWindow.cs:293: if(value != "" && Choice.Items.Contains(value)) OptionsWindow.cs:302: Done.Text = "Done"; -OptionsWindow.cs:311: QuestionForm.Height = Done.Location.Y + Done.Height + 5; //This is too small for the form, it autosizes to "big enough" OptionsWindow.cs:334: newstring = QuickPrompt("Edit Tag", "Tag:", myNet.SuggestedReadings[lbTags.SelectedIndex].ToString()); -OptionsWindow.cs:335: if (newstring != "") -OptionsWindow.cs:349: newstring = QuickPrompt("Edit Tag", "Tag:", ""); -OptionsWindow.cs:350: if (newstring != "") -OptionsWindow.cs:365: tbSortOrder.Text = value.ToString("00.000"); Packet.cs:32: PacketDump(" " + status, DebugPausePoint.packet_kill); -Packet.cs:48: public string payloadData = ""; //Contains the mac-address, or ip-address string, or something else -Packet.cs:49: public string EncryptionString = ""; -Packet.cs:62: public string OutboundMAC = ""; -Packet.cs:63: public string OutboundDestMAC = ""; Packet.cs:109: Tracking.AddMessage(DebugLevel.debug, WhereAmI, "Packet duplicated"); Packet.cs:124: Tracking.AddMessage(DebugLevel.info, start, theType.ToString() + "Packet Created"); Packet.cs:125: Tracking.AddMessage(DebugLevel.routing, start, string.Format(" MAC: {0} -> {1}", source, dest)); @@ -334,27 +155,19 @@ Packet.cs:138: Tracking.AddMessage(DebugLevel.routing, start, str Packet.cs:156: Tracking.AddMessage(DebugLevel.info, start, "Packet Created"); Packet.cs:157: Tracking.AddMessage(DebugLevel.routing, start, string.Format(" IP:{0} -> {1}", sourceIP.GetIP.ToIpString(), dest.GetIP.ToIpString())); Packet.cs:164: Tracking.AddMessage(DebugLevel.info, start, "Packet Created"); -Packet.cs:165: //Tracking.AddMessage(DebugLevel.routing, start, " IP:" + sourceIP.GetIP.ToIpString() + " -> " + dest.GetIP.ToIpString()); -Packet.cs:226: //The packet is "inside" the device. -Packet.cs:229: // Here the packet is just about to exit. Maybe we need to set the "source IP" -Packet.cs:254: if (dMAC != "" || destMAC == NB.BroadcastMACString) Packet.cs:264: Tracking.AddMessage(DebugLevel.info, WhereAmI, string.Format("Unable to find a mac address for the IP address: {0}", dest.GetIP.ToIpString())); Packet.cs:265: Tracking.Status = string.Format("{0} Failed: Unable to find a MAC address for the specified IP.", WhereAmI.hostname ); Packet.cs:280: AddMessage(DebugLevel.debug, "The packet was dropped because we lost where it was. WhereAmI == null!"); Packet.cs:281: Tracking.Status = "NO_Host Lost location of packet.."; -Packet.cs:290: //The packet is "inside" the device. -Packet.cs:293: // Here the packet is just about to exit. Maybe we need to set the "source IP" Packet.cs:300: AddMessage(DebugLevel.debug, "The packet was dropped because we lost where it was. WhereAmI == null!"); Packet.cs:301: Tracking.Status = "NO_Host Lost location of packet.."; Packet.cs:312: AddMessage(DebugLevel.debug, "The packet was dropped because we lost where it was. WhereAmI == null!"); Packet.cs:313: Tracking.Status = "NO_Host Lost location of packet.."; -Packet.cs:337: OutboundMAC = ""; Packet.cs:343: Console.WriteLine(string.Format("Starting on link. SMAC: {0} DMAC: {1}",sourceMAC,destMAC)); Packet.cs:344: AddMessage(DebugLevel.debug, " Starting on link"); Packet.cs:369: Tracking.AddMessage(DebugLevel.info, "Packet", Packet.cs:370: string.Format("Packet failed to reach any IP. No such IP on network: {0}", destIP.GetIPString)); Packet.cs:371: Tracking.Status = string.Format("Packet failed to reach IP: {0}",destIP.GetIPString); -Packet.cs:430: position = Regex.Replace(position, "packet_", ""); Packet.cs:435: Console.WriteLine("Pausing"); Packet.cs:439: Console.WriteLine(string.Format("{0}: {1} PACKET: dstIP: {2} destMAC: {3}", hostname, position, dIP, destMAC)); Packet.cs:440: Console.WriteLine(string.Format("{0}: {1} PACKET: srcIP: {2} srcMAC: {3}", hostname, position, sIP, sourceMAC)); @@ -362,10 +175,8 @@ Packet.cs:441: Console.WriteLine("---"); Packet.cs:443: AddMessage(DebugLevel.packet, string.Format("{0}: {1} PACKET: dstIP: {2} destMAC: {3}", hostname, position, dIP, destMAC)); Packet.cs:444: AddMessage(DebugLevel.packet, string.Format("{0}: {1} PACKET: srcIP: {2} srcMAC: {3}", hostname,position,sIP,sourceMAC)); Packet.cs:451: throw new ArgumentException("The type must be serializable.", "source"); -PacketMessage.cs:34: public string _Status = ""; //Usually "success" or "failed" PacketMessage.cs:47: throw new ArgumentException("The type must be serializable.", "source"); PacketMessage.cs:76: string host = "unknown"; PacketMessage.cs:91: tString = tmessage.HostName + " \t" + tmessage.WhatLevel.ToString() + "\t" + tmessage.Message; PacketMessage.cs:103: tString = time.ToString() + " ms " + Status; -RTFWindow.cs:131: if (tbFind.Text == "") return; //We do nothing if nothing to find. RTFWindow.cs:153: MessageBox.Show("Not found.");