Repository navigation
Oui lookup - #8
Merged
Merged
Conversation
Owner
Author
mergify Bot
pushed a commit
that referenced
this pull request
Oct 23, 2026
…le scans (#3653) * Fix: IP Scanner / Port Scanner single completion path (B2, B3, B4, B16) - The model raises ScanComplete exactly once with ScanCompleteArgs (IsCanceled, Exception); UserHasCanceled is removed. - The token is no longer passed to Task.Run, so a cancel right before the scan starts can't skip the completion event (tab stuck). - Unexpected exceptions (also GetNetworkInterfaces) are reported instead of being swallowed as "nothing found" and are logged in the view model. - The view model resets its state in one place and unsubscribes the scanner's handlers; "Canceled by user" is no longer overwritten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner / Port Scanner robust scan preparation (B5, B8, B11) - Catch every exception while the hosts are resolved and the ports are converted (Start() is fire-and-forget) and end the scan via the single completion path, so the tab can't get stuck. - Append "No reachable hosts found" / "No open ports found" to a message from the preparation (unresolved hostnames) instead of replacing it. - Detect subnet: try/catch/finally, so the button can't stay disabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Limit ICMP buffer to 65500 bytes (B4) .NET's Ping throws an ArgumentException for buffers larger than 65500 bytes, which made every host unreachable in the IP Scanner (and broke Ping Monitor / Traceroute). The settings allowed up to 65535. - Maximum 65500 in the IP Scanner, Ping Monitor and Traceroute settings - Lower stored values above 65500 on upgrade - Docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner ICMP attempts ignored (B1) PingAsync returned on the first non-success reply, so a single lost echo marked the host as unreachable. Try again while the request timed out (up to the configured attempts); other states (e.g. destination host unreachable) are final. Cancellation is handled by SendPingAsync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port probe classification and TIME_WAIT (B17, B18) - Only a refused connection (TCP reset) is "Closed"; other connect errors (host/network unreachable, local socket errors) mean no answer and are "TimedOut" now. Before, every error was "Closed". - Close with SO_LINGER 0 (reset), so open ports no longer leave sockets in TIME_WAIT that can exhaust the ephemeral ports on large scans. Shared by the IP Scanner and Port Scanner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner detects hosts by a refused port (B17, D7) A closed port (connection refused / TCP reset) is an answer from the host, so the host is reachable even if ICMP is blocked and no port is open (same as nmap's host discovery). The port scan returns every port now; closed and timed out ports are only shown with "Show unreachable". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: New IP Scanner / Port Scanner defaults (P4, PS4, D1, D5) The time per host was dominated by the port probes: 11 default ports with 4 port threads = 3 rounds x 4000 ms = ~12 s for every host with filtered ports (all unreachable hosts), an empty /24 took ~48 s. IP Scanner: - ICMP / port / NetBIOS timeout 4000 -> 2000 ms (Windows' initial SYN RTO is 1 s, so 2 s still allows one retransmission) - Max. concurrent port threads 4 -> 16 (all default ports at once), max 32 - Max. concurrent host threads 64 -> 128, max 512 -> 256 (128 x 11 = ~1.4k connections in flight, worst case 256 x 32 = 8k, half of the ephemeral port range) Port Scanner: - Timeout 4000 -> 2000 ms, Max. concurrent port threads 64 -> 128 Migration in UpgradeToLatest replaces the existing block: values still on the default of the last release (2026.7.7) or of a pre-release of this release are updated, IP Scanner host threads above 256 are lowered. Docs explain what a "thread" is and that a firewall may block too many simultaneous connections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: De-duplicate and expand host ranges faster (B7, B20, P7, P8) HostRangeHelper (IP Scanner, Port Scanner, Ping Monitor): - Remove duplicate IP addresses of overlapping inputs, keep the entry with a hostname - Expand ranges sequentially into a pre-sized list instead of Parallel.For into a ConcurrentBag; the result of a single range is already sorted, so the sort is skipped after one linear check - Check for cancellation while expanding (Parallel.For's state.Break() didn't stop it) IPAddressHelper.CompareIPAddresses no longer allocates two arrays per call (stackalloc + TryWriteBytes), used by every sorted IP list in the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Confirm large scans and refuse too large ones (B6) A /1 (allowed by the input validation) created 2^31 entries and ran out of memory. HostRangeHelper.GetHostCount counts the inputs without expanding or resolving them (hostname = 1), the scan is then - confirmed above 65,536 IP addresses (Port Scanner: hosts x ports) - refused above 16,777,216 (a /8) with a status message before any state is changed. Limits in GlobalStaticConfiguration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Scan ports only once (B19) PortRangeHelper.ConvertPortRangeToIntArray removes duplicates (first occurrence, order kept), e.g. "80; 1-100" or multiple selected port profiles scanned port 80 twice (two rows, counted twice). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Validate IP ranges across 128.0.0.0 (B14) MultipleHostsRangeValidator (IP Scanner, Port Scanner, Ping Monitor, profiles, run command) compared the signed IPv4 value, so a range like 127.255.255.250 - 128.0.0.5 was rejected as "start > end". Compare the unsigned value like HostRangeHelper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner sort by IP address crash, sorted results (PS1-PS3) - Sorting the IP address column used the built-in sort on IPAddress, which isn't IComparable -> exception as soon as the results contained more than one host. Sort with IPAddressHelper.CompareIPAddresses (+ port) in a Sorting handler like the IP Scanner. - Results are sorted by IP address and port by default instead of the order in which the ports finished. - The PTR lookup runs while the ports are scanned (each result awaits the hostname, which is needed for the grouping) instead of before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner NetBIOS column sort/visibility and Copy menu (B9, B10, C6) - "NetBIOS reachable" column: SortMemberPath pointed to a property that doesn't exist (no sort), now NetBIOSInfo.IsReachable; hidden with NetBIOS disabled like the row details. - Copy > Hostname / MAC address / Vendor use the same visibility as their columns (DNS / MAC resolution OR NetBIOS). - Copy > Status copies "Up" / "Down" (new HostReachableToStringConverter) instead of True / False. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner custom commands - hostname injection, CanExecute (S1, B15, T2) - {{Hostname}} comes from the network (PTR / NetBIOS name). A name with e.g. "&" could run additional commands with "cmd.exe /c ...". Only a valid hostname (RegexHelper.HostnameOrDomainRegex) is used, otherwise an empty value + log warning. Docs note. - Settings: Edit / Delete need a selected command (F2 / Del without a selection opened an empty dialog / asked to delete nothing); the delete confirmation names the command. - Log a warning if a custom command no longer exists (old ToDo). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: IP Scanner MAC lookup from a cached neighbor table (P1, B12, D2) - NeighborTable.GetMACAddressMap() reads the table once into a map (IPv6 without scope id); it replaces GetMACAddress, which read and marshalled the whole table for every reachable host. - The IP Scanner caches the map per scan and only reads it again on a miss if the snapshot is older than the time the host answered. Before a host can answer, its ARP/NDP entry exists, so a host is always looked up in a table read after its answer; unreachable hosts never trigger a read. - Local MAC: also the own IPv6 (incl. link-local) addresses; link-local neighbors entered without scope id are found. - Resolve MAC address and vendor: enabled by default for new installations (documented as enabled, the code default was false). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: IP Scanner / Port Scanner export in the background (P5) Copy the results (all or selected) on the UI thread - they may still grow while a scan runs - and run ExportManager.Export with Task.Run, so a large export (e.g. a /16 with "show unreachable") doesn't freeze the window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: IP Scanner / Port Scanner context menu, result and shortcuts (D-1) - IP Scanner: complete context menu table (open in other tools, DNS lookup / RDAP sub items, custom commands, Add profile...), multi selection - Result section: up/down or open/closed summary, row details, which results are shown, status messages, port states (open / closed / timed out) - Keyboard shortcuts: Enter, Esc, Ctrl+T Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Handle errors while counting the hosts / ports (B5, B6) The size check added for B6 runs before the preparation's try/catch, so an unexpected parse error would have been lost in the fire-and-forget Start(). Show it as status message and log it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Stagger the start of hosts / ports in the IP / Port Scanner All hosts of a "wave" started at the same moment and, because of the same timeouts, also finished at the same moment: ~1400 connection requests within a few milliseconds (128 hosts x 11 ports) and a progress that moved in large jumps. StartScheduler gives every host / port the next free start time (one per interval) and only waits until then, so the waits don't add up and there is no delay once all concurrent slots are busy. - IP Scanner: one host every 10 ms (128 hosts ramp up in ~1.3 s, empty /24 ~9.3 s instead of ~8 s) - Port Scanner: one port every 1 ms across all hosts (a larger interval would limit the throughput of 4 x 128 ports) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Exception-free port probe and NetBIOS request Nearly every probe of a scan ended with a caught exception: a port timeout (OperationCanceledException), a refused / unreachable connection (SocketException) and every host without a NetBIOS answer - ~12 per host, ~3000 for a /24. Cheap without a debugger, but with Visual Studio attached every first-chance exception pauses the process, so the UI lagged while scanning. - SocketOperation: runs a SocketAsyncEventArgs operation and returns its SocketError as Task result (shared by PortProbe and NetBIOSResolver) - PortProbe: Socket.ConnectAsync(e); timeout / cancellation abort it with Socket.CancelConnectAsync (completes with OperationAborted). Same states as before (Success -> Open, ConnectionRefused -> Closed, else TimedOut), only a cancellation by the caller still throws. - NetBIOSResolver: SendToAsync / ReceiveFromAsync(e); timeout / cancellation close the socket. The response is parsed from the received bytes only. Tested on Linux (open / refused / dropped / IPv6 / 400 parallel probes, NetBIOS with a fake responder, no answer, cancellation): no first-chance exceptions except for the caller's cancellation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Don't start a confirmed large scan in a closed tab (B6) The confirmation for a large scan is shown before IsRunning is set, so closing the tab while the dialog was open didn't stop anything (OnClose only stops a running scan). Confirming afterwards started the scan in the closed tab, where it kept running in the background and was never canceled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: IPv4Address.ToUInt32 for unsigned IPv4 values (review #8) The unsigned conversion unchecked((uint)IPv4Address.ToInt32(...)) was written out in HostRangeHelper (twice) and the range validator. B14 came from comparing the signed value - one helper makes it the obvious choice for the next caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner MAC lookup only for hosts in a local subnet (review #5) A host behind a router is never in the neighbor table (it contains the router), so every reachable remote host missed the cached snapshot and read the whole table again - one at a time under a lock, while up to 128 host workers blocked thread-pool threads waiting for it. - Look up the neighbor table only for hosts in a local subnet: IPv4 via the subnet mask of the local interfaces, IPv6 link-local or the same /64 as a local address. Remote hosts use the NetBIOS MAC address (as before, the neighbor table never had their MAC). - SemaphoreSlim.WaitAsync instead of lock, so waiting hosts don't block a thread while another one reads the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Start interval must not limit fast scans (review #2) The fixed interval (IP Scanner 10 ms, Port Scanner 1 ms) was a hard cap of 100 hosts / 1000 ports per second. With short timeouts and many threads the scan can finish more (e.g. 256 host threads, 1 x 500 ms ICMP: ~500 hosts/s). StartScheduler.GetInterval: the interval is at most duration / concurrency (a longer one starts fewer operations per second than can finish). - IP Scanner: duration = slowest of ICMP attempts x timeout, port scan (timeout x rounds) and NetBIOS timeout; defaults -> 10 ms as before - Port Scanner: duration = timeout, concurrency = host x port threads; defaults -> 1 ms as before Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Keep different hostnames of an IP and the IPv6 scope id when de-duplicating (review #1, #3) SortAndRemoveDuplicates merged all entries with the same IP address into one. Two hostnames of one IP (e.g. web1/web2 of a load balancer) became one entry - in Ping Monitor one monitor instead of two - and because List.Sort is unstable, which one survived could change from run to run. The compare also ignored the IPv6 scope id, so fe80::1%3 and fe80::1%7 (two devices on different interfaces) were merged. - Every different hostname (case-insensitive) is kept once; an entry without hostname only if there is none with a hostname (B7 unchanged: "10.0.0.1; 10.0.0.0/24" and "server; <its IP>" give one entry) - Stable sort (OrderBy), entries with the same IP keep the input order - Same bytes but different scope id = different hosts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Export the results in the order shown in the grid (review #10) Both scanners exported the Results collection, which is in the order the hosts / ports were finished, while the grid shows them sorted (Port Scanner since PS2, IP Scanner by IP address or the user's sort). - IP Scanner: export ResultsView (sorted) - Port Scanner: export group by group (grouped by host, sorted within the group) - like the grid also when the user sorts by another column - Selected results: in the same order instead of the selection order Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Note on port timeouts below 1000 ms (review #4) Windows retries a refused connect and reports the reset only after about 1 s, so with a port timeout below ~1000 ms closed ports become "timed out" and the IP Scanner can't detect a host by a closed port. The default (2000 ms) is not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Report closed ports immediately on Windows (review #4) Windows retries the connection request (SYN) after a reset like after a lost request and reports ConnectionRefused only after ~2 s (measured: 2013-2075 ms). That's as long as the new default port timeout (2000 ms), so closed ports were shown as timed out and the IP Scanner couldn't detect a host by a closed port; with the old default every closed port blocked a slot for 2 s. SIO_TCP_INITIAL_RTO with TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS (measured: ConnectionRefused after 0 ms) and the probe timeout as initial RTO: the request is sent once, a reset is reported immediately, and Windows waits for an answer as long as the probe does. Ignored if not supported. Docs: replace the note from 7e9c5b6 (it said ~1 s and < 1000 ms). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Only stagger the ramp-up of a scan (review #1, #2, #5) The StartScheduler reserved a start time for every operation, so it capped a scan at one start per interval also after the ramp-up: the IP Scanner at 100 hosts/s, the Port Scanner at 1000 probes/s. Since closed ports are reported immediately, a host refusing most ports took >= 65 s for 1-65535. Only the first N starts (N = concurrency: min(hosts, host threads), for the Port Scanner x min(ports, port threads)) are spread. After that every slot is busy and an operation starts when another one has finished - spread like the ramp-up, without delay. Simulated (Task.Delay as work): 256 hosts x 4 s unchanged (9.3 s), 1024 hosts x 20 ms 1.3 s instead of >= 10.2 s, 65535 ports x 2 ms 2.1 s instead of >= 65 s. Comments also mention the ~15.6 ms timer resolution of Task.Delay (sub-tick intervals start a few operations per tick). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: NetBIOS response without MAC address (review #6) The length check only covered the name table, but ExtractNames always read the 6 MAC bytes after it. A response without them (no statistics block) threw IndexOutOfRangeException and the catch dropped the names that were already parsed. Read the MAC address only if the response contains it (and don't format an empty one, GetDefaultFormat would throw as well). Tested with a fake responder: with MAC -> names + MAC, without -> names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Only accept the NetBIOS answer of the scanned host (review #7) ReceiveFromAsync accepted the first datagram from any sender, so a stray or spoofed reply to the ephemeral port could be credited to the scanned host (wrong computer name / MAC, marked reachable). Ignore datagrams from another address and keep waiting until the timeout. Tested: reply only from another address -> no answer (timeout), stray reply first and the real one 100 ms later -> real one is used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Log when the SYN retransmissions can't be disabled (review #8) If SIO_TCP_INITIAL_RTO fails (should not happen since Windows 10 1703, but e.g. after a wrong refactoring of the buffer layout), closed ports silently went back to being reported after ~2 s. Log a warning once per application run (it would fail for every probe). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Attempts setting for the port scan (IP Scanner, Port Scanner) (review #3) Since the SYN retransmissions are disabled (closed ports are reported immediately), a lost connection request makes an open port "timed out". Like the ICMP Attempts: another connection request is sent if there was no answer (timed out); open and closed ports are final, so only ports without answer take attempts x timeout. - Settings: IPScanner_PortScanAttempts, PortScanner_Attempts (default 1, 1-10), next to the port timeout in both settings pages - PortProbe.ProbeAsync(..., attempts, ...) loops over ProbeOnceAsync - The start interval / host duration include the attempts - Docs: tip for LAN (1) vs Wi-Fi / VPN / internet (2) Tested: dropped port 300 ms x 1/2/3 -> 317/601/901 ms TimedOut, refused with 3 attempts -> Closed after 1 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Add PR --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Oct 27, 2026
Export during a scan (or of a scan canceled before every probe finished) wrote the placeholders of probes that were still running as results: a running port scan as PortStatus "Closed", a running ping as PingStatus "Unknown" with timestamp / TTL / bytes, a running NetBIOS request as not reachable. These values are empty now (CSV empty, XML empty element, JSON null); finished results are exported as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Oct 27, 2026
The grid shows "..." for a probe that is still running and the export writes an empty value (review 6 #8), but Copy > Ping status / Timestamp / Time / TTL / Bytes and Port status / Ports copied the placeholders as result (e.g. port status "Closed" while the ports were still scanned, ping status "Unknown"). These items are disabled until the ping / port scan of the host is finished. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Oct 27, 2026
CreateRescanOptions copied all 15 options by hand to set ReportAllHosts -
every new option had to be added there too, and a wrong copy (e.g. a current
setting instead of the option of the last scan) would compile. IPScannerOptions
is a record now, the rescan options are "options with { ReportAllHosts = true }".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Oct 27, 2026
…server profiles (review #8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Oct 27, 2026
…al review #8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mergify Bot
pushed a commit
that referenced
this pull request
Oct 28, 2026
…3660) * Refactor: IP Scanner / Port Scanner options with init properties (R1) Replace the positional constructors (14 / 6 parameters) of IPScannerOptions and PortScannerOptions with init-only properties set via object initializer. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Split the IP Scanner host scan into discover / enrich (R2) The per-host lambda in ScanAsync is split into DiscoverAsync (ping, port scan and NetBIOS concurrently -> reachable) and EnrichAsync (DNS PTR, MAC address and vendor -> result), with ResolveHostnameAsync / ResolveMACAddressAsync as own methods. Prepares progressive results (enrich as soon as a host answers). No behaviour change. Port Scanner: nothing to split (per port probe -> result, PTR already runs concurrently). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Trim the trailing dot of DNS hostnames once (C2) The PTR record is fully qualified (e.g. "server.example.com."). The IP Scanner only trimmed it for custom commands and "Add profile", so the grid, the export and other features (DNS Lookup, Remote Desktop, ...) got the hostname with the trailing dot. It is now trimmed once when the result is created, in the IP Scanner and the Port Scanner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: IP Scanner export DNSHostname to CSV and XML (C4) The DNS hostname (without the NetBIOS fallback of Hostname) was only exported to JSON. Add it to CSV and XML, right after Hostname (JSON moved to the same position). Port Scanner: no separate DNS hostname, nothing to change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner / Port Scanner columns follow the options of the shown scan (C5) Columns, Copy menu entries and the row details (IP Scanner) were bound to the current settings. After changing a setting the shown results got columns without data (e.g. MAC address enabled after the scan) or lost columns with data, the row details showed "Port scan is disabled" for scanned ports. The view models keep the options of the shown scan (ScanOptions, until the first scan the settings when the tab was opened) and the views bind to them via the BindingProxy (DataGrid columns are not in the visual tree). Port Scanner: Hostname column and Copy > Hostname. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Changelog with separate entries per tool (IP Scanner, Port Scanner) Split the combined "IP Scanner / Port Scanner" section and the "also in the ..." / "the same applies to ..." remarks into separate entries in the section of each tool (IP Scanner, Port Scanner, Ping Monitor, Traceroute). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Trim the trailing dot of PTR hostnames in all tools (review #3) The trailing dot was only trimmed in the IP Scanner and Port Scanner (C2). Ping Monitor, Traceroute, Connections and the Network Connection widget still showed "server.example.com.". Trim it once in DNSClient.ResolvePtrAsync instead and remove the per-tool trims (IP Scanner, Port Scanner, Ping Monitor title / notification). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Keep the trailing dot of single-label PTR names (review #1) Trimming the trailing dot turned a single-label PTR name like "gateway." into "gateway". DNSClientHelper.IsBareHostname treats that as a bare hostname, so with "Add DNS suffix" enabled, DNS Lookup and every other tool that resolves it (e.g. when opened from the IP Scanner) queried "gateway.<suffix>" instead. New DNSClientHelper.TrimTrailingDot only trims fully qualified names with more than one label, used by DNSClient.ResolvePtrAsync. Unit tests added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Columns follow the settings while no results are shown (review #2) Since C5 the columns, Copy menu and row details were a snapshot of the settings when the tab was opened until the first scan - before, they followed the settings live. While no results are shown (and no scan is running), the view models now refresh ScanOptions when a setting that affects them changes (IP Scanner: resolve hostname, port scan, NetBIOS, MAC address; Port Scanner: resolve hostname). The snapshot no longer allocates the ICMP buffer (up to 65500 bytes per tab), it is only created for a scan. The settings handler is removed when the tab is closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Required scan options (review #4) With init properties (R1) a forgotten option silently became 0 / false (e.g. MaxHostThreads = 0 -> Parallel.ForEachAsync throws), the positional constructor caught this at compile time. Mark all options of IPScannerOptions and PortScannerOptions as required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner CSV export with DNSHostname as last column (review #5) C4 inserted the DNSHostname column after Hostname, which moved every following column by one - scripts / spreadsheets that read the CSV by position would read the wrong values. Add it as last column instead (XML and JSON are read by name and keep it after Hostname). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Compute HostDiscovery.IsReachable once (review #6) IsReachable was a computed property that went through the port list again on every read (about 4 times per host). Compute it once in the initializer like IsAnyPortOpen. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: IP Scanner resolves DNS hostname and MAC address concurrently (review #7) EnrichAsync ran the PTR lookup and the MAC address lookup (neighbor table, local interfaces, OUI) one after the other, although they don't depend on each other. Start both and await them together - a host is finished after the slower one instead of after both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Trim single-label hostnames for display and custom commands (review A) Since the PTR name keeps the dot of a single-label name (review #1, so other tools don't append the DNS suffix), the removed per-tool trims (C2, review #3) made custom commands ({{Hostname}}), the profile name of "Add profile" and the Ping Monitor title / notification use "gateway." instead of "gateway" (main). For custom commands this is more than cosmetic: Windows resolves a name with a trailing dot via DNS only (no suffix search, no LLMNR / NetBIOS). Trim the dot again in these places (display / external programs); the value passed to other NETworkManager tools keeps it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: IP Scanner result options for the shown columns (review D) ScanOptions kept the full IPScannerOptions of the last scan for the lifetime of the tab (ports array, ICMP buffer - up to ~320 KB for 1-65535 / 65500 bytes) only to read four flags, and CreateScanOptions(null) created options for display that claimed a port scan without ports. New IPScannerResultOptions record with the four flags the view binds to (hostname, port scan, NetBIOS, MAC address), created from the options of the scan or from the settings. CreateScanOptions is only used for a scan again. Port Scanner unchanged: PortScannerOptions only holds six scalar values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Columns follow the settings whenever the result is empty (review B) ScanOptions only followed the settings if a setting changed while no results were shown. An empty result could still keep the columns of the previous scan: Results.Clear() ran long before the options of the new scan were set, and a scan that was canceled during the preparation or found nothing didn't update them either. The handler also listed the relevant settings by hand (easy to miss when a column is added). UpdateScanOptionsIfNoResults is called after the results are cleared, when a scan is complete and on any settings change (IP Scanner + Port Scanner). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Shared PTR lookup for the IP Scanner and Port Scanner (review C) IPScanner and PortScanner had an identical private ResolveHostnameAsync (PTR lookup, stop waiting on cancellation, empty string on error). Replace both with DNSClient.ResolvePtrOrEmptyAsync. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: HostDiscovery as class instead of record (review E) HostDiscovery caches IsAnyPortOpen / IsReachable at construction. As a positional record, a "with" expression would copy these cached values instead of recomputing them, and the generated equality / ToString members are unused. Use a private sealed class with read-only properties. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Remove dead null checks of the NetBIOS info (review F) EnrichAsync checked discovery.NetBIOSInfo with ?. three times, but it is never null (an empty NetBIOSInfo if NetBIOS is disabled or there was no answer) and HostDiscovery.IsReachable already dereferences it. Keep the ?? fallbacks for its values, which may be null. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner XML export with DNSHostname as last element (review G) The CSV export got DNSHostname as last column (review #5), but the XML export still inserted it after Hostname (moving the following elements) and the JSON export moved the existing property next to Hostname. XML: last element, JSON: back to its previous position - no existing column / element / property changes its position compared to the last release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner shows hosts before DNS / MAC are resolved (phase 3, step 23) IPScannerHostInfo is observable (PropertyChangedBase, setters internal to the model). Hostname / MACAddress / Vendor are computed from their sources (DNS -> NetBIOS, neighbor table -> NetBIOS), so a value that arrives later updates them. The scanner raises HostFound right after the discovery (ping, port scan, NetBIOS) and the DNS hostname and MAC address / vendor as HostUpdated when they arrive (replaces HostScanned). The scanner never changes a host itself: the view model buffers HostFound and HostUpdated in one list (order kept, an update always after its host) and applies them on the UI thread in the existing 150 ms flush. A host is only finished (progress) when all its lookups are finished, and ScanComplete is raised only after every host body returned - the view model flushes the remaining updates before the scan ends. Events of a scanner other than the running one are ignored and logged (guard only, can't happen). Export copies the rows on the UI thread (Clone), since they may still change during a scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner shows a host on its first answer (phase 3, step 24, P9) ScanHostAsync replaces DiscoverAsync / HostDiscovery: ping, port scan and NetBIOS run concurrently and are processed as they finish (Task.WhenAny). The port scan signals the first answering port (open or refused) right away. On the first answer the host is raised in HostFound - with placeholders for the probes that are still running (IsPingPending / IsPortScanPending / IsNetBIOSPending) - counted as up, and the DNS hostname and MAC address lookups start (P9). Every probe that finishes afterwards is raised as HostUpdated. Unreachable hosts are counted / raised (show unreachable) when all probes are finished. A host still only finishes (progress, and the scan with it) when every probe and lookup is finished: a finally waits for all of them, also when a probe was canceled or failed. View: Ping status, Port status and NetBIOS reachable show "..." while their probe is running (new PendingToStringConverter); the ping details and "No open ports found" are hidden until the ping / port scan is finished. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner / Port Scanner progress counters from the scanner state The view models stored the progress value of the ProgressChanged event args. Events of different hosts / ports raised at the same time can arrive in a different order, so an older (smaller) value could overwrite a newer one - also the last one, so the result could end with e.g. 255 of 256 hosts scanned. Step 24 raises ProgressChanged also when a host is found, which makes this more likely. The scanners expose HostsScanned / PortsScanned; the view models read all counters from the scanner on every event and once more in ScanComplete (final values). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner Time column (phase 3, step 26, M3) New Time column after Ping status with the round trip time of the ping reply ("-/-" without a reply, "..." while the ping is running - optional third value of PingTimeToStringConverter, existing users unchanged). Sorting by time uses a custom comparer: hosts without a ping reply (time 0) are always last, in both directions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner passes the DNS hostname, not a NetBIOS name, to other tools (phase 3, step 27, C1) The hostname shown in the result falls back to the NetBIOS computer name. That name was passed to other tools (Port Scanner, Remote Desktop, PuTTY, ...) and to DNS Lookup / RDAP > Hostname, where it may not be resolvable via DNS. Other tools now get the DNS hostname, otherwise the IP address; DNS lookup / RDAP > Hostname are only enabled with a DNS hostname. Custom commands keep {{Hostname}} = shown hostname (documented). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner / Port Scanner copy multiple results (phase 3, step 28, C3) The context menu for multiple selected results only had Export. New Copy submenu (same strings and style as the single-row Copy menu), one value per line in the order shown in the grid, without duplicates: - IP Scanner: IP address, Hostname, MAC address (visibility like the single-row menu / the columns of the shown scan) - Port Scanner: IP address, Hostname, Port, IP address:Port (IPEndPoint format, IPv6 in brackets) The grid order helper is shared with the export (GetSelectedResultsInGridOrder). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner / Port Scanner search (phase 3, step 29, M1) Search box right of the Result header (SearchTextBox, width 250, delayed filter like the Firewall - GlobalStaticConfiguration.SearchDispatcherTimerTimeSpan): - IP Scanner: IP address, hostname, MAC address, vendor, shown ports (number or service). Live filtering on Hostname / MACAddress / Vendor / Ports, so a host found before its hostname or MAC address arrived is filtered again. - Port Scanner: IP address, hostname, port, protocol, service, description, status (also translated). Results don't change after they were added. Enter in the search box filters right away (ApplySearch) and is handled, so it doesn't trigger the scan button (IsDefault) and clear the results. Counters always count all hosts / ports; Export > all exports the filtered results (documented). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner Web Console / Wake on LAN, Port Scanner Web Console (phase 3, step 30, M2) IP Scanner context menu: - Web Console: opens the host (DNS hostname, otherwise the IP address - C1) via https if 443 is open, otherwise the first open of 80 / 8443 / 8080, http on the default port if none is open or the port scan is still running/disabled. - Wake on LAN: sends the magic packet to the MAC address (WakeOnLANRequest), only enabled with a MAC address. Port Scanner: Web Console for an open web port (80, 443, 8080, 8443). New WebConsoleUrlHelper (URL from host + ports: scheme, default ports left out, IPv6 in brackets with an encoded zone id) with unit tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner / Port Scanner rescan selected hosts (phase 3, step 31, M4) Context menu Rescan (single and multiple rows, disabled while a scan runs), new string "Rescan". IP Scanner: scans the IP addresses of the selected rows again with the options of the shown scan (kept as _lastScanOptions, so the columns stay valid) and new option ReportAllHosts (every host is raised, also if unreachable now, without showing all ports like ShowAllResults). The scanner creates new results; their values are copied into the existing rows (IPScannerHostInfo.CopyFrom, selection and expanded details stay) and their updates are applied to these rows (IPScannerHostUpdatedArgs.ApplyTo). Rows are matched by the new scanned IPAddress of IPScannerHostInfo (PingInfo has the reply address). Up / down are counted from the rows during the rescan, the progress of the last scan is restored afterwards. Port Scanner: the rows of the selected hosts are removed and scanned again with the ports and options of the last scan; open / closed = counters of the other hosts + the ones of the rescan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Translatable counter texts in IP Scanner, Port Scanner and Ping Monitor (phase 3, step 33, T1) The counters were built from the number and a separate word ("{0} {1}" with Strings.Up / Down / Open / Closed / Paused), so translations couldn't change the word order. New strings XUp / XDown / XOpen / XClosed / XPaused ("{0} Up" etc., same English text) used as StringFormat in the IP Scanner and Port Scanner and as format of PingMonitorGroupSummaryConverter (Ping Monitor group header). The old strings stay (used elsewhere). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner setting to expand the details of all hosts New setting "Expand host view" (IPScanner_ExpandHostView, default off, same string as the Ping Monitor setting): the result grid shows the row details of every host (RowDetailsVisibilityMode Visible instead of Collapsed), also of hosts added while the scan is running. It follows the current setting (a display preference, not an option of the scan); a row expanded / collapsed with its button keeps its state (local DetailsVisibility of the row). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner crash when the first host is found (typed binding paths) Starting a scan crashed with ArgumentNullException (Parameter 'key') in PropertyChangedEventManager.AddListener. Since step 23 IPScannerHostInfo implements INotifyPropertyChanged, so WPF registers a PropertyChanged listener for every binding path part on it - with the name the path parser stored (SourceValueInfo.propertyName). For a typed path part like "(network:IPScannerHostInfo.IsPingPending)" that name is only set if WPF can resolve the owner type early while parsing the path; in templates / child bindings of a MultiBinding it is resolved later, the stored name stays null (verified in the decompiled PropertyPath / PropertyPathWorker of WPF 10.0.13). Before, the source wasn't INotifyPropertyChanged and the name was never used. Use plain paths for bindings on IPScannerHostInfo (e.g. "IsPingPending", "PingInfo.Status") and for the view model via the BindingProxy ("Data.ScanOptions.ResolveHostname", "Data.SelectedResult.DNSHostname", "Data.IsRunning") in the IP Scanner and Port Scanner views. Typed paths on PortScannerPortInfo (not INotifyPropertyChanged) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Conventions - plain binding paths on INotifyPropertyChanged items Add the rule behind the IP Scanner crash fix to the feature-review conventions: typed binding paths "(ns:Type.Property)" on items that raise PropertyChanged can crash (null property name for the PropertyChanged listener). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: SearchTextBoxHelper - Enter in a search box only filters New attached properties (NETworkManager.Utilities.WPF): HandleEnter handles Enter in a search box (PreviewKeyDown), so it doesn't trigger the default button of the view / dialog / window (e.g. start a scan, close a dialog with OK - IsDefault is window wide, so also the application search of the main window could trigger the default button of the shown tool). EnterCommand runs a command first, e.g. to apply a delayed search right away. Used per tool in the next commits; convention added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: IP Scanner search Enter via SearchTextBoxHelper Replace the PreviewKeyDown handler in the view (step 29) with SearchTextBoxHelper.EnterCommand bound to the new ApplySearchCommand (filter right away). Same behaviour: Enter filters and doesn't start a scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Port Scanner search Enter via SearchTextBoxHelper Replace the PreviewKeyDown handler in the view (step 29) with SearchTextBoxHelper.EnterCommand bound to the new ApplySearchCommand (filter right away). Same behaviour: Enter filters and doesn't start a scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Firewall search Enter filters right away Enter in the search box applies the delayed search right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Profiles search Enter filters right away Settings > Profiles: Enter in the search box applies the delayed search right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Profile import result search Enter only filters Enter in the search box of the import result dialog triggered the default button (import). It now applies the delayed search right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Connections search with delay, Enter filters right away The search filtered on every key press (the connection list can be long and is refreshed automatically). Filter after the shared delay while typing (GlobalStaticConfiguration.SearchDispatcherTimerTimeSpan, like the Firewall); Enter applies it right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Listeners search with delay, Enter filters right away The search filtered on every key press. Filter after the shared delay while typing (GlobalStaticConfiguration.SearchDispatcherTimerTimeSpan, like the Firewall); Enter applies it right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Neighbor Table search with delay, Enter filters right away The search filtered on every key press. Filter after the shared delay while typing (GlobalStaticConfiguration.SearchDispatcherTimerTimeSpan, like the Firewall); Enter applies it right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Hosts File Editor search with delay, Enter filters right away The search filtered on every key press. Filter after the shared delay while typing (GlobalStaticConfiguration.SearchDispatcherTimerTimeSpan, like the Firewall); Enter applies it right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: WiFi search with delay, Enter filters right away The search filtered on every key press. Filter after the shared delay while typing (GlobalStaticConfiguration.SearchDispatcherTimerTimeSpan, like the Firewall); Enter applies it right away (SearchTextBoxHelper.EnterCommand -> ApplySearchCommand) and is handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Application search Enter only filters A default button (IsDefault) is window wide: Enter in the application search of the main window could trigger the default button of the shown tool (e.g. start a scan). SearchTextBoxHelper.HandleEnter handles it, the list is filtered while typing as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Settings search Enter only filters SearchTextBoxHelper.HandleEnter on the settings search, so Enter never triggers a default button there (consistent with the other search boxes). No visible change, the list is filtered while typing as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Language search Enter only filters SearchTextBoxHelper.HandleEnter on the search of Settings > Language, so Enter never triggers a default button there (consistent with the other search boxes). No visible change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port profiles dialog search Enter only filters Enter in the search box triggered the default button (OK) and closed the dialog with the current selection. SearchTextBoxHelper.HandleEnter handles it, the list is filtered while typing as before. Enter in the list still selects (KeyBinding on the DataGrid). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: SNMP OID profiles dialog search Enter only filters Enter in the search box triggered the default button (OK) and closed the dialog with the current selection. SearchTextBoxHelper.HandleEnter handles it, the list is filtered while typing as before. Enter in the list still selects (KeyBinding on the DataGrid). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Port profiles dialog search box indentation Align the SearchTextBoxHelper attribute with the other attributes of the TextBox (formatting of deffdb78c). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner columns can be resized beyond the window (#3557, prototype) With a visible star column (Vendor, Width="*") the DataGrid only lets a column grow by taking the width from the columns to its right (down to their MinWidth, DataGridColumnCollection.RecomputeColumnWidthsOnColumnPositiveResize); the rest is dropped, so a column couldn't be made wider than the grid (also not with a double-click on the gripper) unless there was free space. New DataGridHelper.FillLastColumn: the last visible column fills the remaining width with a pixel width (max(base width, available width - other visible columns); base = MinWidth or the width the user resized it to), updated on size / viewport / column width / visibility changes, previous fill column restored when another one becomes the last. No star column -> columns grow freely, the grid scrolls horizontally. Used in the IP Scanner instead of Width="*" and RefreshStarColumnsOnFirstRow (not needed without a star column). Prototype - roll out to the other tools after testing on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Columns can be resized beyond the window in all tools (#3557) Roll out DataGridHelper.FillRemainingWidth (prototype in the IP Scanner, renamed from FillLastColumn) to every DataGrid with a star column: the star width is removed, the grid fills the remaining width with a pixel width - the column marked with the new DataGridHelper.IsFillColumn (if the star column was not the last one, e.g. Traceroute hostname, Firewall, DNS Lookup, About) or the last visible column. Grids with several star columns (port / OID profiles): the widest one fills, the others get a MinWidth. Fill columns without MinWidth get MinWidth 150. RefreshStarColumnsOnFirstRow removed (no star columns left). Convention added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Update next-release.md * Fix: IP Scanner crash when sorted by MAC address (review 5, #1) Sorting by MAC address converted every MAC address to bytes, and an empty one (host behind a router, MAC address not resolved, or still being resolved while the scan runs) throws in MACAddressHelper.ConvertStringToByteArray - the sort failed with an unhandled exception and the application crashed. Since the results are progressive, a host added to a view sorted by MAC address before its MAC address arrived crashed it as well. Hosts without a MAC address are now compared before the bytes and are always at the end (like hosts without a ping reply in the Time column). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner / Port Scanner scan an IP address once, also with different hostnames (review 5, #2) The de-duplication of the input keeps every hostname of an IP address (needed by the Ping Monitor, which shows the hostname of the input). The scanners ignore the hostname of the input and resolve it via PTR (NetBIOS) - an IP address entered with two names (e.g. two names of one server, or a load balancer) was scanned twice with the same result: two identical rows in the IP Scanner, every port twice in the same group in the Port Scanner, and the counters doubled. Both scanners now scan every IP address once (IPv6 addresses with a different scope id stay different hosts). Ping Monitor unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner rescan removes the old rows at once (review 5, #3) Rescan removed the rows of the rescanned hosts one by one. Every removal searches the collection and the sorted, grouped view, so the time grows with rows x rows - with closed ports shown, a rescan of a host scanned with 1-65535 freezes the window for minutes. The remaining rows are now set with one reset (ObservableRangeCollection.ReplaceAll); the removed rows were the selection anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner sort arrow of the previous column kept (review 5, #4) The columns with an own comparer (IP address, MAC address, Time) handle the Sorting event, so the built-in sort - which resets the sort direction of the other columns - doesn't run. After sorting by Hostname and then by IP address, both columns showed a sort arrow. Reset the other columns like the Port Scanner does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner NetBIOS details hidden while the request is running (review 5, #5) The row details showed the placeholder of a running NetBIOS request as result ("-/-" for computer name, domain and user), the values appeared later. The ping details and the ports are already hidden while their probe is running - the NetBIOS details now too (IsNetBIOSPending). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner Copy > Ports hidden with the port scan disabled (review 5, #6) Copy > Port status already follows the port scan option of the shown scan, Copy > Ports was always shown and copied an empty text without a port scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner down counter negative after a rescan of a canceled scan (review 6, #1) During a rescan the down counter was the scanned hosts of the last scan minus the reachable rows. A host is counted as up when it is found, but as scanned only when DNS / MAC are finished - after a canceled scan there can be more reachable rows than scanned hosts (e.g. "-7 Down"), and the value stayed after the rescan. Use the hosts counted as up or down in the last scan instead, never below 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner / Port Scanner canceled rescan keeps the previous results (review 6, #2) IP Scanner: a rescanned host is copied into its rows as soon as it answers, with placeholders for the probes that are still running (no ports, empty hostname / MAC address, "..."). Canceled before they finished, the rows lost their complete results for good (also for Copy, Export, Web Console). The rows are copied before the rescan and restored if it is canceled or fails. Port Scanner: the rows of the rescanned hosts are removed when the rescan starts - canceled, only the ports scanned so far were left. They are restored as well, with the counters of the last scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: One entry per IP address from HostRangeHelper for the scanners (review 6, #3) The de-duplication by IP address of review 5 #2 ran DistinctBy on the UI thread after every resolution - also for a single range that is already distinct (fast path of SortAndRemoveDuplicates). For a confirmed /8 that is 16.7 M hashed IP addresses, a second list and a large HashSet before the scan starts. ResolveAsync has a keepAllHostnames parameter instead: the merge of the entries of one IP address keeps the first hostname only (IP Scanner, Port Scanner) or all of them (Ping Monitor). The fast path stays free, the code duplicated in both view models is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner rescan keeps collapsed groups and the scroll position (review 6, #4) The single reset of review 5 #3 recreates every host group: their expanders are expanded by default, so groups the user collapsed opened again and the grid lost its scroll position. ReplaceResults removes / adds up to 1000 rows one by one (other groups unchanged) and only uses one reset for more rows, where single changes would freeze the window. Also used to restore the rows of a canceled rescan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner MAC address of IPv6 hosts with a scope id (review 6, #5) The neighbor table map was keyed without the IPv6 scope id, while the input keeps it: "fe80::1%3; fe80::1%7" (e.g. the routers of two interfaces) are two hosts, but both got the MAC address of the last "fe80::1" entry - also used for Wake on LAN and Add profile. The map now contains every IPv6 entry with its scope id (exact lookup for an address entered with one) and without it (an address entered without scope id, as before). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner sort by MAC address / Time in a fixed order for equal values (review 6, #6) Hosts with the same MAC address or ping time - especially all hosts without a MAC address or without a reply, and the many 0 ms replies on a LAN - compared as equal. The sort of the collection view is not stable, so these hosts were shown in a random order that changed with every sort. They are sorted by IP address now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner requests NetBIOS from IPv4 addresses only (review 6, #7) NetBIOS (UDP 137) doesn't exist over IPv6, but the request was sent to IPv6 hosts as well: every IPv6 host kept "..." in NetBIOS reachable and wasn't finished until the NetBIOS timeout (default 2 s), then showed "No". Skipped for IPv6 now (result: not reachable, right away). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner export of running probes as empty values (review 6, #8) Export during a scan (or of a scan canceled before every probe finished) wrote the placeholders of probes that were still running as results: a running port scan as PortStatus "Closed", a running ping as PingStatus "Unknown" with timestamp / TTL / bytes, a running NetBIOS request as not reachable. These values are empty now (CSV empty, XML empty element, JSON null); finished results are exported as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: IP Scanner help icon for NetBIOS IPv4 only (review 6, #7) Scan for NetBIOS has a help icon with the tooltip that only IPv4 addresses are scanned for NetBIOS (NetBIOS doesn't exist over IPv6), like the other settings with a help icon (e.g. Firewall > Show all rules). Docs as note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner scan aborted by a link-layer address that is not a MAC address (final review, #2) The neighbor table and the local network interfaces can have link-layer addresses of another length than 6 bytes (e.g. 4 bytes = the IPv4 address of an ISATAP tunnel, 8 bytes on Teredo). MACAddressHelper.GetDefaultFormat always reads 6 hex pairs: a shorter address threw in the MAC lookup of a host, which aborted the whole scan (exception as status message); a longer one was truncated. Only 6 byte addresses are used as MAC address now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner counters after a rescan of a canceled scan (final review, #1) The counters of the other hosts were computed as if every rescanned host had been scanned with all ports: closed = scanned - rescanned hosts x ports - open. After a canceled scan (a host scanned only partly) closed was too low during and after the rescan, and the scanned counter didn't match open + closed. Closed ports are not kept as rows unless they are shown, so the scanner counts them per host now (GetPortsClosedPerHost); the view model subtracts the open and closed ports of the rescanned hosts, and after the rescan adds its scanned ports. Same idea as review 6 #1 in the IP Scanner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner Copy of running probes disabled (final review, #3) The grid shows "..." for a probe that is still running and the export writes an empty value (review 6 #8), but Copy > Ping status / Timestamp / Time / TTL / Bytes and Port status / Ports copied the placeholders as result (e.g. port status "Closed" while the ports were still scanned, ping status "Unknown"). These items are disabled until the ping / port scan of the host is finished. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: IP Scanner live filtering only while searching (final review, #5) Live filtering was always enabled: the view keeps a live shaping list with a listener per row for Hostname, MAC address, Vendor and Ports and filters a row again on every update - also without a search, when every row is shown anyway (e.g. 65,536 rows with Show unreachable). It is enabled in ApplySearch while the search box has text, and disabled again when it is cleared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner rescan of a large result with one reset (final review, #6) ReplaceResults removed / added up to 1000 rows one by one regardless of the size of the result, but every single change searches the whole collection and the sorted, grouped view: 500 rows of a result with ~1 M rows (closed ports shown) froze the window. The limit is the effort now: changed rows x all rows (max. 10 M, e.g. 1,000 of 10,000 rows), above it one reset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: IP Scanner rescan with one row per IP address (final review, #7) Since 9f45080a3 every IP address is scanned once, so it has exactly one row. The rescan maps IP address -> list of rows and result -> list of rows (and the loops over them) supported a case that can't happen any more: one row per IP address / result now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: IP Scanner rescan options with "with" (final review, #8) CreateRescanOptions copied all 15 options by hand to set ReportAllHosts - every new option had to be added there too, and a wrong copy (e.g. a current setting instead of the option of the last scan) would compile. IPScannerOptions is a record now, the rescan options are "options with { ReportAllHosts = true }". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner groups the results per IP address (PS-B1) The results were grouped by the hostname (the IP address only without one): different IP addresses with the same PTR name (e.g. a generic name of a provider, or a server with two IP addresses) were shown in one group, and the group header didn't show any of the IP addresses. The group header is "hostname (IP address)" now (the IP address without hostname) - one group per IP address, which is scanned only once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner port profile edit / delete only with a selection (PS-B2) Edit and Delete of a port profile in the settings had no CanExecute and the selection started as an empty profile that is not in the list: with no profile selected (e.g. all deleted), F2 / double-click opened Edit with an empty profile and OK added a new one, Del asked to delete nothing. Both need a selected profile now (like the custom commands of the IP Scanner, B15), the delete confirmation names the profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Port Scanner scans more hosts at once with few ports (PS-P1) The number of hosts scanned at the same time was fixed (host threads, default 4, max. 10), independent of the ports per host: with few ports the port threads stayed unused - a /24 with one port (e.g. 3389) had 4 connections in flight, 64 rounds x 2 s timeout = about 2 minutes for an empty range (the IP Scanner needs about 4 s). If the hosts have fewer ports than port threads, more hosts are scanned at the same time within the same number of connections (host threads x port threads, default 512), at most 128 hosts (concurrent PTR lookups, like the IP Scanner): /24 x 1 port -> 128 hosts, about 2 timeouts; 1-1024 unchanged (4 hosts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Port Scanner counts timed out ports separately (PS-B3, PS-C2) The Closed counter next to the Result header counted closed and timed out ports, while the result and the docs distinguish closed (the host refused the connection) and timed out (no answer): a host behind a firewall showed "0 Open · 1024 Closed" with every row "Timed out". The counter is "Open · Closed · Timed out" now (new string XTimedOut). The scanner counts timed out ports separately, also per host for the rescan of some hosts. Docs: Show closed ports shows closed and timed out ports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner crash in the port profiles dialog without a profile (PS-B4) Without a shown profile (all port profiles deleted, or the search has no match) the selection was set to [null]. The OK button is disabled then (via the grid's selection count), but Enter in the grid runs OKCommand directly: the OK callback (async lambda) joined the ports of the selection - NullReferenceException in an async void, the application crashed. The selection is empty instead of [null], OKCommand needs a selected profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner port profiles with own collection views (PS-B5) The settings and the port profiles dialog showed the port profiles through the default view of the settings collection: every dialog / settings view model added another sort by name to the shared view (the sort keys piled up) and the dialog had to remove its search filter on close, so it didn't filter the settings list. Both use an own view now (like the application list of the main window). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner setting to adjust the threads automatically (PS-P1, D-PS1) Replaces the scaling of 3ae408df9, which made "Max. concurrent host threads" a minimum (up to 128 hosts also with 1 host thread set, a hidden limit). New setting "Adjust threads automatically" (default on, help icon): up to 512 connections at the same time (the old defaults 4 x 128), at most 128 hosts and 128 ports per host - 4 hosts for 1-1024, 128 hosts for one port (/24 x 3389: ~4 s instead of ~2 min). Disabled, Max. concurrent host / port threads are used exactly (fields disabled while it is on); host threads up to 256 (was 10), host threads x port threads at most 8,192 connections (half of the local ports, like the IP Scanner maximum 256 x 32) - the maximum of one field follows the other, help icon explains it. Update: customized threads (not 4 / 128) disable the new setting, so they still apply. The PTR lookup of a host starts with its first port probe, so the lookups of many hosts follow the ramp-up instead of starting at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner context menu opens the host in other tools (PS-C1, PS-M1) The context menu of a result only had Rescan, Web Console, Copy and Export. Added the host tools of the IP Scanner (same items, icons and order): Ping Monitor, Traceroute, DNS lookup... (IP address / hostname), RDAP... (IP address / registered domain of the hostname), Remote Desktop, PowerShell, PuTTY, TigerVNC and SNMP. Target: the hostname (always a DNS name from the PTR record in the Port Scanner), otherwise the IP address; Web Console uses the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner Add profile from a result (PS-M2) Context menu "Add profile..." like the IP Scanner: the profile dialog opens with the host (IP address), the hostname as name (single-label names without the trailing dot) and the Port Scanner enabled with the ports of the shown scan as entered (e.g. "22; 80; 443"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner group header with the number of open ports (PS-M3) Each host group shows its open ports next to the name ("server (10.0.0.1) · 3 Open", translated as one text like the counters), also while the scan runs - useful with many hosts collapsed. The view model counts the open ports per IP address when a row is added (OpenPortsPerHost, also for the rows replaced by a rescan), the converter only looks the host up: WPF raises ItemCount for every added row, counting the rows of the group there would take rows x rows (1-65535 with closed ports shown). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner port profiles by name in the ports input (D1) The ports input accepts names of port profiles, also several and together with ports (e.g. "Webserver; Database; 8080", case-insensitive): every ";" entry is a port, a port range or a port profile, resolved when the scan starts (PortProfile.TryResolvePorts, unit tests). Validated by PortsOrPortProfilesValidator in the tool and the run command, which passes the input as entered ("portscan host webserver;database;22") - its port profile suggestions also complete the entry after the last ";". Port profile names must be unique, must not contain ";" and must not be a port or port range (PortProfileNameValidator, IsNameUnique); the update replaces ";" in existing names with ",". PortRangeHelper.IsValidPortOrPortRange: one port or range, "1-2-3" is invalid (was accepted and scanned 1-2, PS-B6 for this input). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner ports input with port profiles and history (D2) The Ports input is an editable ComboBox like the DNS server of DNS Lookup: the list shows the port profiles (name and ports, sorted) and the history, grouped (PortScannerPortsSuggestions, updated when the port profiles or the history change - weak events, no leak of closed tabs / dialogs). Selecting a port profile inserts its name, resolved when the scan starts (D1); several port profiles can be typed. Removed the "Select port profile" button and its dialog (PortProfilesChildWindow, PortProfilesViewModel) - also the changelog entries of fixes in that dialog (it doesn't exist in the release). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Port Scanner settings comment after the port profiles dialog was removed (D2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner port profiles with an internal ID (D3) Profiles will reference port profiles by an ID instead of the name, so a renamed port profile is still found (D4). New port profiles get a new Guid, editing keeps it (the settings replace the edited profile), the update adds an ID to existing port profiles. GlobalAssemblyInfo version 2026.10.11.0 -> 2026.10.27.0, so the update (UpgradeToLatest) runs on a development machine with settings of the last build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Profiles reference port profiles for the Port Scanner (D4) The Ports of the Port Scanner in the profile dialog are the same ComboBox as in the tool (port profiles and history, shared templates in ComboBoxStyles.xaml) - replaces B4 without a nested dialog. Saved: PortScanner_PortsInput = the input with port profiles as references to their ID ("{guid}; 8080", PortProfile.EncodeReferences), null without a port profile; PortScanner_Ports = the resolved ports (also read by older versions). Opened / scanned: the references with the current names (TryDecodeReferences, also after a rename); if a port profile can't be found (deleted, or a profile file shared from another computer - port profiles are settings) the saved ports, and the tab shows a note (also with the first scan). Unit tests for encode / decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Remove the strings of the removed port profiles dialog (D2) OpenPortProfilesDots (button tooltip) and SelectPortProfile (dialog title) are no longer used since the "Select port profile" button and its dialog were replaced by the ports input (d403a65fc). English only, the translations follow via Transifex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Shared ping probe for the IP Scanner and Port Scanner (C2) The ping of the IP Scanner (attempts, retry only on a timeout) is moved unchanged into PingProbe (like PortProbe), so the Port Scanner can ping the hosts before the scan with the same logic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner option to ping hosts before the scan (C2, PS-M5) New setting "Ping hosts before the scan" (default off, help icon): every host is pinged first (PingProbe, with the timeout and attempts of the port scan, retry only on a timeout); a host that doesn't answer is not scanned, its ports are counted as scanned for the progress. After the scan the number of skipped hosts is shown below the input. Sparse ranges with many ports no longer wait for the timeout of every port of an unused address; hosts that block ICMP are skipped (warning in the docs and the tooltip). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Run command list with a quoted entry, e.g. "DNS (via TCP)";Webserver (D1) A value in quotes ended the word: `portscan host "DNS (via TCP)";Webs` (after completing a port profile with spaces and typing "; Webs") was the argument "DNS (via TCP)" plus an unknown argument ";Webs" - no port profile suggestions. In an open quote ("DNS (via TCP); Webs) the suggestions were shown, but the completion used the value without quotes, so the quotes of the previous entries were lost. Parser: a word consists of parts in quotes and parts without spaces ("DNS (via TCP)";Webs is one word, value DNS (via TCP);Webs); the word as typed is CurrentToken. Completion: the previous entries are kept as typed (an open quote is closed before the ";"), names with spaces are quoted in any entry. Parser unit tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner Tab completion of port profiles in the ports input (D1) Like the run command: Tab completes the entry that is being typed with the name of a port profile, the entries before are kept as entered ("webserver; dat" -> "webserver; Database"). Names that start with the entry first, then names that contain it (case-insensitive); Tab again shows the next match, after the last one Tab moves the focus. Without anything to complete (empty entry, port, no match, already the name) Tab moves the focus as usual. A rest the ComboBox autocompleted and selected is ignored. ComboBoxListCompletionBehavior (Controls, now references Utilities) on the ports input of the tool and the profile dialog; the matching is in ListEntryCompletionHelper (unit tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Generic input suggestions with profiles and history (E0) PortScannerPortsSuggestions -> InputSuggestions (profiles with a description + history, grouped, profile names for the Tab completion), created per input with a factory (ForPortScannerPorts), so the DNS server input of DNS Lookup can use the same list. Template PortScannerPortsSuggestionTemplate -> InputSuggestionTemplate (Description instead of Ports). No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: DNS Lookup several DNS servers and DNS server names in a list (E1) The DNS server input accepts several entries separated by ";": names of DNS server profiles (case-insensitive) and DNS servers (IP address or hostname, optional port), e.g. "Google Public DNS; Cloudflare; 9.9.9.9". Shared resolver DNSServer.ResolveServers (every server once, [Windows DNS] alone uses the Windows resolver as before, in a list it adds the DNS servers of Windows) and GetInvalidEntries for the validators; unit tests. Fixes: the tool matched the name case-sensitively while the run command validated it case-insensitively - "dns host cloudflare" was resolved as hostname "cloudflare". Run command: every entry is validated (custom servers still need an IP or a domain), suggestions also after a ";". DNS server names must not contain ";" (validator in the server profile dialog, shared with SNTP; the update replaces ";" with ","), the name of [Windows DNS] counts as used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: DNS Lookup DNS server input with history and Tab completion (E2) The DNS server ComboBox shows the DNS servers (Windows DNS first, then by name, with their servers) and a new history (DNSLookup_DNSServerHistory), grouped like the ports of the Port Scanner (InputSuggestions); Tab completes the name of a DNS server that is being typed (ComboBoxListCompletionBehavior), the input is validated (DNSServersValidator). The SelectedItem binding to a profile is gone - the input is resolved by name (E1). A single profile name is not added to the history, it is already in the list (DNS Lookup and Port Scanner). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: DNS Lookup DNS servers with an internal ID (E3) Profiles will reference DNS servers by an ID instead of the name, so a renamed DNS server is still found (E4). New DNS servers (and the default Windows DNS server) get a new Guid, editing keeps it, the update adds an ID to existing DNS servers. The Windows DNS server will be referenced by name (it exists on every computer, with another ID). GlobalAssemblyInfo 2026.10.27.0 -> 2026.10.27.1, so the update runs again on a development machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Profile DNS Lookup "Inherit host" saved with the Traceroute value ParseProfileInfo set DNSLookup_InheritHost from Traceroute_InheritHost (copy & paste). A profile with an own DNS Lookup host and Traceroute inheriting the host was saved with DNS Lookup inheriting too - the next save replaced the DNS Lookup host with the host of the profile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Profiles can override the DNS server of DNS Lookup (E4) New profile option "DNS server" (DNS Lookup tab, checkbox + the same ComboBox as the tool: DNS servers + history, Tab completion, validation; tab error indicator / OK disabled on an invalid input). Saved like the ports of the Port Scanner (D4): DNSLookup_DNSServerInput = the input with DNS servers by name as references to their ID ("{guid}; 9.9.9.9", DNSServer.EncodeReferences; [Windows DNS] by name, its ID differs per computer), null without a DNS server by name; DNSLookup_DNSServer = the input with the servers of the DNS servers (DNSServer.ReplaceProfilesByServers). Opened / looked up: the references with the current names; if a DNS server can't be found (deleted, or a profile file shared from another computer) the saved servers, and the tab shows a note (also with the first lookup). Unit tests for encode / decode / replace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test: Run command with several DNS servers by name (E1) Parser tests for "dns host "Google Public DNS";cloudflare;9.9.9.9 aaaa" (with / without spaces around ";", type before or after) and for completing the entry after the last ";" of a DNS server list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: History first and profiles in two lines in the ports / DNS server input The drop down of the ports (Port Scanner, profile) and DNS server (DNS Lookup, profile) input looks like the suggestions of the run command: group headers in Gray3 with more space, a profile in two lines (name, then its ports / IP addresses in gray, trimmed with a tooltip), the items as wide as the ComboBox (the drop down grew with a long description). The history comes first: few entries (at most the history size, custom inputs only - a single profile name isn't added), visible without scrolling below 12+ profiles, and the ComboBox's own autocomplete prefers what was used last. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: GitHub issue forms and simplified pull request template Bug report, feature request and question are issue forms now (affected feature, version, installation, architecture, Windows version, log) with contact links to the docs, discussions, Transifex and security advisories. Blank issues are disabled. The pull request template drops the Copilot summary and gets a type of change, a test section and the repo checklist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner host duration of the start scheduler overflows int (review #4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Web Console URL with the trailing dot of a single-label hostname (review #5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner reads the neighbor table for an unreachable host if it was not read yet (review #6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner message of the tab still shown after the ports were changed (review #7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Improvement: Port Scanner pings hosts before the scan with their own concurrency if threads are adjusted automatically (review #2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Shared name / ID reference input for port profiles and DNS server profiles (review #8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Shared search delay instead of a search timer in every view model (review #9) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Revert: IP Scanner reads the neighbor table for an unreachable host if it was not read yet (final review #1) An unreachable host that blocks ICMP still has an ARP entry from the ping, the first read of the table finds its MAC address. Comments describe this now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner hid an error of a scan that didn't start when the ports were changed (final review #2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Port Scanner ping mode computed once, ping pipeline without Task.Run and a second token (final review #5, #6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Search delay provides the command to apply the search right away (final review #7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Hostname without the trailing dot only for applications that resolve it via Windows, shared helper (final review #3, #4) DNSClientHelper.SanitizeHostname removes the trailing dot (also of a single-label name like "gateway."). ApplicationManager.GetHostForApplication uses it for Remote Desktop, PuTTY, TigerVNC, PowerShell and the Web Console; tools that resolve via NETworkManager keep "gateway." so the DNS suffix is not appended. Used by the IP Scanner, Port Scanner and Traceroute, the Web Console URL, custom commands and the profile name. WebConsoleUrlHelper.CreateUrl throws for a missing host instead of a NullReferenceException. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner message of the tab replaced by a message of the first scan (final final review #1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Target prepared for the application in NavigationManager.Open instead of every caller (final final review #2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Changelog trailing dot of single-label names when opened in another feature (final final review #3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Web Console not in the applications whose host is sanitized, its target is a URL (final final review #4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Sanitized hostname of only dots is empty, profile name falls back to the IP address (final final review #5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Ping Monitor uses the shared helper to remove the trailing dot of the hostname (final final review #6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: TrimTrailingDot builds on SanitizeHostname (final final review #7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Web Console URL checks the host before the open ports (final final review #8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner / Port Scanner don't start the scan if no host is left after resolving the hostnames (B8) Only "The following hostnames could not be resolved" is shown instead of also "No reachable hosts found" / "No open ports found", and the input is not added to the history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: ICMP buffer above 65500 lowered on every load of the settings, not only on an upgrade A settings file edited (or restored) after the upgrade to the current version kept a buffer of e.g. 65535, which makes .NET's Ping throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Revert "Fix: ICMP buffer above 65500 lowered on every load of the settings, not only on an upgrade" This reverts commit a47e4b14a. The buffer is lowered inline in UpgradeToLatest again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Column that fills the remaining width could switch between two widths in a loop and hang the window DataGridHelper.FillRemainingWidth: a horizontal scrollbar can make the vertical one appear, the narrower fill column removes both, the wider one shows the horizontal scrollbar again ... Each update is queued with Loaded priority (before input), so the window hangs without an exception. Going back to the wider width of two updates ago within 500 ms (without a size change of the grid) keeps the narrower width. Seen once in a Port Scanner run 1-65535 (stuck in the middle, no exception); cause not confirmed with a stack trace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: IP Scanner settings delete several selected custom commands at once The custom commands grid allowed selecting several rows, but Edit / Delete only used one of them. Like the profiles: MultiSelectDataGrid with the selected commands, a context menu with Delete for several rows, Del deletes all selected after a confirmation that lists them, Edit (F2, context menu) only with exactly one selected command. New strings DeleteCustomCommands / DeleteCustomCommandsMessage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Port Scanner JSON export uses the key State like CSV / XML instead of Status (breaking, PS-C3) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner settings button to restore the default ports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner settings delete several selected port profiles at once Like the custom commands of the IP Scanner: MultiSelectDataGrid, context menu with Delete for several rows, Del deletes all selected after a confirmation that lists them, Edit only with exactly one. The first port profile is still selected on open and after deleting. New strings DeletePortProfiles / DeletePortProfilesMessage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: IP Scanner default custom commands Windows Explorer (shares), Computer Management, Event Viewer and System Information Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Port Scanner rescan of the selected ports in place, Rescan host in the group header Rescan in the row context menu rescanned all ports of the selected hosts (e.g. all 65535 to check one port). Now: - Rows: Rescan scans only the selected ports (PortScanner.ScanPortsAsync, per host only its ports) and updates their state in place (PortInfo.State observable); selection, collapsed groups and the scroll position stay. Every rescanned port is reported (a port closed now keeps its row with the new state, like a host down now in the IP Scanner), without ping befo…
mergify Bot
pushed a commit
that referenced
this pull request
Nov 7, 2026
* Refactor: Remote Desktop: Shared control for the credentials of profiles and groups (W1)
The credentials (use credentials, username, domain, password, warning if the
profile file is not encrypted) were written out in the profile and the group
dialog, and their validation was repeated in three MultiDataTriggers each for
the Save button and the error icon of the tab (ElementName bindings to the text
boxes). WindowsCredentialsControl / WindowsCredentialsViewModel (like the SNMP
credentials control) hold them, with HasError (same rules as the validators)
and the values to save (empty if not used). Preparation for the Windows
credentials of the IP Scanner. No behaviour change, no change of the profile
file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Windows credentials in profiles and groups (W2)
New profile / group values IPScanner_UseWindowsCredentials,
IPScanner_WindowsUsername, IPScanner_WindowsDomain and
IPScanner_WindowsPassword (saved in the profile file like the Remote Desktop
password, encrypted with profile file encryption), edited with the shared
WindowsCredentialsControl in the IP Scanner tab of the profile and group
dialog (section "Windows" after SNMP). GetWindowsCredentials returns the ones
of the profile, otherwise of its group, otherwise null: the user running the
application (no Windows credentials in the settings). WindowsCredentials keeps
the password as SecureString (copy), ToString without the password.
Preparation for the Windows host information of the scan.
Unit tests like the SNMP override (order, saved / loaded, copy constructors,
old profile file).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Read the SMB / NTLM information of a host without credentials (W3a)
SMBInfoResolver connects to TCP 445 and sends an SMB2 NEGOTIATE (dialects
2.0.2 - 3.1.1, preauth integrity context) and a SESSION_SETUP with an NTLM
NEGOTIATE message in an SPNEGO token. The NTLM CHALLENGE of the answer
contains the version of the operating system (major.minor.build), the NetBIOS
/ DNS computer and domain names, the forest and the time of the host; the
negotiate response the dialect, signing required, the server GUID and the
system time (time offset corrected by half the round trip time). The
connection is closed after the challenge: no credentials are sent, no logon
is attempted. Exception-free (null), cancellation is passed on.
WindowsVersionHelper names the version by its build (10.0.26200 = Windows 11
25H2, 26100 = Windows 11 24H2 / Server 2025 unless the role is known, ...),
no name for Samba (build 0). Not used by the scan yet.
Unit tests for the requests, the parsing (MS-NLMP example, SPNEGO answer,
invalid / truncated answers) and the version names. Checked against Samba
4.23 (SMB 3.1.1, challenge parsed, version 6.1.0 without a name).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Read the Windows host information with the NetApi (W3b)
WindowsNetApiResolver reads with the credentials of the calling thread:
NetServerGetInfo 101 (role: workstation / server / domain controller, domain
member, description), NetWkstaGetInfo 100 (workgroup), NetWkstaUserEnum 1
(logged-on users without computer / DWM / UMFD accounts, needs admin rights)
and, only if the users could be read, the remote registry (build with patch
level, display version e.g. 25H2, edition, installation type). Buffers are
freed with NetApiBufferFree, IPv6 hosts use the ipv6-literal.net name. The
calls are blocking (run by the scan on limited threads with a timeout).
WindowsLogon: LogonUser with LOGON32_LOGON_NEW_CREDENTIALS (like runas
/netonly) - the credentials are only used for outgoing SMB / RPC, no
privileges needed, no SMB session of the user is changed (no conflict with
mapped drives like WNetAddConnection2). The password goes from the
SecureString to unmanaged memory (zeroed after the call), never to a managed
string. "DOMAIN\user" and UPNs without a domain are supported.
WindowsHostInfo combines the SMB / NTLM values (no credentials) and the
NetApi values: OS name (registry version, otherwise NTLM build; the role
decides shared builds), edition, domain / workgroup, computer name, time
offset, users, errors (logon failure detection). Not used by the scan yet.
Unit tests for the username split, UNC names, roles, user filter, editions
and the combined values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Read Windows host information in the scan (W3c)
New settings IPScanner_WindowsEnabled ("Read Windows host information",
default off, section "Windows" after SNMP with a help icon, also in the
options menu) and IPScanner_WindowsTimeout (5000 ms). For reachable hosts -
with the port scan and 445 in its ports only if 445 is open, otherwise every
found host (D-P5) - after the port scan: the SMB / NTLM request (no
credentials), then, if the host answered on 445, the NetApi requests. These
are blocking: each runs on its own thread (max. 16 at the same time, a call
that exceeds the timeout keeps its slot until Windows returns, its result is
ignored) with the network logon of the scan.
Credentials: the Windows credentials of the profile / group the tab was
opened with (WindowsLogon, created once per scan; if it fails every host
gets the error instead of using another user), otherwise the user running
the application. The options menu shows 'Windows credentials of "X"
(DOMAIN\user)' like the SNMP credentials.
Target of the NetApi requests (D-P8): the DNS hostname if its first label is
the computer name of the NTLM challenge (Kerberos; a stale PTR record can't
point to another computer), otherwise the IP address; a name that can't be
found falls back to the IP address.
The result is IPScannerHostInfo.Windows with IsWindowsPending ("...", ended
on cancel, CopyFrom). Not shown yet (next commit). Docs: setting, timeout,
options menu; changelog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Show the Windows host information in the result (W4)
New columns (only for a scan with Read Windows host information): Windows
(version name, version number in the tooltip), Domain, Time offset (+1.2 s,
-3 min 5 s, ...; highlighted above 5 minutes, the Kerberos limit) and
Logged-on users (one per line in the tooltip, or why they could not be read).
The row details get a fifth column "Windows" (1*, D-P7): operating system,
edition, version, role, computer name, domain, description, time offset,
users, SMB version / signing and the error of the NetApi requests; a note if
the setting was disabled. WindowsHostInfoToStringConverter (one converter,
the value as parameter) for the columns and the row details.
Copy > Windows > Operating system / Domain / Logged-on users, search (version,
edition, computer name, domain, description, users) and export (WindowsOS ...
SMBServerGuid at the end; time offset in seconds, NetApi error as Win32 code;
empty values if disabled). A status message if the logon with the Windows
credentials of the profile / group failed (D-P11, once per scan with the
number of hosts).
DateTimeHelper.TimeSpanToOffsetString + unit tests, export tests for the new
columns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: NetApi requests could connect to another computer with the same name (review #1)
GetWindowsTarget used the DNS hostname (PTR) if its first label was the
computer name of the NTLM challenge. A stale PTR record of a computer with the
same name in another domain (e.g. srv01.lab.example.com for SRV01 in
corp.example.com) resolved to another host: it got the credentials and the
row showed its role, users and patch level. The hostname is only used if it
is the full DNS name the host sends in the NTLM challenge, otherwise the IP
address (also for a computer in a workgroup, which has no DNS domain).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Limit of the blocked NetApi calls per scan instead of for the application (review #2)
The 16 slots for the blocking NetApi calls were per IPScanner instance, but a
call that exceeds the timeout keeps its thread after the scan is completed.
Every repeated scan (Automatically scan every), rescan or other tab got 16
new slots, so hosts that don't answer RPC could pile up blocked threads. The
semaphore is shared by all scans now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Logon failure message of a rescan counted all rows (review #3)
After a rescan of selected hosts, the message "The logon with the Windows
credentials ... failed on n host(s)" counted every row of the result, also
the ones that were not rescanned (they keep the result of the last scan). A
rescan of one host showed e.g. "failed on 19 host(s)". Only the rescanned
rows are counted now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Any error of the Windows logon was shown as wrong password (review #4)
If WindowsLogon.Create failed with an exception other than a Win32Exception
(e.g. a disposed password), every host got ERROR_LOGON_FAILURE (1326): the
rows and the status message said the username or password is wrong. These
errors get ERROR_GEN_FAILURE (31) now, no logon failure message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Unknown server build shown as a client release (review #5)
For a build that is not in the list, "(build N)" was replaced by the display
version of the registry. A newer server ("Windows (build 28000)") became
"Windows 25H2": it looked like a client and the build was gone. Only an
unknown Windows 11 build gets the display version ("Windows 11 26H1"), other
unknown builds keep the build number.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Search didn't find the Windows version number (review #7)
The docs say the search matches the Windows version, but only the name (e.g.
"Windows 11 25H2") was searched - "26200" or "10.0.26200.6584" (e.g. to find
hosts without an update) found nothing. The version number is searched as
well.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Time offset of the NTLM timestamp used the round trip of the negotiate request (review #8)
If the negotiate response has no system time, the time of the NTLM challenge
is used - but it was compared with the local time of the negotiate request
(one round trip earlier), so the offset grew by the session setup delay on a
slow connection. Each time is compared with the middle of its own round
trip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Check once per scan if the port scan checks SMB (review #9)
IsSMBPortOpenOrNotScanned searched the ports of the port scan for 445 up to
twice per found host (up to 65535 ports), the answer doesn't change during a
scan - computed once per scan now. The SMB port is one public constant
(SMBInfoResolver.SMBPort) instead of a copy in the scanner. No behaviour
change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: A wrong password of the Windows credentials could lock the account (B1)
The NetApi requests ran on up to 16 hosts at the same time with the
credentials of the profile / group. With a wrong password every host in a
domain made the domain controller count a failed logon - a /24 with many
Windows hosts reached the lockout threshold in seconds, and Automatically
scan every repeated it every interval.
WindowsLogonGate checks the credentials on one host first, the other hosts
wait (at most twice the timeout):
- Accepted (success, or access denied = logged on without rights): all hosts
run in parallel.
- Logon failure on a host in the domain of the credentials (NetBIOS / DNS
domain of the NTLM challenge, domain or UPN suffix of the credentials), or
the third logon failure on hosts of other domains: rejected. The other hosts
are not tried ("Not tried: ..." in the row details, WindowsError -1).
- Timeout / other errors: the next host checks.
Computers in a workgroup (no domain controller) and local accounts are not
gated, a logon failure there only affects the host itself.
Rejected credentials are not used again in the tab (next scans, repeat,
rescan, also after a canceled scan); one message instead of the count of
failed hosts.
Unit tests for the gate (order, domain matching, failure cap, workgroup /
local accounts, timeout, rejected in an earlier scan).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Windows host information after the ports (O1)
The Windows host information needs the port scan (TCP 445) like the web
page: it follows the port scan in the settings (section after Port scanner),
the options menu, the result columns (after Port status), the row details
(Ping / hostnames | Ports | Windows | Web | NetBIOS / SNMP), the Copy menu
and the docs. The export columns stay at the end (fixed order). The docs
anchor of the SNMP timeout is updated (timeout-ms-6).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: User of the Windows credentials appended outside the translation (L1)
The options line 'Windows credentials of "Site A" (CORP\admin)' appended the
user in the code, so a translation couldn't change its position. The user
is a placeholder of the string now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Windows credentials of a tab and Scan as... (S2)
Options > Windows credentials... sets the Windows credentials of the tab
(WindowsCredentialsChildWindow with the shared credentials control, not
saved, discarded with the tab): they replace the ones of the profile /
group, "Use credentials" off uses the user running the application. Works
also for a tab without a profile (no Windows credentials in the settings).
They are used for the following scans, Automatically scan every and Rescan
(a rescan uses the current credentials of the tab, not the ones of the last
scan); credentials that were rejected are used again after they were set.
The options show 'Windows credentials of this tab (CORP\admin)'.
Scan as... in the context menu of a profile asks for the credentials (the
ones of the profile / group as default) and scans the profile with them in a
new tab, like Connect as... of the Remote Desktop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: IP Scanner: Warning that every host with SMB receives a logon (S1)
Every host that answers on port 445 receives a logon with the credentials of
the scan (also the user running NETworkManager) - with NTLM (asked by IP
address) a malicious host could relay it or crack the password offline.
Warning in the docs of Read Windows host information and in its help
tooltip: only scan trusted networks with privileged accounts, least
privilege, SMB signing on servers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Windows values exported as text instead of number / boolean (C1)
WindowsTimeOffset, WindowsError and SMBSigningRequired were exported as
strings ("-185.500", "5", "True" in JSON), unlike WebStatusCode /
WebCertificateSelfSigned. They are numbers / booleans now (null without a
value). The CSV file formats values with the invariant culture, so the time
offset keeps its decimal point (a decimal comma would split the column).
No change for the other columns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: SMB request threw an exception for every host without SMB (P1)
The connection of SMBInfoResolver used Socket.ConnectAsync with a token: a
refused or unanswered port 445 threw a SocketException / an
OperationCanceledException for every found host (with the port scan
disabled) - slow with a debugger attached, which PortProbe and
NetBIOSResolver avoid. The connect uses SocketOperation now (SocketError
instead of an exception). Checked against Samba (answer in 35 ms, refused
port: null at once, no answer: null after the timeout).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: SMB signing in its own row of the row details (U1)
"3.1.1 (signing required)" looked like a problem, also on hosts where the
logon worked. The row details show SMB (the version) and SMB signing
(Required / Not required, a setting of the SMB server of the host) in two
rows; the docs explain that it is not an error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Windows credentials / Scan as dialog cut off on the right (S2b)
The grid of the dialog had a fixed width of 500 plus a margin of 10, the
child window is 500 wide (ChildWindowWidth of DefaultChildWindow): the text
and the Cancel button were cut off. The grid uses the width of the dialog
like the other child windows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Ping status and NetBIOS reachable only in the row details (K1)
Both columns mostly repeated the status icon of the host: the probes that
answered are in its tooltip, the status icons of ping and NetBIOS in the
headers of the row details, the values (time, TTL, NetBIOS name and
workgroup) in the row details and the NetBIOS name is used for Hostname.
The result is two columns narrower. Sorting by ping status / NetBIOS
reachable is gone (Time sorts the hosts that answered the ping).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Labels of the Windows credentials in the profile / group dialog not styled (W2b)
The labels of WindowsCredentialsControl relied on the implicit TextBlock
style the dialogs set in the resources of their grids. In the IP Scanner tab
of the profile and group dialog the control is not in such a grid: the
labels were black and smaller than the other rows. The control sets the
style itself (CenterTextBlock, like the dialogs).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Windows version and OS guess in one OS column (K2)
The OS (guess) column and the Windows column showed the same kind of value
side by side. One OS column now: the Windows version if it was read (Windows
logo, edition and version number in the tooltip), otherwise the guess from
the TTL as before (icon, hops in the tooltip); "..." while the ping or the
Windows host information is still running. Shown if the guess or Read
Windows host information is enabled for the scan (IsOSShown), sorted by
OSName (Windows version, otherwise the guess). Copy > OS (guess), search and
export are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Credentials section in the options menu (S2c)
"Windows credentials..." was in the middle of the scan options (after Read
Windows host information) and looked like another option. The options menu
has a credentials section after the options: the SNMP version and
credentials of the profile / group (moved from below the SNMP option), the
Windows credentials of the tab and "Set Windows credentials...".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Open ports as text instead of the port status icon (K3)
The Port status column only showed whether any port is open (icon), the
ports were in the tooltip. The column shows the open ports (e.g. "22, 80,
443"; "..." while the port scan is running, "-/-" without open port), the
tooltip the services as before; sorted by the number of open ports
(OpenPortCount). Search, Copy and export (PortStatus, Ports) are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Remove the unused ping / NetBIOS tooltips (K1b)
IPScannerStatusToolTipConverter formatted the tooltips of the Ping status
and NetBIOS reachable columns, which are removed (K1). The ports (Open ports
column) and the answered / no answer tooltips of the row details stay. No
behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Domain column also with the NetBIOS workgroup (K4)
The Domain column was only shown with Read Windows host information. It
shows the domain / workgroup of the Windows host information, otherwise the
workgroup / domain of the NetBIOS answer (shown if one of them is enabled
for the scan, IsDomainShown; "..." while a source is still running). Search
matches this value (also the NetBIOS workgroup now). Copy > Windows > Domain
and the export are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: IP Scanner: Export columns of the Windows host information (D1)
The docs of the web page and SNMP list their export columns, the Windows
host information didn't: WindowsOS ... SMBServerGuid, with the unit of the
time offset and the meaning of WindowsError (-1: not tried).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: One helper to remove control characters of network values (R1)
Five resolvers had their own copy to remove (or replace) the control
characters of a value received from the network: MDNSResolver,
SMBInfoResolver, SNMPSystemInfoResolver, WebPageResolver and
WindowsNetApiResolver. They use StringHelper.RemoveControlCharacters /
ReplaceControlCharactersWithSpace now. No behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: A host with guest access could accept a wrong Windows password (G1)
The lockout protection accepted the credentials on the first host that
answered with success / access denied. A host that maps a failed logon to
guest (e.g. a NAS with "map to guest = bad user") also answers a wrong
password: the credentials were accepted and every host of the domain got
the wrong password in parallel.
Only a host in the domain of the credentials accepts them now; hosts of
other domains (also a UPN suffix that is not the domain of the hosts)
after three of them (MinAcceptsOutsideDomain), until then the next host
checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Hosts not tried while the Windows credentials were checked showed a timeout (G2)
A host that waited longer than twice the timeout for its turn to check the
credentials (other hosts checked them without a result, e.g. timeout or
RPC error) got ERROR_TIMEOUT - shown as "This operation returned because
the timeout period expired.", although it was never contacted. It gets its
own error now (ErrorLogonNotChecked, -2 in the export): "Not tried: the
Windows credentials were still being checked on another host".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Copy menu with the OS, Open ports and Domain columns (G4)
The Copy menu was not updated when the columns changed (K2 - K4): it still
copied the port status (Yes / No) and the OS guess (only with ping), and
Copy > Windows > Domain only the Windows domain.
- OS: the text of the OS column (Windows version, otherwise the guess),
shown if the column is (IsOSShown), disabled while it is still read
(IsOSPending).
- Open ports: the port numbers like the column, instead of Port status.
- Domain: the Domain column (also the NetBIOS workgroup), top level, shown
with IsDomainShown - replaces Copy > Windows > Domain.
- Windows > Time offset (new).
The unused PortOpenToStringConverter is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: IP Scanner: Changelog with the five columns of the row details (G5)
The row details have a Windows section since #149: five columns instead of
four.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Profiles: Invalid username / domain of the credentials could be saved (H1)
WPF doesn't pass invalid input of a text box with validation rules to the
view model, it keeps the last valid value: clearing the username left its
first character, "john doe" left "john". HasError of the view model didn't
see it, Save / OK stayed enabled and the truncated value was saved. Before
the shared WindowsCredentialsControl (W1), the Remote Desktop dialogs
checked the validation of the text boxes.
The controls count the validation errors of their text boxes
(NotifyOnValidationError) and set HasInputError of the view model, which is
part of HasError. Also for the SNMP username (SNMPCredentialsControl).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Next host checked the Windows credentials while a timed-out logon was still running (H2)
The host that checked the credentials reported its result to the lockout
protection when its NetApi requests exceeded the timeout (ERROR_TIMEOUT,
not decided). The next host checked them while the blocked call - with the
same credentials - was still running, and the late result (e.g. a logon
failure in the domain that rejects them) was ignored: with slow RPC every
host could send a wrong password one after the other.
The result is reported when the call returns (onCallCompleted), also after
the timeout of the host; the row still shows the timeout. Until then the
other hosts wait (and show "Not tried" after their timeout).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Windows credentials without domain were rejected only after three logon failures (H3)
Credentials without a domain (e.g. "admin") are never "in the domain" of a
host, so the lockout protection rejected them only after the third logon
failure - each one may be counted by the domain controller of the host.
Without a domain, the first logon failure on a gated host rejects them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Windows logon always failed with "DOMAIN\user" and a domain (H5)
With a domain set, the username was passed to LogonUser as it is: "CORP\admin"
with the domain "CORP" logged on as user "CORP\admin" in CORP and always
failed (counted as wrong password by the lockout protection), and was shown
as "CORP\CORP\admin". A UPN with a domain had the same problem (LogonUser
needs a null domain for a UPN).
"DOMAIN\user" uses the domain of the username, a UPN never a domain - also
if the domain is set. DisplayName shows the user as it logs on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: A slow remote registry discarded the Windows values already read (H4)
All NetApi requests of a host share one timeout, the remote registry (patch
level) is read last and can be slow (Remote Registry service started on
demand). If it exceeded the timeout, the role, workgroup, description and
logged-on users already read were discarded and only the timeout error was
shown.
WindowsNetApiResolver.Resolve reports the NetApi values before it reads the
registry (onNetApiRead): after the timeout they are shown without the patch
level. The lockout protection gets the result at the same time (the
registry doesn't change the logon), so the other hosts don't wait for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: OS column sorted by the TTL guess also if it was disabled (H6)
OSName (sorting of the OS column) and IsOSPending (Copy > OS) used the
guess from the TTL also if Guess the operating system from the TTL was
disabled: rows that show "-/-" were sorted by the hidden guess, and Copy >
OS was disabled while the ping was running although it can't give a value.
The host knows if the guess is enabled in its scan (IsOSGuessEnabled, set by
the scan, copied by CopyFrom).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Windows host information starts after the port scan instead of all probes (H7)
The Windows host information of a found host was started after all probes
were finished (ping, NetBIOS, SNMP and the port scan), although it only
needs the result of TCP 445: every Windows host waited for the slowest
probe (e.g. the SNMPv3 timeouts). It starts when the host is found, or - if
the port scan checks 445 - when the port scan is finished.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Helpers for the Win32 error and the logon errors (H8)
- GetWin32Error: the mapping of an exception to its Win32 error
(ERROR_GEN_FAILURE otherwise) was written twice in IPScanner.
- WindowsHostInfo.IsLogonError: WindowsLogonGate created a WindowsHostInfo
only to read IsLogonFailure.
No behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Unchanged Windows credentials keep their profile / group as source (G6)
Scan as... and Set Windows credentials... are prefilled with the current
credentials. OK without a change showed 'Windows credentials of this tab'
in the options, although they are the ones of the profile / group.
The dialog returns the credentials it was opened with if nothing was
changed (same username / domain, no new password): Scan as... shows the
profile / group as source, Set Windows credentials... keeps the source
(and still uses rejected credentials again).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Windows credentials in the options only with Read Windows host information (G7)
Set Windows credentials... and the line with the Windows credentials of the
tab were shown also if Read Windows host information is disabled (they are
not used then). Both are shown with the setting (it can be turned on in the
same menu); the separator of the credentials section is hidden if none of
its lines is shown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Dispose the copies of the Windows password of a tab (G8)
The tab keeps a copy of the Windows password (SecureString) of the profile
/ group, Scan as... or Set Windows credentials.... It is disposed when it is
replaced, when the tab is closed and when Scan as... doesn't use the copy of
the profile / group (canceled or other credentials).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Lockout protection of the Windows credentials started again in every scan (I1, I3, I6)
Every scan created its own WindowsLogonGate, only the rejected state was
passed to the next scan of the tab:
- I1: the logon failures were not counted over the scans. Wrong password
and two hosts of another (trusted) domain: below the limit of three per
scan, never rejected - with Automatically scan every the domain
controller counted two failed logons per scan and locked the account.
- I3: a check that exceeded the timeout and returned after the scan was
completed (H2) reported to the gate of that scan only, the next scan
checked the credentials again.
- I6: rejected credentials added the "logon failed" message again in every
following scan, although no logon was tried.
The tab keeps one gate for its credentials (IPScannerOptions.WindowsLogonGate,
new with Set Windows credentials...) and shows the message once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Rejected Windows credentials were still used for workgroup computers (I2)
WaitAsync returned Proceed for hosts that are not gated (computers in a
workgroup, the host of a local account) before it checked if the
credentials were rejected: they got the wrong password in every scan
(with Automatically scan every, the local account of a workgroup computer
could be locked). Rejected credentials are skipped for every host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Line breaks of the Windows computer description were removed (I4)
The control characters of the description (NetServerGetInfo) were removed,
a description with several lines ran together ("File server\r\nBuilding 2"
-> "File serverBuilding 2"). They are replaced with spaces like the SNMP
description (StringHelper.ReplaceControlCharactersWithSpace).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Sort key of the OS column not updated after the ping (I10)
OSName depends on IsPingPending (via OSGuess), but its setter didn't
notify it: the ping result sets PingInfo while the ping is still pending
(empty guess), then IsPingPending = false without a notification - the
sort key of the OS column could stay empty.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Unknown Windows build without role not named Windows 11 (I7)
An unknown build from 22000 was named "Windows 11 (build n)" also if the
role of the host is unknown - the usual case without credentials (no
NetApi / registry): a newer Windows Server would have been shown as
Windows 11. Only a workstation gets "Windows 11 (build n)", an unknown role
"Windows (build n)" like a server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: Profiles: One helper to track the invalid input of the credentials controls (I8)
The counting of the validation errors (H1) was copied in
WindowsCredentialsControl and SNMPCredentialsControl. InputErrorTracker
does it once for a control whose view model implements IHasInputError.
No behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Accepted Windows credentials were not checked again in the next scans (J1)
Since the tab keeps one lockout protection for all its scans (I1), the
accepted state was kept too: a password changed or expired in the domain
later was sent to every host in every repeated scan without a check (and
could lock the account). Every scan checks accepted credentials again
(WindowsLogonGate.StartScan), the logon failures and a rejection are kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Workgroup computers skipped after a rejection by the domain hosts (J2)
Since I2, rejected credentials were skipped for every host, also for the
hosts that are not gated: "admin" (no domain) meant for the local admin of
workgroup computers was rejected by the first domain host, then every
workgroup computer showed "Not tried" although the password is correct
there ("PC01\admin" rejected by domain hosts also skipped PC01).
A host that is not gated is independent of the rejection again, but is
skipped in the next scans after its own logon failure (ReportUngated, by IP
address): one failed logon per host and tab instead of one per scan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Repeated scan could start while the Windows credentials were edited (J3)
Set Windows credentials... is only disabled while a scan runs when the
dialog opens. Automatically scan every could start a scan while the dialog
was open; OK then replaced the credentials and their lockout protection
under the running scan (its rejection was checked on the new one and lost).
The repeat waits while the dialog is open, like for the confirmation of a
large scan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Copy > OS / Time offset copied "-/-" without a value (J4)
Copy > OS and Copy > Windows > Time offset used the converters of the
column, which show "-/-" without a value: the placeholder was copied. The
other Copy entries copy an empty value. IPScannerOSToStringConverter returns
an empty text with the parameter "Copy", WindowsHostInfoToStringConverter
has a NoValue property (empty for the Copy instance).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Profiles: Passwords of the credentials decrypted to check if they are empty (J5)
WindowsCredentialsViewModel.IsPasswordEmpty and SNMPCredentialsViewModel
decrypted the SecureString to a managed string every time a password was
set (every key stroke, and the password of the tab / profile when the
dialog opens) only to check if it is empty. They use its Length.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Remove WindowsHostInfo.IsLogonFailure (J6)
Only used by tests since the lockout protection uses
WindowsHostInfo.IsLogonError (H8). The tests use IsLogonError.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Compute the open ports and the Windows version once per host (J7)
OpenPorts / OpenPortCount (Open ports column) and WindowsOS (OS column,
WindowsVersionHelper.GetName) were computed on every read - sorting and the
search read them for every row again. They are computed when Ports /
Windows are set. No behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Report the NetApi result to the lockout protection on one path (J8)
ResolveNetApiWithLogonAsync reported to the lockout protection on three
paths (canceled / no slot directly, the call through Complete). All of them
use Complete now, which reports exactly once. No behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: IP Scanner: PR number in the changelog of the Windows host information (I9)
The entry linked a placeholder ([#PR]): #3691.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Hosts without NTLM names bypassed the lockout protection (K1)
A challenge without (or with a truncated) target info has empty computer
and domain names: IsDomainMember was false, so the host was treated as a
workgroup computer, and for credentials without domain the empty computer
name also matched the local account check. Such hosts (e.g. domain-joined
NAS devices) got the unchecked credentials in parallel.
Only a host with both names is known as workgroup computer / computer of a
local account, every other host is gated (like a host without challenge).
Reported by Copilot on #3691.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Successes outside the domain accepted unchecked Windows credentials (K2)
Three successes on hosts outside the domain of the credentials accepted
them for all hosts. Such a success doesn't prove the password: a host that
maps a failed logon to guest (NAS, Samba "map to guest") or, for
credentials without domain, a local account with the same name also
answer a wrong password. The counter was also kept over the scans, so one
guest host could supply all three successes. The remaining domain hosts
then got a possibly wrong password in parallel.
Only a host in the domain of the credentials accepts them, a success
elsewhere is used by this host only and the next host checks them. A host
in the forest whose root domain is the domain of the credentials (e.g. the
UPN suffix "example.com" for "corp.example.com") counts as in the domain
(its domain controller checks the logon).
Reported by Copilot on #3691.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Unknown NetApi errors let every host try the Windows credentials (K3)
The lockout protection only counted the errors of a known list as logon
failures, every other error let the next host check the credentials - with
no limit. A wrong password reported with an error that is not in the list
(e.g. a Kerberos / SSPI error with a hostname as target, ERROR_ACCOUNT_EXPIRED
or ERROR_INVALID_PASSWORD) was tried on every host one after the other.
Inverted: only the errors that show that no domain controller checked the
password (timeout, host / network / RPC / domain controller of the host not
reachable, NTLM blocked) let the next host check them, every other error
counts as a logon failure (also for the hosts that are not gated).
WindowsHostInfo.IsLogonError is replaced by IsLogonNotDecided.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Max. logon failures of the Windows credentials as setting, counted per account (K4)
The lockout protection rejected the credentials after the third logon
failure on hosts of other domains (e.g. a trusted domain, whose domain
controller passes the logon to the one of the credentials). A domain
controller may count one failed logon twice (Kerberos, then NTLM): 3
failures could be 6 counts, above a lockout threshold of 5. The failures
were also counted per tab: every tab with the same account (Scan as...,
the same profile) and the credentials entered again started from zero.
New setting Max. logon failures (Windows section, 1 - 5, default 2, help
icon: keep it below half of the lockout threshold), passed to the gate per
scan. The failures are counted per account for all gates until the
application is closed, like the domain controller counts them; a new gate
still checks the credentials once (e.g. a corrected password).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Logon restrictions rejected correct Windows credentials (K5)
The lockout protection counted every logon error as a failed logon, also
the ones that don't fail the password: a logon type that is not granted
(e.g. "Deny access to this computer from the network" for tiered admin
accounts on a domain controller - checked by the host after the domain
controller accepted the password), logon hours, workstation and account
restrictions (e.g. Protected Users with NTLM). One such host rejected the
credentials for the whole tab.
- Logon type not granted on a host in the domain accepts the credentials
(like access denied).
- Logon hours / workstation / account restriction are not counted and not
accepted (the restriction may be checked before the password): the next
host checks them; a host that is not gated is not skipped.
- An accept in the domain resets the counted logon failures of the
account, like a successful logon resets badPwdCount.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: No message if the Windows credentials were rejected after the scan (K6)
The message that the credentials were rejected was only checked when a scan
was completed. A check that exceeded the timeout reports its result when
Windows returns - after the scan, so without Automatically scan every no
scan showed the message and the rows only had their timeout.
The gate raises Rejected once when it rejects the credentials; the tab
shows the message right away if no scan is running (otherwise when the
scan is completed, after its other messages), once per credentials.
Reported by Copilot on #3691.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Local account "." logged on unchecked without the computer name (K7)
Local accounts (".\admin") were not gated and logged on with "." as
domain for all hosts in parallel. Whether a domain member checks "." with
its own accounts or passes it to its domain controller depends on what the
client sends for "." in the NTLM / Kerberos logon - if it is passed on, a
domain account with the same name gets one failed logon per host.
A local account is logged on for each host with its own computer name of
the NTLM challenge ("PC01\admin", WindowsCredentials.ForHost): only the
host checks it, independent of how "." is handled. A host without its
computer name (no challenge, or without its names) is gated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Rescan read the Windows host information after it was turned off (K8)
A rescan of selected hosts uses the options of the last scan, also Read
Windows host information: after turning it off (e.g. as kill switch while
it is tested), a rescan still sent the SMB request and logged on to the
hosts with the Windows credentials.
The rescan reads it only if it is still enabled; otherwise the rescanned
hosts have no Windows values (the other options stay those of the scan).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Scan as... only with Read Windows host information (K9)
Scan as... in the context menu of a profile asked for Windows credentials
also with Read Windows host information turned off - they were not used by
the scan. Shown and enabled only with the setting, like Set Windows
credentials... in the options of the tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Beta label for Read Windows host information (K10)
Read Windows host information is released for public testing: a Beta
label (accent badge, tooltip "tested publicly and may change") next to
the setting on the settings page and in the Options menu of the tab, a
note in the documentation (turning it off stops all SMB requests and
logons, also of Rescan) and "beta" in the changelog. Still off by default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Wrap the summary of the lockout protection (K5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* IP Scanner: Log of the lockout protection of the Windows credentials (K11)
The checks of the Windows credentials were not logged: a failed logon or a
rejection was only visible in the rows of the tab.
Logged by the gate (account as used for the logon, never the password;
host as IP address with computer name and domain / workgroup of the NTLM
challenge, Win32 error with its message):
- INFO: start of a scan (max. logon failures, failures counted for the
account; or rejected in an earlier scan), accepted on a host of the
domain, logged on outside the domain (not proven), logon not allowed
(not counted), a failure below the limit, the number of hosts of the scan
that didn't use the credentials (rejected / waited longer than the
timeout) - once per scan instead of per host.
- WARN: each logon failure (with the failures of the account), the
rejection (reason: failure in the domain, without domain, max. failures),
the logon failure of a host that is not gated (skipped in the next scans).
- DEBUG: the host that checks them, errors without a decision, a host
skipped after its own failure.
Report / ReportUngated get the host (and its challenge) for the log. Tests
check the messages and that the password is never logged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Host skipped after its own logon failure showed "rejected on another host" (K12)
A host that is not gated (workgroup computer, local account) is skipped in
the next scans after its own logon failure (J2). Its row showed the same
text as a host skipped by the rejection on the domain hosts: "rejected on
another host" - wrong for this host. The text (and the documented
WindowsError -1) now names both cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: IP Scanner: Windows host information after the review of the lockout protection (K13)
- Changelog: the entry names what the lockout protection does now (only a
host in the domain accepts, failures counted per account for all tabs,
Max. logon failures, local accounts with the computer name, log file).
- Options menu: Read Windows host information (beta); credentials set
again are checked again, the failures of the account stay counted.
- NetApi step: also the credentials of the tab.
- Workgroup computers / local accounts: the sentence about hosts without
NTLM names no longer splits it (K1 put it between the statement and its
explanation).
- Comments of the gate in the tab / options: failures per account.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: FAQ: Windows account lockout protection of the IP Scanner (K14)
The lockout protection grew too detailed for a note in Read Windows host
information. New FAQ page that explains it: why it is needed, how one host
checks the credentials, which result accepts / rejects them (table per
host in / outside the domain / without domain), when a host is in the
domain of the credentials, why successes elsewhere and unknown errors don't
accept them, how the failed logons are counted (per account, Max. logon
failures, reset, checked once when set again), what happens after a
rejection, which hosts are not gated, what is logged, what is not covered
and recommendations.
The IP Scanner page keeps a short summary and links to it (also from the
Options menu and Max. logon failures).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Hosts that are not gated could send the Windows credentials to the domain controller (K15)
Workgroup computers and local accounts are not gated: they use the
credentials in parallel, a failure only counts on the host. But a host
whose DNS name matched the full name it sends in the NTLM challenge (e.g. a
NAS "nas.home.lan") was asked by its hostname: Windows can then use
Kerberos and first asks the KDC of the credentials (e.g. CORP\admin) for a
ticket - a wrong password counted at the domain controller for every such
host, in parallel and without limit.
A host that is not gated is always asked by its IP address (NTLM only),
the hostname (Kerberos) only for gated hosts and without credentials.
Found by the independent review of the lockout protection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Lockout protection of the Windows credentials only per tab (K16)
The turn (one host checks the credentials at a time) and the rejection
were per gate, i.e. per tab; only the logon failures were shared (K4).
Several tabs with a wrong password (e.g. Scan profile for 5 profiles of a
group) checked it at the same time - 5 tabs, 5 failed logons at once - and
every new tab tried a rejected password again. "CORP.example.com\admin"
and "admin@corp.example.com" were also counted as two accounts.
The state is kept per account (domain\user, the UPN suffix as domain) for
all gates until the application is closed:
- One turn per account: one host of all tabs checks them at a time.
- A rejected password stays rejected: a gate with it starts rejected
(also takes a rejection by another tab while it waited). A gate with
another password (e.g. corrected in the profile) or with credentials the
user entered (Set Windows credentials..., Scan as..., also unchanged)
checks them again.
- To recognize a password without keeping it: a keyed hash (HMAC-SHA256,
random key per start of the application) in memory only; the password is
copied to a pinned buffer that is zeroed right away.
Found by the independent review of the lockout protection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Samba / NAS members of the domain accepted unchecked Windows credentials (K17)
A success on a host in the domain of the credentials accepted them for
all hosts. A Samba server or NAS that is a member of the domain and maps a
wrong password to guest ("map to guest = bad password") answers a wrong
password with a success: all domain hosts then got it in parallel.
Only a Windows host (build in its NTLM challenge; Samba / NAS devices send
none or 0) accepts them; a success on another host is used by this host
only, the next host checks them. A logon failure on such a host still
rejects them.
Found by the independent review of the lockout protection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: ERROR_GEN_FAILURE of a host let the next host try the Windows credentials (K18)
Every exception of the NetApi call became ERROR_GEN_FAILURE (31), which was
in the list of errors without a logon decision - also a 31 that a host
returned after the logon (e.g. NT_STATUS_UNSUCCESSFUL of Samba): the next
host checked them, a failed logon would not be counted.
The call reports to the lockout protection only if the requests were sent
with the logon; a call that didn't send them (e.g. the logon was disposed,
the local logon of a host failed) reports nothing (not decided, the next
host checks them; the row still shows the error). 31 is no longer in the
list, so a 31 of a host counts as a logon failure.
Found by the independent review of the lockout protection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: No stop after the Windows credentials were accepted (K19)
After a host accepted the credentials, the other hosts used them in
parallel without reporting their result: a failed logon in the domain
later in the scan (the password was changed or expired, the account was
locked, or the accept was wrong) didn't stop the hosts that didn't start
yet - all of them tried a wrong password.
Gated hosts that use the accepted credentials report their result
(ReportAccepted): a logon failure on a host in the domain of the
credentials rejects them (counted, shared with the other gates of the
account, Rejected event, logged); the hosts that didn't start yet skip
them (at most 16 run at the same time). Failures on hosts of other
domains don't (expected also with a correct password, e.g. a domain that
is not trusted).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: FAQ: A spoofed accept of the Windows credentials is stopped by the next failure (K20)
With K17 / K19 a host that pretends to be in the domain must also look
like a Windows host, and the next failed logon in the domain stops the
credentials again - only the hosts that already started (max. 16) still
try them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: Reusable TagTextBlock style for the Beta label and the ICMP label of the Ping Monitor (K21)
The Beta label (K10) was an accent badge of its own, the Ping Monitor shows
the protocol of a host (ICMP) as accent text on a gray background - two
looks for the same kind of label. New style TagTextBlock (based on
AccentTextBlock: Gray8 background, padding 5, centered) for both; the
label in the Options menu of the IP Scanner with less padding (height of a
menu item).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Beta label not centered next to Read Windows host information (K22)
On the settings page, the Beta label was aligned to the top of the whole
toggle switch (header and switch) and is higher than the header text, so
it was not centered on the header line. It is in the header of the toggle
switch now, centered next to its text (padding of the menu label).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Settings: Remove the Experimental features setting (K23)
Settings > Update had an Experimental features switch that no feature
reads any more. Features in testing are marked per setting with a Beta
label now (e.g. Read Windows host information of the IP Scanner, see K10).
Removed the setting (SettingsInfo / GlobalStaticConfiguration), its view
model property, the Experimental section of the settings page, its
English strings (translations come from Transifex) and the docs section.
An existing value in the settings file is ignored when it is loaded and
dropped when the settings are saved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: An exception of the NetApi call rejected correct Windows credentials (K24)
Since K18, every exception after the requests were sent was reported to
the lockout protection as ERROR_GEN_FAILURE (31), which counts as a failed
logon. An exception after NetServerGetInfo succeeded (e.g. while reading
the workgroup or the users) rejected correct credentials on a host in the
domain - for all hosts, the next scans and new tabs of the profile.
A host reports a failed logon as an error code, never as an exception: a
call that ended with an exception reports nothing to the lockout
protection (not decided, the next host checks them; the row shows the
error). A 31 returned by a host still counts.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: "Logon failed" message after a scan without Windows credentials (K25)
The message that the Windows credentials were rejected was shown when any
scan of the tab completed, also a scan that didn't use them: e.g. a new
tab of a profile whose password was rejected before (its gate starts
rejected, K16) showed "The logon ... failed" after a scan with Read
Windows host information turned off - no logon at all.
Only the completion of a scan that used the credentials (Read Windows
host information enabled) shows it; a rejection reported after the scan
still shows it (K6).
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: OS column sorted by the untranslated name of the guess (K26)
The OS column is sorted by OSName: the Windows version, otherwise the name
of the guess value ("LinuxUnix", "NetworkDevice", "Windows"), while the
cell shows the translated name (e.g. "Netzwerkgerät") - in another
language the order didn't match the shown text.
OSName uses IPScannerHostInfo.OSGuessToString (the Models project has no
translations), set by the IP Scanner to the same translation as the cell.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Logged-on users computed once per host (K27)
WindowsUsers joined the users on every read; the Logged-on users column
is sorted by it and the search reads it for every row (also again with
live filtering). Computed once when the Windows host information is set,
like WindowsOS.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Password entered in the Windows credentials dialog not disposed (K28)
Set Windows credentials... and Scan as... copy an entered password into
the credentials of the tab, but the SecureString of the password box
stayed in memory until it was finalized - every other copy of the password
is disposed (G8).
The dialog disposes the entered password after OK (the credentials have a
copy) and on Cancel, not the password of the credentials it was opened
with (owned by the caller).
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: Remove the Windows XP / Server 2003 names that can't be read (K29)
The Windows host information only sends an SMB2 negotiate (2.0.2 - 3.1.1)
and reads the NetApi / registry after an SMB2 answer. Windows XP and
Server 2003 only know SMB1: no version is ever read for them, the names
for 5.1 / 5.2 were dead code that suggested support the feature doesn't
have. Vista / Server 2008 (SMB 2.0.2) and later stay.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: IP Scanner: One method to open a tab for a profile, also for Scan as... (K30)
Scan as... repeated the code of AddTab(ProfileInfo): the SNMP version and
credentials of the profile / group and the names of the SNMP / Windows
credentials sources. Both use AddProfileTab now, with the Windows
credentials, whether they are the ones of the profile / group (shown as
the source) and whether the user entered them.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Changelog 2023.11.28.0 linked to the removed Experimental features setting (K31)
The changelog of 2023.11.28.0 linked to
/docs/settings/update#experimental-features, removed with the setting
(K23) - the website build fails on broken anchors (onBrokenAnchors:
throw). Links to the page, with a note that the setting was replaced by
the Beta label.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Windows credentials set after the tab was closed (K32)
Set Windows credentials... didn't check if the tab was closed while the
dialog was open (OnClose disposed the password of the tab): OK with
unchanged credentials created a new lockout protection whose password
fingerprint read the disposed password (ObjectDisposedException in the
fire-and-forget task); changed credentials stayed on the closed tab with
their password copy never disposed.
After the dialog, a closed tab ignores the credentials and disposes the
password of new ones (like the confirmation of a scan).
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Hosts of other domains could reject correct Windows credentials first (K33)
Whichever gated host got the turn first checked the credentials. If the
first hosts of a scan were in a domain that is not trusted (a logon
failure also with a correct password), Max. logon failures (default 2)
rejected correct credentials before a host of their domain checked them -
for all hosts, the next scans and (K16) every tab with this password.
A host of another domain (or without NTLM values) first waits up to half
of its time for the decision of a host in the domain of the credentials,
then checks them itself (e.g. no such host in the scan). Not for
credentials without domain (no host is in their domain).
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: Windows credentials with another UPN suffix were never accepted (K34)
Credentials were only accepted on a host whose NetBIOS / DNS domain or
forest matched the domain of the credentials. With a UPN suffix that is
not a domain name (e.g. admin@company.com for corp.local - common), no
host was ever "in the domain": the gated hosts stayed one at a time for
the whole scan and most of them were not tried (waited longer than twice
the timeout); with K33 every host also waited first.
For a UPN, a Windows member of a domain accepts them too (it passes the
UPN to its domain controller; a Windows member doesn't log a wrong
password of a domain account on as guest - Samba / NAS still don't
accept, K17), it doesn't wait for the domain (K33), and a logon failure on
it after the accept stops them (K19). Credentials without domain stay one
host at a time (local accounts of the same name, documented).
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: IP Scanner: NetApi errors shown as "Unknown error" (K35)
WindowsHostInfo.GetErrorMessage used Win32Exception, which only knows the
messages of the system. The NetApi errors (NERR_*, 2100 - 2999, e.g. 2114
NERR_ServerNotStarted, 2102 NERR_WkstaNotStarted - both in the list of the
lockout protection) are in netmsg.dll: the row details and the log showed
"Unknown error (0x842)".
NERR errors are read from netmsg.dll (loaded once as data file,
FormatMessage), otherwise (or if not found / not on Windows) the message
of the system as before.
Found by the final code review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Max. concurrent Windows host information threads configurable
The max. number of hosts whose NetApi requests run at the same time (was a
constant 16) is a setting now (default 16, 1-64). The slots stay shared by all
scans; the limit is passed with every request, so a changed value applies to
the next requests while blocked calls of earlier scans still count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Feature: IP Scanner: Windows 11 26H2 (build 26300) and 26H1 (build 28000)
26H2 was shown as "Windows (build 26300)". 26H1 only ships on new devices
with new chips (e.g. Snapdragon X2). The host info tests used 28000 as an
unknown newer build, now 29000.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Nov 8, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mergify Bot
pushed a commit
that referenced
this pull request
Nov 8, 2026
* Export: shared field list and CSV / XML / JSON writer (E1)
Every export defines its columns once as ExportField<T> and is written by
one generic writer (ExportManager.Export<T>), which also holds the common
format rules (invariant culture, RFC 4180 quoting, dates, MAC addresses,
lists, JSON types). Lookup (OUI / Port) uses it first, output unchanged.
Adds ExportTestHelper and tests for the format rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: WiFi uses the shared writer (E2)
WiFiNetworkExportField removed, list renamed to WiFiNetworkInfoExportFields.
JSON: bools and numbers native, XML: time spans like CSV, CSV: invariant
culture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: IP Scanner uses the shared writer (E3)
GetFields / GetFieldNames / ExportField replaced by
GetIPScannerHostInfoExportFields(options) (the header no longer needs a
placeholder host). The port fields are defined once (PortInfoExportFields,
ExportList). Ping time as number (ms), time / TTL / bytes empty without a
reply. Tests moved to Tests/Export, new tests for ping values and ports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Port Scanner uses the shared writer (E4)
Change is empty (JSON null) without a change, like IP Scanner / WiFi.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Ping Monitor and Traceroute use the shared writer (E5)
Times as number (ms), time / TTL / bytes empty without a reply, like the
IP Scanner. Ping Monitor hostname quoted in the CSV file. Tests added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Network Interface uses the shared writer (E6)
MAC address as AA:BB:CC:DD:EE:FF (JSON: no longer {}), status as text,
DHCP lease in the common date format (empty without DHCP), lists with
"; ", name / description / DNS suffix quoted, new Profile column. Empty
lists are empty values in all exports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: DNS Lookup and SNTP Lookup use the shared writer (E7)
DNS Lookup text quoted in the CSV file (TXT records with commas). SNTP
offset / round trip delay as numbers (s / ms) with a decimal point.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Connections, Listeners and Neighbor Table use the shared writer (E8)
Neighbor Table MAC address as AA:BB:CC:DD:EE:FF like shown in the grid.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Discovery Protocol uses the shared writer (E9)
Text quoted in the CSV file. Management, ChassisId, LocalConnection and
LocalInterface (shown, not exported) appended.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: IP Geolocation, Hosts File Editor and Firewall use the shared writer (E10)
IP Geolocation: latitude / longitude with a decimal point, text quoted.
Hosts File Editor: hostname / comment quoted. Firewall: output unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Subnet Calculator, Bit Calculator and SNMP use the shared writer (E11)
Bit Calculator values with a decimal point, SNMP data quoted. All
exports now use ExportField<T> and the shared writer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Ping: remove unused disableSpecialChar parameter of TimeToString
Only the exports used it, they export the time as number now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: export format (E12)
New FAQ page with the format shared by all exports (columns, empty
values, numbers / units, dates, MAC addresses, lists, CSV quoting).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: columns in a logical order instead of append-only (R0)
Columns may be reordered so related values are next to each other (like
shown in the tool); scripts read them by name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Network Interface columns in the order of the details (R1)
Profile after Speed instead of at the end, IPv6 link-local before the
IPv6 address.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: WiFi columns in the order of the grid (R2)
Network, security, channel, signal, access point, other values, change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: IP Scanner columns grouped by topic (R3)
Host, ping, port scan, NetBIOS, web page, SNMP, Windows, change since
the previous scan - instead of new columns appended at the end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Discovery Protocol columns in the order shown (R4)
Management and ChassisId after IPAddress instead of at the end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Firewall columns in the order of the grid (R5)
IsEnabled first (like the Hosts File Editor), address before port,
program after the remote port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: same geolocation columns in IP Geolocation and Traceroute (R6)
IP Geolocation in the order shown (Query / Reverse before the network,
Hosting / Proxy / Mobile like Traceroute). Traceroute exports the region
name shown in the grid in addition to the region code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Ping Monitor columns like the IP Scanner ping (R7)
Status, time, TTL, bytes instead of bytes, time, TTL, status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Changelog: breaking note for the exports
General note that exports changed and scripts should be checked (read
columns by name), tool entries merged and in application order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Changelog: link the export entries to #3696
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Grid order: shared CollectionViewExtensions (G1)
GetItemsInViewOrder / GetSelectedItemsInViewOrder (filtered, sorted,
grouped) replace the own helpers of WiFi, IP Scanner and Port Scanner.
Tests run on Windows only (WPF), the test project uses WPF now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Connections, Listeners and Neighbor Table in grid order (G2)
Exports the rows shown (search) in the order shown, selected rows in
the order shown; the file is written in the background.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Firewall and Hosts File Editor in grid order (G3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: DNS Lookup, SNTP Lookup and SNMP in grid order (G4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Lookup (OUI / Port) and Subnet Calculator in grid order (G5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: Traceroute in grid order (G6)
Hops in the order shown (sorted by hop), also the selected hops.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: export of the results shown in the order shown (G7)
Export rows of the tools link the export format, FAQ explains which
results are exported, WiFi columns in the new order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Normalize line endings of ExportManager.IPScannerHostInfo.cs
A lone CR at the end of the file (no final line break) prevented git from
normalizing it, so it was stored with CRLF since E3. Content unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: SNTP Lookup offset and round trip delay cut off (review #2)
Both were calculated with integer (long) division: the offset in whole
seconds, the delay in whole milliseconds. Now double, rounded to 1 ms /
0.01 ms. Converter names match their type (Double...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: export dates are local time, SNTP Lookup in UTC (review #1)
The SNTP Lookup times are UTC (also in the grid); the export format said
local time for all dates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Grid order: one call for Export... > All / Selected (review #5)
GetItemsInViewOrder<T>(all, selectedItems) replaces the copied
ExportAll ? ... : ... block in 15 view models.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Ping Monitor: export in the background (review #6)
The history was added on the ping thread while the export copied it on
the UI thread (List not thread-safe). It is updated in the dispatcher
callback now (after the session check), the export copies it and writes
the file in the background like the other tools.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: SNTP Lookup local time in the DST hour, socket of failed requests (final review #1, #2)
DateTime.UtcNow instead of DateTime.Now.ToUniversalTime() (ambiguous in
the repeated hour), UdpClient disposed also if Send / Receive throws.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* SNTP Lookup: offset with the NTP sign (final review #3)
Server time minus local time (positive if the local clock is behind), like
NTP tools and the IP Scanner WindowsTimeOffset (host minus local).
Documented in sntp-lookup.md, breaking change in the changelog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: WiFi beacon interval / uptime as numbers (final review #6)
BeaconInterval in ms, Uptime in whole seconds instead of time span text,
like every other duration of the exports (FAQ: number in a fixed unit).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: remove characters XML does not allow (final review #7)
A control character (e.g. in SNMP data) made XDocument.Save throw, so the
whole XML export failed. The XML writer removes invalid characters (valid
surrogate pairs are kept), CSV / JSON are unchanged. Test added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: export format explains empty vs. empty text in the IP Scanner (final review #5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Export: CSV ports parseable, empty values unquoted, streamed (review 3 #1, #2, #7)
- IP Scanner CSV Ports: Port/Protocol/State (service / description are
free text with / and ;), ExportList gets its CSV fields; JSON / XML keep
all fields
- An empty value stays empty in a quoted CSV column, an empty text is "",
like null / "" in JSON
- CSV written line by line with a StreamWriter
- FAQ: CSV formula warning (values are exported as they are)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* SNTP Lookup: no "-0" offset (review 3 #3)
A tiny negative offset rounded to 0 was shown / exported as -0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Grid order: selected items by reference (review 3 #4)
Two equal items (e.g. records) are still two rows; only the selected one
is returned. Test added (Windows only).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remove unused usings (review 3 #8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Nov 14, 2026
The luminance formula and the dark threshold were implemented three times (ChartColors, ThemeVariants, the theme sort in AppearanceManager), so they could drift apart and the charts could pick the light palette on a theme the rest of the app treats as dark. ThemeVariants.Luminance and ThemeVariants.IsDark(Color) are public now and used everywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Nov 14, 2026
…#8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Nov 14, 2026
…view #8) The navigation bound its background to the window background, an absolute mapped RadialGradientBrush, which was drawn again relative to the navigation (offset glow, possible seam). Transparent shows the window background. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
that referenced
this pull request
Nov 15, 2026
…l review 4 #4, #8) The sweep of all presenters of a removed item now runs in OnItemsChanged (every removal path) instead of only in RemoveItem / MonitorBreach. An item without content gets no presenter (FindChildContentPresenter can't find it, so a new one was added on every selection change). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mergify Bot
pushed a commit
that referenced
this pull request
Nov 15, 2026
* Chore: Copy Dragablz into the repository instead of the submodule The library (fork BornToBeRoot/Dragablz 5415e71, based on upstream ButchersBoy/Dragablz e493913) is now maintained in Source/3rdparty/Dragablz, flattened to one project. No demos, tests, solution or NuGet package. LICENSE (MIT) is kept, README.md documents the origin, CHANGELOG.md all changes compared to the original. Assembly, namespaces and pack URIs are unchanged. AppVeyor stamps the file version at the new path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Remove the submodule from CI, docs and agent rules AppVeyor and CodeQL no longer init submodules, README / AGENTS.md no longer clone with submodules. The rule "don't modify 3rdparty" is replaced by how to maintain the vendored Dragablz (small changes, CHANGELOG.md, keep the LICENSE) and a rule for third-party licenses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: License of ControlzEx Licenses/ControlzEx.txt contained the Dragablz license and LibraryManager linked the Dragablz license. Now the ControlzEx license (MIT, Jan Karger, Bastian Schmidt) from github.com/ControlzEx/ControlzEx (develop). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove the MaterialDesign theme and Ripple Not used by NETworkManager (MahApps theme only). Ripple was only used by the MaterialDesign theme; Dockablz.xaml was empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove DragablzWindow NETworkManager uses MahApps windows for the tab host windows. Removes the window, its icon, the window message / system command enums, the SendMessage / PostMessage imports and the window styles in Generic.xaml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove unused classes and template files HeaderedItemViewModel, TabablzItemStyleSelector, Horizontal/Vertical- PositionMonitor and HitTest are not referenced by the library or NETworkManager; Properties/Resources.* and Settings.* only contain project template samples. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Reduce the MahApps theme to the used styles NETworkManager only uses MahAppsFocusVisual, MahAppsInvisibleThumbStyle and MahAppsTabablzControlStyle (as base of DefaultTabablzControl, which sets its own ItemContainerStyle). The other styles were merged into the application resources without being used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Update the license of MahApps.Metro The license file still had "Copyright (c) 2016 MahApps"; MahApps.Metro (2.4.11, develop, master) is now "Copyright (c) .NET Foundation and Contributors". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove the remaining window-only natives (review #3) SetWindowPlacement, WINDOWPLACEMENT, RECT, SW_SHOWNORMAL and GetRawCursorPos were only used by the removed DragablzWindow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove the trapezoid offset from MahAppsTabablzControlStyle (review #4) AdjacentHeaderItemOffset=-12 belonged to the removed trapezoid tab style; without it the default tab items would overlap. NETworkManager sets 0 in DefaultTabablzControl, so no visible change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Dragablz - Mark the fork's MahApps theme fix as superseded (review #6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Feature review skill - Allow small Dragablz changes (review #2) Matches the new AGENTS.md rule: Dragablz is maintained in the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Migration steps for clones with the Dragablz submodule (review #1) Switching to a commit without the submodule aborts while the old submodule is checked out (tested). README of the folder has the steps, next-release.md an entry under Dependencies, Refactoring & Documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Reset the offered drop zone after every drag (dragablz review #1) Layout.ItemDragCompleted returned before resetting _currentlyOfferedDropZone when the item was merged (IsDropTargetFound) or its tab control had more items. A later drag could branch into that stale zone (closed window). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Skip merge targets that are hidden or closed (dragablz review #5) The merge targets are collected when the drag starts. If one of their windows closed during the drag, PointToScreen threw (no PresentationSource). GetMergeTargetScreenBounds now returns null for hidden / disconnected targets, which also excludes hidden tab controls in MonitorReentry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Insert position of merged tabs above 100 % scaling (dragablz review #2) ReceiveDrag used the difference of two screen positions (pixels) as item X / Y (DIPs). PointFromScreen converts the cursor position to DIPs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Own header items organiser per tab control (dragablz review #7) The default value of HeaderItemsOrganiser was a single HorizontalOrganiser shared by all controls (NETworkManager sets AdjacentHeaderItemOffset to the default 0, so the per-control organiser was never created). Its drag state kept the last dragged items and their window alive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Null checks in RemoveItem (dragablz review #9) InterTabController.InterTabClient can be null (binding to a view model property without a value); the items holder is an optional template part. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Null checks in the static CloseItem (dragablz review #8) Skips tab controls without template and tabs without content, and materializes the list before closing (the close modifies the items). Not called by NETworkManager, cheap to make safe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Changelog for the Dragablz tab fixes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Ignore drop zones of unloaded layouts on drop (final review #1) The offered drop zone of a layout whose window closed during the drag was still used on drop: Branch moved the item into the closed window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Clear the drag state of StackOrganiser (final review #2-#4) _siblingItemLocationOnDragStart was never cleared (kept the items of the last drag alive) and indexed without TryGetValue (KeyNotFoundException for an item added during the drag). Cleared after the drag, current location as fallback. Organisers shared by a style are harmless now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Completion of a replaced tab slide animation (final review #6) The completion of a replaced storyboard set its old target location and removed the target of the newer storyboard. It now only acts if its target is still the active one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Tab slide animation follows the Animations setting (final review #5) The tabs slid to their new position while a tab was dragged regardless of Settings > Appearance > Animations. StackOrganiser.AnimationsEnabled (set in App.xaml.cs from AppearanceManager.AnimationsEnabled) moves them directly without animations; quadratic ease-out like the other animations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Margin of the horizontal branch splitter (final review #9) Margin -3,-3 (all sides) let the splitter overlap the neighbouring branch on the left / right; 0,-3 like the column splitter's -3,0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove the unused trapezoid / sizable tab styles (final review #7) TrapezoidDragableTabItemStyle, SizableFromBottomRightDragablzItemStyle, CloseItemCommandButtonStyle and CloseCommandHighlightColor were not referenced; Trapezoid and ShowDefaultCloseButtonConverter only by them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove dead members (final review #8) ContinuationIndex, _rightMouseUpCleanUpDisposable (+ the right mouse up override that only reset it), a Debug.WriteLine leftover and the empty ItemsChanged handler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Dragablz README - generated_code only silences analyzers (final review #10) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Track and stop the tab slides per item (final review 2 #1, #2, #4) - SendToLocation compares with the target of a running slide, so a drag back to the original location during the slide is no longer ignored. - A direct placement to another location (Organise after a breach / merge) or animations off stops the running slide. - The organiser forgets removed items (ClearContainerForItemOverride), also when the drag ended with a breach or merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove more dead code (final review 2 #5-#7) FloatRequestedEvent (unused), the DragablzColors members only used by the removed DragablzWindow styles (one DWM call less at startup) and unused usings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Remove the Dragablz MahApps theme (final review 2 #8) The tab styles use the app's InvisibleThumbStyle and FocusVisual.Ring (design system focus ring instead of the dotted MahApps one). The only other effective setter of MahAppsTabablzControlStyle (Foreground) moved into DefaultTabablzControl. App.xaml no longer merges Themes/MahApps.xaml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Tidy the right click thumb handling (final review 2 #9) Call base before the await (it ran after the event was routed), restore the thumb that was disabled (local, the template can change meanwhile). The polling stays: a context menu takes the button up, a ButtonUp handler would leave the thumb disabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Organise sorts by the slide target (final review 3 #1, #4, #9) Organise(IEnumerable) sorted by X / Y, which keep the old location during a slide; since SetLocation stops a slide to another location, an Organise (measure, tab closed) during a slide restored the old order. ForgetItem is now an IItemsOrganiser method (default no-op) instead of a StackOrganiser cast. CHANGELOG no longer claims a shared organiser is state-free. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Overlapping right clicks and replaced thumb (final review 3 #2, #3) A second right click during the wait saved the disabled state and could leave the thumb disabled (no drag). The thumb is only restored if it is still the active one, otherwise it overwrote the custom thumb selection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Dragablz - Remove DragablzColors and the DWM call (final review 3 #8) WindowGlassBrush was only used for the hover background of the default add button styles (never shown in NETworkManager), but loading them ran an undocumented DWM call (dwmapi #127). Uses SystemColors.ActiveCaptionBrush. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Tab headers use the default focus visual (final review 3 #5, #6) The explicit FocusVisual.Ring setter duplicated the global default (SystemParameters.FocusVisualStyleKey in Theme.xaml). Changelog entry for the changed focus visual (was the dotted MahApps rectangle). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Tab content inherits the theme foreground (final review 3 #7, #5) DefaultTabablzControl set Foreground to the theme background (taken over from the removed Dragablz MahApps theme), so content without its own foreground was drawn in the background color. Changelog entry for the back-and-forth reorder fix (final review 2 #1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Remove the empty IsWrappingTabItem trigger from the tab item style Only contained a commented-out setter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Drag state of embedded windows from Dragablz EmbeddedWindowDragPresenter gets IsDragging from its style: the window of the tab is dragged (TabablzControl.IsDraggingWindow) or a dragged window can be dropped into its layout (Layout.IsParticipatingInDrag). Removes the five ConfigurationInfo.Is*WindowDragging flags and the two switches in DragablzTabHostWindow (set / reset on close). Differences: a single tab dragged in the main window's tab bar now also shows the placeholders of the other windows (their drop zones were active but covered); after a merge the placeholders stay until the mouse is released (before: until the dragged window closed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: Shared helpers for the tabs of a window DragablzTabItem.GetTabItems(window) and FocusSelectedEmbeddedWindow(window) replace the seven visual tree loops in MainWindow, DragablzTabHostWindow and the PuTTY / PowerShell host view models (same behaviour in the main window and the tab windows). The visual tree is kept instead of TabablzControl.GetLoadedInstances: a branch that was just created is not loaded yet, its tabs must still be closed with the window. The list is materialized, so closing tabs while iterating is safe. SetTabHeader searches all windows instead of only the active one: a tab in a tab window that is not active kept its old header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Changelog for the tab title in inactive tab windows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Drag state of embedded windows after a tab moved to another window The FindAncestor bindings of the drag state (68bc5d6) are resolved only once (BindingExpression.AttachToContext, no re-attach on a visual parent change). Tear out / merge / split move the view of a tab, so it stayed bound to the tab control and layout of the old window (wrong, or never true once that window closed). EmbeddedWindowDragPresenter now binds to the ancestors of its current place on every Loaded and clears the binding on Unloaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Revert "Fix: Drag state of embedded windows after a tab moved to another window" This reverts commit 6f802f7. * Revert "Refactor: Drag state of embedded windows from Dragablz" This reverts commit 68bc5d6. * Fix: Dragablz - Tear out only when the tab leaves the whole tab bar (HeaderPanel) With MergeTargetArea.HeaderPanel the whole tab bar accepts a dragged tab, but MonitorBreach measured against the area of the tabs. A tab merged into an empty tab bar is placed at the start, the cursor was outside of it and the tab was torn out again at once (with tabs it is placed behind the last tab, near the cursor). The breach now uses the header panel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Content of a removed tab stayed visible without its tab While an item was removed from the source, UpdateSelectedItem could create a new ContentPresenter for a stale SelectedItem (the removed item, e.g. merged and torn out again right away); RemoveItem / MonitorBreach only removed the presenter they found before. CreateChildContentPresenter skips items that are no longer in the control, and all presenters of the removed item are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Changelog - link the entries to #3717 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Stop the slide of a tab when it is grabbed (final review 4 #2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Horizontal tear out at the screen edge (final review 4 #3, #9) With the header panel as breach area, the horizontal grace (8) beyond it can't be reached when the panel ends at the screen edge (maximized window). No grace for the header panel. Renamed the mouse position variable to the breach area. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Dragablz - Remove the content presenters in OnItemsChanged (final review 4 #4, #8) The sweep of all presenters of a removed item now runs in OnItemsChanged (every removal path) instead of only in RemoveItem / MonitorBreach. An item without content gets no presenter (FindChildContentPresenter can't find it, so a new one was added on every selection change). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: GetTabItems is lazy again (final review 4 #7) SetTabHeader stops at the first match (scan start), OnClosing materializes the list itself before closing the tabs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Closing a tab window reset the drag state of another window (final review 4 #1) OnClosing always set Is<Tool>WindowDragging to false, also when another window of the tool was dragged (e.g. this one closed because its last session ended): the embedded windows covered the drop zones again. Only reset it if this window is dragged (closed while merged). OnClosing materializes GetTabItems before closing the tabs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
BornToBeRoot
added a commit
to MovGP0/NETworkManager
that referenced
this pull request
Nov 19, 2026
…nd run command (final review BornToBeRoot#8) The input of the tool and the run command built the same list (* first, then the profiles by name with their service types) separately. InputSuggestions.GetMDNSDiscoveryServiceTypeProfiles provides it for both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mergify Bot
pushed a commit
that referenced
this pull request
Nov 21, 2026
* Add mDNS and DNS-SD service discovery browser * Feature: mDNS / DNS-SD - Own tool icon (M0) Radar is the icon of the Ping Monitor. SatelliteDish (lucide-static 1.71.0) is used by no other tool. The empty states show the tool icon like the other tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: Settings upgrade - Steps of the latest version to 2026.11.15.0 (M1) 2026.11.15.0 is the latest stable release: its steps (RDAP, scanner defaults, DNS servers, port profiles, ...) move to UpgradeTo_2026_11_15_0. UpgradeToLatest only adds the mDNS / DNS-SD application (inserted at its default position like RDAP before). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Position after Discovery Protocol (M2) The application was appended after the obsolete ARPTable, so it was the last tool in the navigation. The enum is stored by name, so it can be moved. Docs: sidebar position after Discovery Protocol (was the same as PuTTY), the tool list of the website and the run command table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - Ignore the TC bit of responses (M3) Responses with the TC bit were dropped completely. RFC 6762 18.5: the TC bit must be ignored on reception of multicast responses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - Socket errors no longer end the browse (M4) - SIO_UDP_CONNRESET off: Windows reports an ICMP port unreachable as a connection reset on the next receive of an UDP socket - Transient receive errors (connection / network reset, message size) only lose that datagram - A failed send (e.g. network temporarily unreachable) skips the question, it is asked again later - One address family that can't be opened or whose receiver failed no longer ends the browse; it fails only if all of them failed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS / DNS-SD - Cache work per packet and per tick (M5) - Every packet searched the whole cache twice (expire, cache flush) - up to 512 packets x 4096 records per tick on a busy network. The cache keeps the keys per RRset for the cache flush, expired records are removed once per tick. - A snapshot (services + records) was created every 250 ms even if nothing changed. Now only if the cache changed (Version), otherwise once per second for the TTL countdown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - Live filtering while searching (M6) While searching, the services were filtered again with a Refresh (reset) on every flush (4 times per second): the grid re-sorted all rows and could lose the selection, the expanded details and the scroll position. Like the IP Scanner: live filtering on the properties that arrive later (hostname, port, addresses, TXT records), only while searching. A row raises only its changed properties (not all every second for the TTL). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS / DNS-SD - Large changes with one reset (M7) The snapshots were merged row by row into the sorted views. With up to 4096 records (e.g. the first snapshot on a busy network) WPF inserts every row with a linear search. Like the Port Scanner: one by one up to MaxRowChangesOneByOne (changed rows x all rows), above with one ReplaceAll. Services and records share the merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Keep browsing when the tool is hidden (M8) Discovery stopped when another tool was selected. Like the IP Scanner, Port Scanner and Discovery Protocol it now continues in the background (until the duration expires or Stop is pressed); the results are updated while it is hidden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - Copy line breaks and stable record limit (M9) - Copy of services mixed \n and Environment.NewLine - The 4096 rows of the Records view were taken in the order of the dictionary, so rows could appear and disappear between snapshots Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Layout, status messages and code like the scanners (M10, M11, M12) Layout (IP Scanner / Port Scanner): - Header and one input row: interface (+ reload), service type, duration and the Browse / Stop button (ImageWithTextButton, Play / X, disabled while the service type is invalid or while stopping) - Duration is a drop-down like the Discovery Protocol: 10, 30, 60, 120, 300 s or Until stopped (was a number field whose right border was hidden by the button) - Progress bar of the duration (indeterminate: until stopped / stopping) - The status message (and its icon) is only shown when there is one - Result header with Last scan at and the search, counters (services, records) below it; empty states only after a browse - Context menus on the rows: Copy... (submenu with icon) and Export..., copy works on all selected rows in view order; no extra Export button Status messages: canceled by user (stopped before the duration expired) and errors, like the scanners. The texts for browsing / completed / stopped are removed (progress bar, Last scan at). View model: regions, XML docs, command / CanExecute pattern, export and status handling like the Port Scanner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Chore: mDNS / DNS-SD - Settings at the position of the tool (M12) The settings were at the top of SettingsInfo (before PropertyChanged) and between Connections and Listeners in GlobalStaticConfiguration. Both after the Discovery Protocol now, in the format of the other settings. XML doc for the documentation identifier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Update GlobalAssemblyInfo.cs * Feature: mDNS / DNS-SD - One result instead of tabs (M13) The result had a tab control (Services / Records), used nowhere else below the input of a tool. The services are the result; the raw DNS records (also of other owners and unknown types) are shown instead with the checkbox Raw DNS records in the header, like the raw JSON of the RDAP. Export follows what is shown. Columns like the other grids: MinWidth instead of a fixed width, the last column (IP addresses / value) fills the remaining width with a MinWidth. TTL moved before the IP addresses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Logging of a browse (M14) Start (interface, service type, IPv4 / IPv6) and a summary at the end: packets processed, without records (queries of other hosts, invalid), dropped (busy link) and records not cached (cache full), to diagnose "no services found" from the log. Warning once when the cache is full. MaxRecords instead of the repeated 4096. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - Query of a name with an escaped dot at the end (M15) CreateQuery removed all trailing dots (TrimEnd), also an escaped one of the last label (a\.. = label "a."): that label was never written and the question asked for a different name. A name ending with a backslash was not rejected either. Only an unescaped final dot is handled now, an unterminated label throws. Found by the new tests (M16). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test: mDNS / DNS-SD - Parser, cache, questions and rows (M16) - CreateQuery: empty / too long labels and names, open escapes, escaped final dot - ReadResponse: queries / other opcodes / errors ignored, other classes, wrong address length, scope of link-local IPv6 addresses - Cache: counters, full cache (new records ignored, cached ones refreshed), question backoff to 60 s, refresh before expiry, no address questions outside .local, stable record order, version on cache-flush change, unescaped service names - Rows: UpdateFrom raises only the changed properties Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Pause a browse until stopped while hidden (M17) A browse with a duration is a scan that ends by itself and continues in the background (M8). A browse until stopped never ends: it is paused while another tool is shown, like the auto refresh of other tools, and resumed when the view is shown again. The browser continues with the cache of the browse, so the rows are kept, records that expired during the pause are removed and the due questions are sent right away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Update GlobalAssemblyInfo.cs * Feature: mDNS / DNS-SD - Reload animation of the interface refresh (M18) Like the other refresh buttons (e.g. WiFi adapters): the reload takes at least ApplicationUIRefreshInterval (in the background), the icon spins meanwhile and the reload / browse can't be started again. The initial load and the reload when the view is shown stay immediate (a run command can browse right after). A reload that finds an interface again removes the no-interface / failed message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Browse several service types (M19) The cache and the browser took one service type (or *). They take a list now (e.g. the types of a service type profile, M20): a PTR question per type, services of all of them; * includes the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Service type profiles (M20) Like the port profiles of the Port Scanner: named lists of service types (e.g. Printers = _ipp._tcp; _ipps._tcp; ...) in the new settings page mDNS / DNS-SD (add / edit / delete, F2, Del, double-click). The name can be entered in the service type input (M21), so it must be unique, without ";" and must not be * or a service type. Default profiles for new installations; missing ones are added on upgrade. Settings for the service type history (M21). Docs: settings section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Service type input with profiles and history (M21) Like the ports of the Port Scanner: the input takes *, service types and / or service type profiles separated by ";" (e.g. "Printers; _ssh._tcp"), the list shows the history and the profiles (grouped, with their service types), Tab completes a profile name, multi-line paste is joined with ";". The input is added to the history (not a single profile name). The input and the run command use the same validator (mdns printers). A profile renamed or deleted since is reported when browsing. The fixed list of common service types is replaced (they are still probed with *). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Row details like the IP Scanner (M22) The details were shown below every selected row, unaligned (label and value in one line, TXT in a framed TextBox). Like the host details of the IP Scanner: a row is expanded with the arrow in the first column, the details have a border (highlighted when selected), a margin of 20 and two sections with a bold header: service (name, hostname, IP addresses, port, SRV priority / weight, TTL as label / value lines with a fixed label column) and the TXT records. Values are read-only text with the mono font (technical values), copy via the context menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - * as fixed entry of the service type list (M23) Since the list only shows the history and the profiles (M21), * (all service types) was only visible as default text. It is the first entry of the profiles group now, with a description, like the Windows DNS server of the DNS Lookup - not a stored profile, so it can't be edited or deleted. * is not added to the history (already in the list). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: DNS Lookup - Last column of the DNS servers (settings) fills the grid The grid had no FillRemainingWidth: the DNS servers column stopped at its MinWidth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: SNTP Lookup - Last column of the SNTP servers (settings) fills the grid The grid had no FillRemainingWidth: the SNTP servers column stopped at its MinWidth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Hosts File Editor - Last column (comment) fills the grid The grid had no FillRemainingWidth: the comment column stopped at its MinWidth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Settings > Profiles - Name of the profile files fills the grid The grid had no FillRemainingWidth. The name column fills the remaining width (IsFillColumn), not the last column (the encrypted checkbox). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Profiles - Name of the profile list fills the grid The grid had no FillRemainingWidth. The name column fills the remaining width (IsFillColumn), not the last column (the Whois checkbox). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Run command - Service type profiles of mDNS / DNS-SD as suggestions (R1) Like the port profiles of the Port Scanner: * and the service type profiles (with their service types) are suggested while the target of mdns is typed, also after a ";" of a list (e.g. printers;sca), names with spaces in quotes. Tab completes the first one. The value suggestions of the second argument and of the target share their completion (GetValueSuggestions). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: Run command - Optional duration of mDNS / DNS-SD (R2) mdns <service types|profiles|*> [duration], e.g. mdns printers 30: one of the durations of the tool (10, 30, 60, 120, 300, 0 = until stopped), validated and suggested after the target (Timer icon, like the duration of the Discovery Protocol). Without it the selected duration is used. MDNSDiscoveryRequest carries the duration; the durations are defined once (MDNSBrowser.Durations) for the tool and the run command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Message if the last used interface is not available (M24) E.g. an unplugged USB adapter: the first interface was selected silently, a run command browsed on it right away. A warning names the interface that is used instead; it is shown again by the next browse (which clears the messages, e.g. the run command right after the view was created) and removed when another interface is selected or the interface is back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - A stopped browse was resumed (review) Stop of a browse until stopped, then another tool selected before the browse ended (IsCanceling): OnViewHide marked it as paused, so it was resumed when the tool was shown again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS / DNS-SD - One unreadable interface failed the interface list (review) GetIPv4Properties / GetIPv6Properties can throw for single (virtual) adapters; the whole list failed with an error. The interface is skipped (logged). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: mDNS / DNS-SD - Copy of the full name, raw DNS records (review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS / DNS-SD - Rename to mDNS Discovery The tool names describe the function (IP Scanner, DNS Lookup, ...); "mDNS / DNS-SD" was jargon. "mDNS Discovery" matches the internal name (MDNSDiscovery), the run command (mdnsdiscovery) and the docs URL (mdns-discovery). DNS-SD stays in the docs text, keywords and the dnssd alias. Only the English string is changed (translations via Transifex). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: mDNS Discovery - What mDNS / DNS-SD is, screenshot Like the other tools: an info box that explains the protocols independently of NETworkManager (mDNS: .local names via multicast on UDP 5353, caching, TTL / goodbye / cache flush, link-local scope; DNS-SD: PTR / SRV / TXT / A / AAAA, service type enumeration, Zeroconf implementations and typical uses), and a screenshot of the tool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - A PTR owner name with another spelling ended the browse (final review #1) The instance name was cut by the length of the PTR owner name as received, the match used the normalized type (trimmed, .local. added). An owner like " _ipp._tcp.local." (spaces are allowed in a label) threw in GetServices and ended the browse; "_ipp._tcp." gave a garbled name. The name is cut by the normalized type, which is also shown as service type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Run command ignored while a pause was ending (final review #2) A browse until stopped was paused (tool hidden) and a run command opened the tool before the pause had ended: the resume (OnViewVisible) and the run command waited for the same browse, the resume won and restarted the old browse, the run command saw IsRunning and did nothing. The request cancels a pending resume first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Browse error removed when the tool was shown again (final review #3) Loading the interfaces (every time the tool is shown) removed every message that started with the failed text - also the error of a browse (e.g. UDP port 5353 can't be used), the empty result had no explanation anymore. Only the error of the interface load itself is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: Profile names with leading / trailing spaces were not duplicates (final review #4) IsNameUnique compared the untrimmed names, while the names are found trimmed (NamedReferenceInput.FindByName) and mDNS profiles are saved trimmed: "Printers " passed next to "Printers" and could never be used (the first one is found). Shared validator of the port profiles, DNS / SNTP servers and mDNS service type profiles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Changelog - Duplicate custom DNS server names (Settings > Network) (final review #4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Fewer repeated questions (final review #5) Questions backed off only to 60 seconds and answered questions were asked again on that interval (also records with a TTL of 75 minutes): with * and 100 services about 800 packets per minute, each answered by multicast. Like RFC 6762 5.2: the interval doubles up to 60 minutes; an answered SRV / TXT / A / AAAA question is only asked again from 80 % of the TTL of its records (also if it was scheduled before the answer arrived), a PTR question (new instances can appear) on its interval, but before its records expire. Known-answer suppression / several questions per packet are not done yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Identity computed once, expire once per tick (final review #7) - MDNSRecord.Identity (part of the cache key) hashed the TXT / raw data with SHA-256 on every access - 1 to 2 times per record of every packet. The record doesn't change: computed once. - The browser and the Get methods expired the cache 4 times per tick (full scans) with the same time; the repeats are skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: mDNS Discovery - Screenshot with the new name Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refactor: mDNS Discovery - One list of * and the profiles for input and run command (final review #8) The input of the tool and the run command built the same list (* first, then the profiles by name with their service types) separately. InputSuggestions.GetMDNSDiscoveryServiceTypeProfiles provides it for both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Reload the interfaces in the background when shown (final review #9) Every time the tool was shown, the interfaces were loaded on the UI thread (IP properties of every adapter - slow with many virtual adapters). The reload when shown again runs in the background (no reload animation); a browse started meanwhile (run command) keeps its interface. The first load (constructor) stays synchronous: a run command can browse right after the view was created. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS Discovery - Smooth scrolling like the IP Scanner The services and the raw DNS records scrolled by row (an expanded row jumped as a whole). Like the IP Scanner and Port Scanner: row virtualization with recycling and scrolling by pixel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Feature: mDNS Discovery - Sample data in the screenshot mode Like the dashboard (--screenshot): a sample interface (Ethernet) instead of the real adapters, and sample services of a home network (printer with IPP / IPPS / eSCL, NAS, TV, speaker, router, smart light; 192.168.1.0/24, fe80::, .local) with their DNS records (PTR, SRV, TXT, A, AAAA, service type enumeration) - shown when the tool is opened and on Browse, without a browse (no sockets, settings or history changed). No warning about the last used interface for the sample interface. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Update image * Fix: mDNS Discovery - Browse resumed while the tool was hidden (critical review #3) A browse until stopped was paused (tool hidden), the tool shown (resume waits for the pause to end) and hidden again before: OnViewHide returned early (stopping), the resume then started the browse while the tool was hidden. The resume is only done while the view is shown; otherwise it stays paused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Interface dropped if one address family can't be read (critical review #7) GetIPv4Properties / GetIPv6Properties were read in one try: an exception of one address family (e.g. IPv6 partly configured) skipped the interface, also its working other family. They are read on their own; the interface is skipped only if no family can be used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Escaped dot before the type taken as separator (critical review #5) A PTR target "x\\._ipp._tcp.local." (labels "x._ipp", "_tcp", "local") ended with "._ipp._tcp.local." and was shown as instance "x\\" of _ipp._tcp (with questions for it). The dot before the type must be unescaped (even number of backslashes before it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Full cache hid the browsed services (critical review #1) The limit of 4096 records applied to all records of the link (reverse names, other services, PTR TTL 75 minutes): on a busy network the SRV / TXT / address records of the browsed services were not cached anymore, the services had no hostname / port / address or were missing. A full cache still takes the records of the browsed services (PTR of a browsed type, SRV / TXT of its instances, A / AAAA of their hosts), up to twice the limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - One label that is no UTF-8 text dropped the whole packet (critical review #2) A label with invalid UTF-8 (e.g. Latin-1 of an older device) or a control character rejected the whole response: the valid records of other services in the same packet were lost. Such a label is kept with its bytes in the presentation format (\\DDD, RFC 1035); CreateQuery reads \\DDD back, so the questions for the instance ask for the same bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: mDNS Discovery - Windows Defender Firewall prompt on the first browse The prompt appears on the first browse (UDP 5353 is received). If it is canceled or the network type isn't allowed, a block rule makes the browse find nothing without an error: how to allow NETworkManager again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Full cache: only hosts of browsed services (targeted review #1, #2) The hosts whose addresses are cached in the extra room of a full cache were the targets of all SRV records (also of services that are not browsed, cached earlier or in the packet): other traffic could still fill it. The set was also rebuilt over the whole cache for every packet. The hosts of the browsed SRV records are counted in Set / Remove; only the packet's browsed SRV records are read per packet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Escaped dot before local. of an SRV host (targeted review #4) The .local check of the SRV host was a plain EndsWith: "host\\.local." (one label under the root) passed and its addresses were asked by multicast. Same unescaped-dot check as for the instance names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - CreateQuery: lone surrogates and \DDD above 255 (targeted review #5, #6) - A lone high surrogate took the next character (also a "." separator or a "\" escape) into the label; a lone surrogate is now invalid. - \DDD above 255 was read as the digits instead of being rejected (RFC 1035); now an invalid name like the other errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Address list of an interface outside the try (targeted review #7) The per-family fix moved the enumeration of the unicast addresses out of the try: an exception there failed the whole interface list again instead of skipping the interface. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Instance names with byte escapes shown as text (targeted review #3) The Name column only undid the escaped dot and backslash: a name kept as bytes (\DDD, e.g. Latin-1 of an older device) was shown as "B\252ro" and couldn't be told apart from a name with a backslash. The escapes are read back to bytes and decoded as UTF-8, otherwise Latin-1 ("Büro"); names with control characters stay escaped. The full name, hostname and raw records keep the escaped technical name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Raw DNS records of browsed services cut off (release review B2) The cache holds up to 2 x MaxRecords records (records of the browsed services above MaxRecords), but the raw DNS records were cut at MaxRecords rows in key order: on a busy link the PTR / SRV / TXT / address rows of a listed service could be missing from the view and the export. The rows are now limited to MaxRecordRows (= what the cache can hold); above, the records of the browsed services are kept first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Cache flush of a record that is not cached (release review B3) The old values of a cache-flush RRset were set to expire before the new records of the packet were checked against the cache limit: with a full cache, a host that announced a new address lost its old one after one second and the new one was not cached. The old values are now only flushed if a new record of the RRset was cached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Names compared with Unicode case folding (release review B4) DNS names only compare ASCII letters case-insensitively (RFC 4343, RFC 6762 16), other characters of UTF-8 labels exactly. The cache keys used ToLowerInvariant and the lookups / rows OrdinalIgnoreCase, so two devices "Büro" and "BÜRO" were merged into one service, and the Kelvin sign or a dotless i matched "k" / "i" (also in a service type, e.g. "_Kerberos._tcp" was taken as "_kerberos._tcp"). New DNSNameComparer (ASCII case only) for the keys, lookups, the service type and the rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Fill in of the run command stopped the browse (release review B1) A request that only fills in the input (run command Shift+Enter, Start = false) stopped a running browse and nothing was started again. The request is now kept and filled in when the browse has ended (also a browse until stopped that is paused while the view is hidden); a later request that starts a browse replaces it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Several questions per packet and known answers (release review P1) Every question was sent as its own packet (up to 256 per tick and address family) and PTR questions were repeated without known answers, so every responder sent all its instances again on each repeat. The questions of a tick are now combined into packets of up to 1232 bytes (minimum IPv6 MTU, no fragmentation) with compressed names, and each PTR question carries the cached instances with more than half of their TTL left (known-answer suppression, RFC 6762 7.1). Known answers that don't fit with their question alone are left out (answered as before). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Oversized packets and raw values formatted every second (release review P2) Packets of up to 64 KB were accepted, and the values of the raw DNS records (e.g. the hex of a record of an unknown type) were formatted again for every snapshot (at least once per second, also while the raw records are not shown): a single device that sends large records could use hundreds of MB and keep the browse thread busy. Packets larger than 9000 bytes are ignored (RFC 6762 17: must not exceed), also not copied by the receiver, and the type, values and IDs of the rows are formatted once per cached record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Instances and questions only rebuilt when the cache changed (release review P3) GetQuestions (every 250 ms) and GetServices rebuilt the instances (service type regex per PTR record), the wanted questions, a lookup of all records and an SRV scan over the whole cache on every call, also when no packet arrived. The instances (keys) and the wanted questions are now rebuilt only when the cache version changed, and the records of a name are read from the RRset index. Measured with 100 services and 4000 other records: 100 s of browse ticks 506 ms -> 198 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - A / AAAA record with an invalid length ended the browse (final review F1) An A record with RDATA other than 4 bytes (AAAA: 16) is kept as raw data without an address. Since the services read the addresses from the RRset index (P3), such a record of the host of a browsed service threw a NullReferenceException in GetServices and ended every browse on the link while it was cached. Records without an address are skipped again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Order of the TXT strings above the row limit (final review F2) Above MaxRecordRows, the raw DNS records were sorted by their ID ("key|index", ordinal), so the strings of a TXT record were shown and exported as 0, 1, 10, 11, 2, ... and the order changed when the limit was crossed. The rows are now ordered by the position of their record (stable, the strings keep their order), and whether a record belongs to a browsed service is checked once instead of twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - Run commands right after each other (final review F3) Two requests that start a browse (e.g. "mdns printers", then "mdns web") both waited for the running browse to end. The second one started its browse, then the first one continued: it changed the input to its service types while the second browse was running and replaced the tracked browse task with a completed one, so a third request was ignored. Every request now gets a number; after waiting, only the last one continues (also a later fill in wins over a waiting start). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - One generated regex for the service type (final review F6) TryNormalize is called for records of every packet and for the cached PTR records when the cache changed. It ran two interpreted regexes and split the name twice (consecutive hyphens, at least one letter). The rules are now one [GeneratedRegex] in RegexHelper (lookaheads for the letter and the hyphens), like the other regexes of the application. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Query packets built once (final review F5) CreateQueries built the whole packet again (all questions and known answers) for every question it tried to add, quadratic in the number of questions per packet. A QueryBuilder now adds question by question: the offsets of the question names don't change when a question is added (the known answers follow the questions and only point to them), so a question that doesn't fit is removed again. Same packets as before (compared byte by byte for 300 random sets of questions and known answers, 2114 packets). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Raw DNS records sorted only when the cache changed (final review F4) GetRecords sorted the whole cache by key for every snapshot (at least once per second, also without a change) and, above MaxRecordRows, created all rows twice and checked every record for the browsed services again. The records shown, their order and number of rows are now computed once per cache version; a snapshot only creates the rows with their TTL. Same rows as before (compared for 2401 snapshots of random caches, 2337 of them at the row limit); 13.6 ms -> 1.7 ms per snapshot in that test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: mDNS Discovery - TTL with the most significant bit set (third review G1) A TTL of e.g. 0xFFFFFFFF kept a record for about 136 years: it never expired, was never asked again and was sent back as a known answer with that TTL. Such TTLs are treated as zero (RFC 2181 8), like a goodbye. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Records of a question only read when it is due (third review G2) GetQuestions (every 250 ms) copied the cached records of every wanted question into an array before it checked whether the question was due; with * on a busy link that are thousands of arrays per tick for almost no due question. The due time is checked first (both checks only skip the question, the result is the same). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Perf: mDNS Discovery - Known answers continued in the next packets (third review G3) Known answers that didn't fit in the packet of their question were left out, so on a busy link (more than about 45 instances of a type) the devices whose answers were left out answered every question again. They now follow in packets with only known answers, with the TC bit set on every packet of the question but the last (RFC 6762 7.2), at most MaxKnownAnswerPackets (10) packets per question. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: Align with other tools --------- Co-authored-by: Johann Dirry <johann.dirry@microsea.at> Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.