(do not merge yet) Add support for no-capture and no-inject device flags.#1246
Draft
infrastation wants to merge 1 commit intothe-tcpdump-group:masterfrom
Draft
(do not merge yet) Add support for no-capture and no-inject device flags.#1246infrastation wants to merge 1 commit intothe-tcpdump-group:masterfrom
infrastation wants to merge 1 commit intothe-tcpdump-group:masterfrom
Conversation
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 on the "-D" flag in the man page. Before: 1.enp8s0 [Up, Running, Connected] 2.enp4s0 [Up, Running, Connected] 3.ens5 [Up, Running, Connected] 4.any (Pseudo-device that captures on all interfaces) [Up, Running] 5.lo [Up, Running, Loopback] 6.dag0 (alias for dag0:0) [none] 7.dag0:0 (Rx stream 0) [none] 8.dag0:1 (Tx stream 1) [none] 9.dag16 (alias for dag16:0) [none] 10.dag16:0 (Rx stream 0) [none] 11.dag16:1 (Tx stream 1) [none] 12.dag17 (alias for dag17:0) [none] 13.dag17:0 (Rx stream 0) [none] 14.dag17:1 (Tx stream 1) [none] 15.bluetooth-monitor (Bluetooth Linux Monitor) [Wireless] 16.nflog (Linux netfilter log (NFLOG) interface) [none] 17.nfqueue (Linux netfilter queue (NFQUEUE) interface) [none] After: 1.enp8s0 [Up, Running, Connected] 2.enp4s0 [Up, Running, Connected] 3.ens5 [Up, Running, Connected] 4.any (Pseudo-device that captures on all interfaces) [Up, Running, NoInject] 5.lo [Up, Running, Loopback] 6.dag0 (alias for dag0:0) [NoInject] 7.dag0:0 (Rx stream 0) [NoInject] dag0:1 (Tx stream 1) [NoCapture] 8.dag16 (alias for dag16:0) [NoInject] 9.dag16:0 (Rx stream 0) [NoInject] dag16:1 (Tx stream 1) [NoCapture] 10.dag17 (alias for dag17:0) [NoInject] 11.dag17:0 (Rx stream 0) [NoInject] dag17:1 (Tx stream 1) [NoCapture] 12.bluetooth-monitor (Bluetooth Linux Monitor) [Wireless, NoInject] 13.nflog (Linux netfilter log (NFLOG) interface) [NoInject] 14.nfqueue (Linux netfilter queue (NFQUEUE) interface) [NoInject]
mcr
approved these changes
Jan 28, 2026
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.