How to debug ethernet driver ?

Daniel Baluta daniel.baluta at gmail.com
Thu Aug 4 05:48:20 EDT 2016


On Mon, Aug 1, 2016 at 10:26 PM, Ran Shalit <ranshalit at gmail.com> wrote:
> Hello,
>
> I am writing ethernet network driver.
> I would like to ask if there are any steps which can help when
> debugging ethernet driver, or is it that the first test should already
> involve transmit/recieve packets to/from ip stack ?
>
> Any tips for debugging and testing a new ethernet driver will be appreciated,

You can start by testing the loopback mode (perhaps). Also, use wireshark
or tcpdump for capturing the packets.

Daniel.



More information about the Kernelnewbies mailing list