Skip to content

Npcap 1.71 and later: unable to obtain DHCP lease when adapter is removed and restored #710

Description

@dmiller-nmap

Reported by a Npcap OEM licensee. If a capture handle is open, disconnecting and reconnecting a WiFi adapter appears to prevent any packets from being received by that adapter until the npcap service is restarted. Reproduction steps provided by the user:

Windows 10 LTSC 2021 VM (21H2), with Npcap 1.71.
NETGEAR - AC1200 USB adapter, but also reproduced on a laptop with built-in WiFi.

  1. Ensure WiFi adapter is enabled and associated with an access point.
  2. Launch a program that:
    • opens a pcap handle for the WiFi adapter (pcap_create)
    • activates the handle (pcap_activate)
    • sleeps forever
  3. Disable the WiFi adapter (e.g. via PowerShell Disable-NetAdapter)
  4. Enable the WiFi adapter (e.g. via Enable-NetAdapter)
  5. Re-associate with the WiFi access point

External packet capture indicates that DHCP request is sent and response is received, but Windows is unable to assign an IP address, indicating that the packet was not delivered up the stack. Interestingly, performing a netsh trace capture during the test prevented the issue from presenting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcurrentIssues with current focus by the core Npcap dev team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions