<html>
    <head>
      <base href="https://bugs.dpdk.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - dumpcap captures all available network interfaces when specifying any PCI network interface"
   href="https://bugs.dpdk.org/show_bug.cgi?id=1562">1562</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dumpcap captures all available network interfaces when specifying any PCI network interface
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DPDK
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>21.11
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dev@dpdk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zhengliang1701@163.com
          </td>
        </tr>

        <tr>
          <th>Target Milestone</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div class="bz_comment_block">
          <pre class="bz_comment_text">Created <span class=""><a href="attachment.cgi?id=291" name="attach_291" title="Specifying a non-existent PCI network interface results in packet capture on all valid network interfaces on the host.">attachment 291</a> <a href="attachment.cgi?id=291&action=edit" title="Specifying a non-existent PCI network interface results in packet capture on all valid network interfaces on the host.">[details]</a></span>
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.
          </pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
      <div itemscope itemtype="http://schema.org/EmailMessage">
        <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
          
          <link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1562">
          <meta itemprop="name" content="View bug">
        </div>
        <meta itemprop="description" content="Bugzilla bug update notification">
      </div>
    </body>
</html>