[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Support for raw Ethernet packets?
From: |
Grant Edwards |
Subject: |
Re: [lwip-users] Support for raw Ethernet packets? |
Date: |
Thu, 25 Nov 2021 16:02:44 -0000 (UTC) |
User-agent: |
slrn/1.0.3 (Linux) |
On 2021-11-24, goldsimon@gmx.de <goldsimon@gmx.de> wrote:
> Am 24.11.2021 um 16:33 schrieb Grant Edwards:
>> On 2021-11-24, Simon Küppers <simon.kueppers@2pi-labs.com> wrote:
>>
>>> If I understand you correctly, you could also use
>>> LWIP_HOOK_UNKNOWN_ETH_PROTOCOL provided by LWIP, so you do not need to
>>> implement separate receive queues.
>>
>> That's interesting — it would allow you to receive arbitrary Ethernet
>> protocols, but there's no way to send them?
>
> It's an integration for raw lwIP, not for the socket API. Sending raw
> packets from raw lwIP is easy: just call netif->linkoutput() with the
> pbuf to send on the netif you want to send on (or use ip_route() to get
> one).
That would be fine. On the non-Linux systems in the past, it's been
done using non-sockets functions like that.
> You were previously asking about a linux-ish socket way to do that
> though.
It doesn't actually need to be the socket API signature or to use
socket file descriptors.
--
Grant
- [lwip-users] Support for raw Ethernet packets?, Grant Edwards, 2021/11/22
- Re: [lwip-users] Support for raw Ethernet packets?, address@hidden, 2021/11/22
- Re: [lwip-users] Support for raw Ethernet packets?, Grant Edwards, 2021/11/22
- Re: [lwip-users] Support for raw Ethernet packets?, Simon Küppers, 2021/11/24
- Re: [lwip-users] Support for raw Ethernet packets?, Grant Edwards, 2021/11/24
- Re: [lwip-users] Support for raw Ethernet packets?, address@hidden, 2021/11/24
- Re: [lwip-users] Support for raw Ethernet packets?, Simon Küppers, 2021/11/24
- Re: [lwip-users] Support for raw Ethernet packets?,
Grant Edwards <=
- Re: [lwip-users] Support for raw Ethernet packets?, address@hidden, 2021/11/25