gvisor/pkg/sentry/socket
Kevin Krakauer 121db29a93 Ping support via IPv4 raw sockets.
Broadly, this change:
* Enables sockets to be created via `socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)`.
* Passes the network-layer (IP) header up the stack to the transport endpoint,
  which can pass it up to the socket layer. This allows a raw socket to return
  the entire IP packet to users.
* Adds functions to stack.TransportProtocol, stack.Stack, stack.transportDemuxer
  that enable incoming packets to be delivered to raw endpoints. New raw sockets
  of other protocols (not ICMP) just need to register with the stack.
* Enables ping.endpoint to return IP headers when created via SOCK_RAW.

PiperOrigin-RevId: 235993280
Change-Id: I60ed994f5ff18b2cbd79f063a7fdf15d093d845a
2019-02-27 14:31:21 -08:00
..
control Remove license comments 2019-01-31 11:12:53 -08:00
epsocket Ping support via IPv4 raw sockets. 2019-02-27 14:31:21 -08:00
hostinet Remove license comments 2019-01-31 11:12:53 -08:00
netlink Remove license comments 2019-01-31 11:12:53 -08:00
rpcinet Remove license comments 2019-01-31 11:12:53 -08:00
unix Implement /proc/net/unix. 2019-02-07 14:44:21 -08:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
socket.go Implement /proc/net/unix. 2019-02-07 14:44:21 -08:00