[U-Boot] [PATCH v3 1/2] net: introduce packet capture support

Joe Hershberger joe.hershberger at ni.com
Thu Jul 11 21:18:56 UTC 2019


On Sat, Jun 22, 2019 at 1:50 PM Ramon Fried <rfried.dev at gmail.com> wrote:
>
> Add support for capturing ethernet packets and storing
> them in memory in PCAP(2.4) format, later to be analyzed by
> any PCAP viewer software (IE. Wireshark)
>
> This feature greatly assist debugging network issues such
> as detecting dropped packets, packet corruption etc.
>
> Signed-off-by: Ramon Fried <rfried.dev at gmail.com>
> Reviewed-by: Alex Marginean <alexm.osslist at gmail.com>
> Tested-by: Alex Marginean <alexm.osslist at gmail.com>

This is a nice feature to have. We need a unit test for it, though.
Please add it to a sandbox test and exercise it, then have the test
try to load the resulting file with tshark to ensure a valid format.
There are potentially other things in the header that is printed that
can be used for further validation.

Thanks for this feature.
-Joe


More information about the U-Boot mailing list