A broken airpcap.dll (old Tarlogic wrapper) makes PacketGetAdapterNames fail for every adapter (error 2)
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nmap/npcap
-
driverquery.exe copying to npcap install folder triggers Windows Defender Attack Surface ReductionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Installer looks blurryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Issue tương tự
-
severity: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
luainkernel/lunatik#2727 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Termux compilation failureĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bot-triaged module: cuda module: memory usage module: pybind module: tensor creation triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pytorch/pytorch#206707 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/build-framework kind/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
yugabyte/yugabyte-db#39342 ·
Maintainer thường phản hồi trong vòng 1 ngày