VLAN-tagged frame injection regression since 1.81, dependent on NIC/driver/settings
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 reading the Npcap 1.81 changelog’s transmit-path change that converts supplied VLAN tags to NDIS metadata, then trace that path and compare its behavior with 1.80. Use the reported Scapy srp1() reproduction and the NIC/driver matrix to investigate the regression; done means identifying whether the conversion causes invalid tagged frames in the affected configurations and documenting the result.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
VLAN-tagged Ethernet requests that work with Npcap 1.80 fail starting with 1.81 in certain NIC/driver configurations. The latest tested version, 1.90, remains affected.
The application uses Scapy, which uses Npcap for layer-2 transmission and capture on Windows. The destination protocol requires tagging even when VID is 0; the failure occurs with both zero and non-zero VID.
The packets reach the receiving device but are rejected for invalid framing, as confirmed by its invalid-frame counter. The application times out waiting for a response, without an immediate injection error. PC receive is unaffected.
To Reproduce
- Connect a Windows PC to a device supporting a tagged Ethernet request/response protocol.
- With Npcap 1.80, send a known-valid tagged request using Scapy
srp1()and confirm the response. - Install Npcap 1.81 or later and repeat the same request.
- In the affected configurations below, the device rejects the frame and the request times out.
Expected behavior
Explicitly supplied VLAN tagging is preserved in the transmitted frame so that the device can accept the request.
Diagnostic information
- Windows 10 Enterprise, OS build 19045.
- The failure reproduces with CPython 3.13.5, 64-bit, and Scapy 2.6.1.
Observed adapter compatibility:
| NIC / Driver | 1.80 Disabled | 1.80 Enabled | 1.90 Disabled | 1.90 Enabled |
|---|---|---|---|---|
| Intel PRO/1000 PT / 9.15.11.0 | Works | Works | Fails | Fails |
| ASIX USB Gigabit Ethernet / 4.20.1.0 | Works | Works | Fails | Works |
| Realtek USB GbE / 10.65.602.2025 | Works | Works | Fails | Works |
“Enabled” means the NIC’s combined Priority & VLAN Enabled setting.
Additional context
The Npcap 1.81 changelog documents a transmit-path change that converts application-supplied VLAN tags into NDIS metadata, leaving Windows and the NIC driver to process them.
Could this conversion cause the supplied tag not to be reinserted correctly in some NIC/driver configurations?
Adding an extra outer tag restored communication in diagnostic tests, consistent with the outer tag being converted to metadata while an inner tag remains in the packet bytes. The exact transformation on the wire has not been independently confirmed, and extra tagging is not proposed as a permanent workaround.
Could you investigate whether the VLAN-to-NDIS-metadata conversion introduced in 1.81 causes incorrect tagged-frame transmission with some NIC/driver combinations? Scapy reports success, but the receiving device rejects the frame. The same application-supplied frames work with 1.80.
- Ngôn ngữ chính
- C
- Star
- 3.6k
- Fork
- 602
- 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ự
-
bug severity: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AlessandroSangiuliano/Uros#1014 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
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
-
area: test kind: bug preview-effort: small priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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