Next: Passthrough connections, Previous: ICMP sockets, Up: Client connections [Contents][Index]
A raw socket receives or sends the raw datagram not including link-level
headers. It is currently used by the ICMP socket implementation of the
core library. The IPv4 layer generates an IP header when sending a
packet unless the IP_HDRINCL
socket option is enabled on the
socket. When it is enabled, the packet must contain an IP header. For
receiving the IP header is always included in the packet.
Only processes with an effective userid of zero (Administrator or root)
or the CAP_NET_RAW
capability are allowed to open raw sockets.
All packets or errors matching the protocol number specified for the raw
socket are passed to this socket. A protocol of IPPROTO_RAW
implies enabled IP_HDRINCL
and receives all IP protocols.
Sending is not allowed.
[FIXME: All funcs internalized! Write something else here!]