[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Getting Raw ARP Packets
From: |
Joel Cunningham |
Subject: |
Re: [lwip-users] Getting Raw ARP Packets |
Date: |
Tue, 29 May 2018 16:40:16 -0700 |
> On May 22, 2018, at 06:13, David M. Zar <address@hidden> wrote:
>
> As a side note, we have a software version of our proposed system running on
> a PC... it opens a BSD RAW_SOCKET and does everything at that level.
> Essentially, that's what I'm trying to emulate, here, but being as efficient
> as possible in an embedded environment. I do have an Ethernet driver working
> very well, it seems, so maybe I'm 90% there.)
From the use case you’ve described, I’m guessing you’re using an AF_PACKET
socket on your PC, which allows sending/receiving raw Ethernet packets instead
of IP packets you get with AF_INET/SOCK_RAW
LwIP supports SOCK_RAW, but not AF_PACKET sockets. There have been some
requests on the mailing lists for AF_PACKET support, but no implementation yet.
Joel