ICMP(4) - Device Drivers Manual # ICMP(4) - Device Drivers Manual
NAME # icmp - Internet Control Message Protocol
SYNOPSIS # #include <sys/socket.h>
#include <netinet/in.h>
int
socket(AF_INET, SOCK_RAW, proto);
DESCRIPTION # ICMP is the error and control message protocol used by IP and the Internet protocol family. It may be accessed through a “raw socket” for network monitoring and diagnostic functions. The proto parameter to the socket call to create an ICMP socket is obtained from getprotobyname(3).
...
INET(4) - Device Drivers Manual # INET(4) - Device Drivers Manual
NAME # inet - Internet protocol family
SYNOPSIS # #include <sys/types.h>
#include <netinet/in.h>
DESCRIPTION # The Internet protocol family is a collection of protocols layered atop the Internet Protocol (IP) transport layer, and utilizing the Internet address format. The Internet family provides protocol support for the SOCK_STREAM, SOCK_DGRAM, and SOCK_RAW socket types; the SOCK_RAW interface provides access to the IP protocol.
...
IP(4) - Device Drivers Manual # IP(4) - Device Drivers Manual
NAME # ip - Internet Protocol
SYNOPSIS # #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int
socket(AF_INET, SOCK_RAW, proto);
DESCRIPTION # IP is the network layer protocol used by the Internet protocol family. Options may be set at the IP level when using higher-level protocols that are based on IP (such as TCP and UDP). It may also be accessed through a “raw socket” when developing new protocols, or special-purpose applications.
...