| 311137f1 | 03-Jul-2024 |
Stephen Hemminger <stephen@networkplumber.org> |
dumpcap: add lcore option
The dumpcap application is reading from ring and writing to the kernel. By default the EAL init will cause the main thread to bound to the first lcore (cpu 0). Add a comman
dumpcap: add lcore option
The dumpcap application is reading from ring and writing to the kernel. By default the EAL init will cause the main thread to bound to the first lcore (cpu 0). Add a command line option to select the lcore to use; or if no lcores are specified then just be a normal process and let the CPU scheduler handle it. Letting scheduler is likely to work well for process doint I/O with kernel.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| d1920ed6 | 04-Jan-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
app/dumpcap: support interface name and description
Support setting --ifname and --ifdescr options to record information in the start of the pcapng interface description block. Also, records filter
app/dumpcap: support interface name and description
Support setting --ifname and --ifdescr options to record information in the start of the pcapng interface description block. Also, records filter (if any) used in the file.
This also makes sure only the interfaces being recorded in the capture file are in the interface block.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| 6026bfae | 04-Jan-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
app/dumpcap: support multiple interfaces
The code to handle multiple interfaces did not work before. Need to initialize the list of interfaces while parsing the command line. Each interface should t
app/dumpcap: support multiple interfaces
The code to handle multiple interfaces did not work before. Need to initialize the list of interfaces while parsing the command line. Each interface should the ability to have its own options.
Fixes another bug where dumpcap would always disable promiscious on exit, even if set by the application.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| dbb27d6f | 04-Jan-2023 |
Ben Magistro <koncept1@gmail.com> |
app/dumpcap: fix storing port identifier
When dumpcap adds an interface, the port was not being preserved. This results in the structure being initialized and the port field being set to 0 regardles
app/dumpcap: fix storing port identifier
When dumpcap adds an interface, the port was not being preserved. This results in the structure being initialized and the port field being set to 0 regardless of what port was actually selected. This unset field is then used in both the enable and cleanup calls. This could result in the capture occurring on the wrong interface.
Fixes: cbb44143be74 ("app/dumpcap: add new packet capture application") Cc: stable@dpdk.org
Signed-off-by: Ben Magistro <koncept1@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| 8744f84b | 26-Jan-2023 |
Stephen Hemminger <stephen@networkplumber.org> |
app/dumpcap: add statistics mode
This add new -S option which does the same thing as wireshark's dumpcap -S option.
It loops over all interfaces and prints the number of received and dropped packet
app/dumpcap: add statistics mode
This add new -S option which does the same thing as wireshark's dumpcap -S option.
It loops over all interfaces and prints the number of received and dropped packets. In this mode, actual packet capture is not done.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| eeb6cad4 | 12-Sep-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
app/dumpcap: add file-prefix option
When using dumpcap in container environment or with multiple DPDK processes, it is useful to be able to specify file prefix.
This version only accepts the long f
app/dumpcap: add file-prefix option
When using dumpcap in container environment or with multiple DPDK processes, it is useful to be able to specify file prefix.
This version only accepts the long format option used by other commands. If no prefix is specified then the default is used.
Suggested-by: Arshdeep Kaur <arshdeep.kaur@intel.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Arshdeep Kaur <arshdeep.kaur@intel.com>
show more ...
|
| 7f3623a1 | 17-Oct-2022 |
Arshdeep Kaur <arshdeep.kaur@intel.com> |
app/dumpcap: fix select interface
The change to do argument process before EAL init broke the support of select-interface option. Fix by setting flag and doing select-interface later.
Fixes: a8dde0
app/dumpcap: fix select interface
The change to do argument process before EAL init broke the support of select-interface option. Fix by setting flag and doing select-interface later.
Fixes: a8dde09f97df ("app/dumpcap: allow help/version without primary process") Cc: stable@dpdk.org
Signed-off-by: Arshdeep Kaur <arshdeep.kaur@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|
| 117e3b64 | 20-Oct-2022 |
Stephen Hemminger <stephen@networkplumber.org> |
app/dumpcap: fix pathname for output file
When dumpcap is run with a longer path name such as when testing, the file prefix would be computed incorrectly.
Also, print out the resulting filename whi
app/dumpcap: fix pathname for output file
When dumpcap is run with a longer path name such as when testing, the file prefix would be computed incorrectly.
Also, print out the resulting filename which is similar to what wireshark program does.
Fixes: cbb44143be74 ("app/dumpcap: add new packet capture application") Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
show more ...
|