Custom Ethernet driver and IPv4 #ipv4 #ethernet #networking

Maik Vermeulen

I am working to implement a driver for a SPI Ethernet controller.

The code is being called at initialization, but I am stuck at testing the driver. I would like to use the Net Shell, so net ping for example. Unfortunately, I notice that the code fails in net_icmpv4_send_echo_request() when checking iface->config.ip.ipv4.

Do I need to take extra steps to use IPv4 over my custom ethernet driver, beside enabling the driver and net shell? I could image I would have to bind my ethernet interface to the network stack somewhere, but I haven't found exactly where.