VLAN-tagged frame injection regression since 1.81, dependent on NIC/driver/settings

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

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

評価

難易度
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

  1. Connect a Windows PC to a device supporting a tagged Ethernet request/response protocol.
  2. With Npcap 1.80, send a known-valid tagged request using Scapy srp1() and confirm the response.
  3. Install Npcap 1.81 or later and repeat the same request.
  4. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

nmap/npcap のほかの issue

nmap/npcap の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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