This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can I use the Raw Ethernet Sockets API before the system is bound to an IP address?

Can I use the Raw Ethernet Sockets API before the stack is bound to an IP address? I want to send ARP queries for Link Local Addressing.

Tim S.

  • Hi Tim,

    Sorry for the delayed response. I was checking with our networking team and here is the response.

    --------------------------------------------------------------------------------------------------------------------------------------------------------

    Yes, you should be able to create/send/recv raw sockets before the stack is bound to an IP address.  The raw socket layer should be independent of the IP layer.

    Raw sockets give the user the ability to send receive directly to the data link layer (EMAC) and are not associated with any protocol, including the network layer (IP).

     A typical UDP/IP or TCP/IP socket must be bound to an IP address using bind(); however the bind() function is not even valid for a raw socket.
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    Hope this helps.
    Vikram