|
From: | address@hidden |
Subject: | Re: [lwip-users] Support for raw Ethernet packets? |
Date: | Wed, 24 Nov 2021 17:20:15 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 |
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). You were previously asking about a linux-ish socket way to do that though. Regards, Simon
[Prev in Thread] | Current Thread | [Next in Thread] |