Skip to content

Indicate no-capture and no-inject devices.#1388

Open
infrastation wants to merge 1 commit intothe-tcpdump-group:masterfrom
infrastation:nocapture_noinject
Open

Indicate no-capture and no-inject devices.#1388
infrastation wants to merge 1 commit intothe-tcpdump-group:masterfrom
infrastation:nocapture_noinject

Conversation

@infrastation
Copy link
Copy Markdown
Member

This is a proof of the concept discussed in tcpdump-workers, it may require more work.

@infrastation
Copy link
Copy Markdown
Member Author

Forgot to add: FreeBSD usbusN devices do not seem to be no-inject, as far as the code in pcap-bpf.c looks, but this may be not the intended behaviour. These changes leave usbus as it is.

Introduce PCAP_IF_NO_CAPTURE and PCAP_IF_NO_INJECT interface flags.  Set
PCAP_IF_NO_INJECT on Bluetooth, DAG Rx stream, DPDK, Haiku network
interface, Linux netfilter, RDMA, Linux USB and the "any"
pseudo-interface devices.  Set PCAP_IF_NO_CAPTURE on DAG Tx stream
devices.  Update related man pages and findalldevstest.
@infrastation infrastation marked this pull request as ready for review January 28, 2026 10:46
@infrastation
Copy link
Copy Markdown
Member Author

Rebased on the current master branch and de-fluffed a bit.

@infrastation infrastation changed the title (do not merge yet) Indicate no-capture and no-inject devices. Indicate no-capture and no-inject devices. Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants