Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

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

$
0
0

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

Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>