[Top][All Lists]

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

[lwip-users] Support for raw Ethernet packets?

From: Grant Edwards
Subject: [lwip-users] Support for raw Ethernet packets?
Date: Mon, 22 Nov 2021 17:55:56 -0000 (UTC)
User-agent: slrn/1.0.3 (Linux)

Does lwIP support applications that need to send/receive raw Ethernet
packets? It looks like lwIP's raw "connection" type is only for
sending and receiving IP packets.

What I'm looking for would the equivalent to the code below on Linux:

    import socket
    eth_proto = 0x12345
    s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, eth_proto)

    #include <sys/socket.h>
    eth_proto = 0x12345;
    s = socket(AF_PACKET, SOCK_RAW, htons(eth_proto));

reply via email to

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