Skip to contentSkip to conversation

dumpcap captures all available network interfaces when specifying any PCI network interface

DPDK/other Bug 1562 [email protected] 3 participants 5 messages Oct 10, 2024 – Mar 25, 2025

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1562

            Bug ID: 1562
           Summary: dumpcap captures all available network interfaces when
                    specifying any PCI network interface
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

Created attachment 291
--> https://bugs.dpdk.org/attachment.cgi?id=291&action=edit
Specifying a non-existent PCI network interface results in packet capture on all valid network interfaces on the host.

When specifying a non-existent network interface or any PCI network interface, all valid PCI network interfaces are captured. The reason is in the static void select_interface(const char arg) function, which was intended to match all network interfaces when specified with the '' character. However, the if (strcmp(arg, "")) selects all interfaces. After modification to if (strcmp(arg, "")==0), it works correctly to specify a single network interface.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1562

Kevin Traynor ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |WONTFIX
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Kevin Traynor ([email protected]) ---
Thanks for reporting. It is fixed in main branch, but Stephen says it is not worth to backport to older releases. If it is important for you and you want to send a patch for 22.11 and 23.11 branches, it could be accepted.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#2 lore raw

Hi,

Is this backported to 22.11.1?

Thanks,
Navn Srinivas

Quoted 21 lines · On Thu, Oct 24, 2024 at 3:10 PM <[email protected]> wrote:

Kevin Traynor <[email protected]> changed bug 1562
<https://bugs.dpdk.org/show_bug.cgi?id=1562>
What Removed Added
Resolution --- WONTFIX
Status UNCONFIRMED RESOLVED

*Comment # 4 <https://bugs.dpdk.org/show_bug.cgi?id=1562#c4> on bug 1562
<https://bugs.dpdk.org/show_bug.cgi?id=1562> from Kevin Traynor <[email protected]> *

Thanks for reporting. It is fixed in main branch, but Stephen says it is not worth to backport to older releases. If it is important for you and you want to send a patch for 22.11 and 23.11 branches, it could be accepted.

------------------------------
You are receiving this mail because:

- You are the assignee for the bug.

#3 lore raw
Quoted 6 lines · On Wed, 12 Feb 2025 13:29:57 +0530 Navin Srinivas <[email protected]>…

Hi,

Is this backported to 22.11.1?

Thanks,
Navn Srinivas

No, it required a couple of other patches related to management of network interface list.

#4 lore raw

Oh, Thank you, Can you point me to those patches?
we require it on top of 22.11.1, I would like to get those patches back ported on top 22.11.1

Quoted 13 lines · Stephen Hemminger
Quoted 6 lines · On Wed, 12 Feb 2025 13:29:57 +0530 Navin Srinivas <[email protected]>…

Hi,

Is this backported to 22.11.1?

Thanks,
Navn Srinivas

No, it required a couple of other patches related to management of network interface list.