Skip to content

Npcap: Can it detect new interfaces without restarting the driver? #435

Closed

Description

@dmiller-nmap

Thread on WinPcap-users mailing list: https://www.winpcap.org/pipermail/winpcap-users/2017-January/005025.html

The user notes that WinPcap cannot detect new plug-and-play interface until the computer is rebooted. Another user comments that simply restarting the npf driver service will accomplish the same thing.

I would like to know whether Npcap has the same behavior or if this is solved with the new filter driver design. If it has the same behavior, we should investigate what it might take to detect new interfaces without restarting the driver.

Activity

  1. Varunram commented on Jan 24, 2017

    @Varunram

    @dmiller-nmap Npcap seems to react in the same way as WinPcap and doesn't notice the network interface without a restart.

  2. capt2101akash commented on Jan 25, 2017

    @capt2101akash

    @Varunram I agree with you.
    @dmiller-nmap I tried using Winpcap and found that as the other user says it requires a driver restart to detect a new interface and as npcap and WinPcap works the same way, the problem persists in npcap too.
    So I think we need to find out a way around to solve this problem.
    Thanks.

  3. hsluoyz commented on Jan 28, 2017

    @hsluoyz
    Member

    @dmiller-nmap , the Npcap/WinPcap driver is never a plug-and-play driver. Technically, there are two difficulties:

    1. Microsoft doesn't provide such an interface for a filter driver to detect the new interface. Maybe there are some other types of drivers that can do it. But integrating such a mechanism into Npcap would need a significant amount of development.

    2. Even if Npcap can detect the new interface, NDIS 6 model doesn't allow a filter driver to bind this new interface in the halfway. All the binding work has to be done in the "main" function of the driver ("main" function gets called when you start the driver). Legacy NDIS 5 supports binding to an interface in the halfway. But unfortunately, NDIS 5 is already an antique in XP era, and totally not supported in Npcap.

    IMHO, maybe having this feature would be fancy, but restarting the driver after installing a new interface just seems also good enough.

  4. hdm commented on Mar 5, 2019

    @hdm

    It would be great to have a better solution to this going forward.

  5. gvanem commented on Mar 6, 2019

    @gvanem

    @dmiller-nmap
    Maybe this is related to how other CACE-tech products/drivers are designed?
    E.g. I sometimes have problems with a hanging AirPcap driver (it's blocking at some IOCTL_x call).
    A fix for me it to unplug the USB-dongle and put it back in. Always works.

  6. dmiller-nmap commented on Sep 4, 2019

    @dmiller-nmap
    ContributorAuthor

    Npcap 0.9983 fixes this issue: adapters can be detected and supported for capture and injection as soon as they are bound to the NDIS stack!

  7. transferred this issue fromnmap/nmapon May 5, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions