lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] lwip AF_PACKET support


From: Joel Cunningham
Subject: Re: [lwip-devel] lwip AF_PACKET support
Date: Fri, 11 Aug 2017 14:09:34 -0500


On Aug 11, 2017, at 1:57 PM, Simon Goldschmidt <address@hidden> wrote:

May I ask what the use case for AF_PACKET is in an embedded system?


One potential use case I can think of is running WPA supplicant/hostapd.  These typically open a SOCK_RAW of AF_PACKET type for receiving EAPOLs (https://en.wikipedia.org/wiki/IEEE_802.1X) on Linux.

This would allow the EAPOL ETH type to be receiving in the input path, queued in the netconn, and then allow WPA supplicant to use select/recv on the socket

For other OS’s it looks like WPA supplicant uses some kind of pcap infrastructure.  For the embedded environment, it would be nice to leverage LwIP rather than implement a link layer filtering/capturing/retrieval

Joel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]