Skip to content

feat(discovery): Wizard + Invoke-NetworkDiscovery IPv6 / dual-stack scan - #71

Merged
jacobyoby merged 1 commit into
mainfrom
cursor/wizard-ipv6-discovery-af58
Sep 9, 2026
Merged

jacobyoby merged 1 commit into
mainfrom
cursor/wizard-ipv6-discovery-af58

Conversation

@jacobyoby

Copy link
Copy Markdown
Owner

Closes #61.

What

Bounded dual-stack discovery follow-on on top of Import-Inventory IPv6 (#58) and Import-NmapScan IPv6 (#69).

  • Interface selection: prefer the active default-route interface (IPv4 default if present, else IPv6). Dual-stack addresses on that interface are collected. -InterfaceName still overrides.
  • IPv4 scan: unchanged Quick / Medium / Full with the /22 cap.
  • IPv6 scan: do not sweep a /64. Hosts come from the local neighbor table (Get-LocalARPTable / ND). Optional -Cidr on the wizard enumerates only /120–/128 (≤ 256 hosts).
  • Invoke-NetworkDiscovery -Cidr: accepts IPv6. Prefixes shorter than /120 fail immediately with an actionable message pointing at Get-LocalARPTable (no multi-minute hang). Small prefixes use the same Quick/Medium/Full depths, capped at 256 hosts.
  • Wizard inventory write-out stays on the Import-Inventory dual-stack contract.

Docs

README quick-start notes dual-stack limitations, -Cidr, ND vs CIDR, and the /120 cap. CHANGELOG and comment-based help updated.

Tests

  • Existing IPv4 wizard / Invoke-NetworkDiscovery cases kept.
  • Huge v6 -Cidr throws (/64, /32) mentioning /120 and Get-LocalARPTable.
  • Dual-stack fixture path includes ≥1 IPv6 neighbor from a local neighbor-table fixture and re-imports via Import-Inventory.
Open in Web Open in Cursor 

@jacobyoby
jacobyoby marked this pull request as ready for review September 9, 2026 19:34
Prefer the default-route interface (IPv4, else IPv6) with -InterfaceName
still overriding. Keep IPv4 Quick/Medium/Full plus the /22 cap. Do not
sweep IPv6 /64s: use ND/ARP neighbors and reject oversized -Cidr values
below /120 with an actionable Get-LocalARPTable message.

Co-authored-by: Jacobrakai <jacobyoby@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/wizard-ipv6-discovery-af58 branch from afa5700 to b46a436 Compare September 9, 2026 19:37
@jacobyoby
jacobyoby merged commit c47f0a1 into main Sep 9, 2026
7 checks passed
@jacobyoby
jacobyoby deleted the cursor/wizard-ipv6-discovery-af58 branch September 9, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wizard + Invoke-NetworkDiscovery: IPv6 / dual-stack scan follow-on

2 participants