VLAN-tagged frame injection regression since 1.81, dependent on NIC/driver/settings
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c
- 領域
- networking
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C
- スター
- 3.6k
- フォーク
- 601
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nmap/npcap のほかの issue
-
driverquery.exe copying to npcap install folder triggers Windows Defender Attack Surface Reductionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
似ている issue
-
severity: low
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
luainkernel/lunatik#2727 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 6 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bot-triaged module: cuda module: memory usage module: pybind module: tensor creation triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pytorch/pytorch#206707 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/build-framework kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
yugabyte/yugabyte-db#39342 ·
メンテナーはふだん 1 日以内に返信