A broken airpcap.dll (old Tarlogic wrapper) makes PacketGetAdapterNames fail for every adapter (error 2)

オープン
#862 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
networking

調査の方向性

Start by tracing how Npcap loads airpcap.dll and how that load affects PacketGetAdapterNames; the issue does not name source files or tests. Reproduce with a wrapper whose airpcap.orig.dll dependency is missing, then identify where enumeration fails. Done means adapter enumeration continues and emits a clear warning when AirPcap cannot load, with diagnostics including the DLL path and version.

索引モデルが issue の本文から書いたものです。

説明

Environment: Windows, Npcap 1.79 and 1.90, Wireshark/dumpcap

Symptom: dumpcap -D fails with PacketGetAdapterNames: The system cannot find the file specified. (2), and Wireshark lists no interfaces. Reinstalling Npcap, running NPFInstall.exe -i in Safe Mode, resetting the network, and disabling the antivirus did not help. The driver was loaded and bound to every adapter.

This took a significant amount of troubleshooting to track down, because the error message gives no hint that AirPcap is involved.

Cause: Npcap loads airpcap.dll when it is present. An old "Tarlogic airpcap wrapper" from 2016 (installed by Acrylic Wi-Fi, and not removed by its uninstaller) had replaced System32\airpcap.dll and SysWOW64\airpcap.dll. The wrapper tries to load airpcap.orig.dll, which no longer existed. Process Monitor showed repeated NAME NOT FOUND lookups for that file, and adapter enumeration failed as a whole.

Workaround: Rename both airpcap.dll files (only if no real AirPcap adapter is in use). Interfaces appear immediately, with no reboot.

Suggestion: When airpcap.dll fails to load, or its dependencies are missing, skip AirPcap support and log a clear warning instead of failing PacketGetAdapterNames for all adapters. Showing the AirPcap DLL's path and version in the diagnostics would also help.

Reference: https://ask.wireshark.org/question/38204/

主要言語
C
スター
3.6k
フォーク
601
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nmap/npcap のほかの issue

nmap/npcap の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。