Add support for no-capture and no-inject device flags. - #1246
Open
infrastation wants to merge 1 commit into
Open
Add support for no-capture and no-inject device flags.#1246infrastation wants to merge 1 commit into
infrastation wants to merge 1 commit into
Conversation
infrastation
marked this pull request as draft
November 24, 2024 20:32
mcr
approved these changes
Jan 28, 2026
Add PCAP_IF_NO_INJECT and PCAP_IF_NO_CAPTURE to the list of known device flags. In show_devices_and_exit() do not print a shorthand number for and in find_interface_by_number() do not count no-capture devices. Update description of the "-D" flag in the man page. $ tcpdump -D 1.enp3s0 [Up, Running, Connected] 2.any (Pseudo-device that captures on all interfaces) [Up, Running, NoInject] 3.lo [Up, Running, Loopback] 4.dag0 (alias for dag0:0) [NoInject] 5.dag0:0 (Rx stream 0) [NoInject] dag0:1 (Tx stream 1) [NoCapture] 6.dag16 (alias for dag16:0) [NoInject] 7.dag16:0 (Rx stream 0) [NoInject] 8.dag17 (alias for dag17:0) [NoInject] 9.dag17:0 (Rx stream 0) [NoInject] 10.nflog (Linux netfilter log (NFLOG) interface) [NoInject] 11.nfqueue (Linux netfilter queue (NFQUEUE) interface) [NoInject]
infrastation
marked this pull request as ready for review
September 10, 2026 17:48
infrastation
force-pushed
the
nocapture_noinject
branch
from
September 10, 2026 17:52
4065319 to
c7adbf6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is one of the possible uses of the device flags in the-tcpdump-group/libpcap#1388, it may require more work.