Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Ostinato unable to find npcap DLLs #349

Open
pstavirs opened this issue Apr 27, 2022 · 2 comments
Open

Ostinato unable to find npcap DLLs #349

pstavirs opened this issue Apr 27, 2022 · 2 comments
Labels

Comments

@pstavirs
Copy link
Owner

pstavirs commented Apr 27, 2022

When npcap is installed in native mode, the DLLs are installed in C:\windows\system32\Npcap\.

But Ostinato always looks at the standard C:\windows\system32\ only.

One workaround is to add C:\windows\system32\Npcap\ to the %PATH% env var so that it can find it

@pstavirs pstavirs added this to the v1.2 milestone Apr 27, 2022
@pstavirs pstavirs added the bug label Apr 27, 2022
@pstavirs pstavirs modified the milestones: v1.2, v1.3 Sep 4, 2022
@pstavirs
Copy link
Owner Author

The Ostinato for Windows installer should check if either winpcap or npcap is installed and if not, prompt the user to install npcap.

Prefer npcap over winpcap at runtime if both installed.

References -
https://npcap.com/guide/npcap-devguide.html#npcap-feature-native
https://stackoverflow.com/questions/1851267/mingw-gcc-delay-loaded-dll-equivalent

@pstavirs
Copy link
Owner Author

The Windows installer has been changed to check to check for WinPcap/Npcap post install as follows -

if wpcap.dll exists in standard system path
  all good
else if wpcap.dll exists in Npcap native path
  add npcap native path to PATH
else
  inform user to install npcap
  add npcap native path to PATH (assuming user will install in native mode, which is the default)
endif

This however doesn't prefer npcap over winpcap at runtime if both are installed

@pstavirs pstavirs removed this from the v1.3 milestone Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant