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

Đang mở
#862 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
networking

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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/

Ngôn ngữ chính
C
Star
3.6k
Fork
601
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nmap/npcap

Tất cả issue của nmap/npcap

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.