ICMP6(4) - Device Drivers Manual # ICMP6(4) - Device Drivers Manual
NAME # icmp6 - Internet Control Message Protocol for IPv6
SYNOPSIS # #include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/icmp6.h>
int
socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
DESCRIPTION # ICMPv6 is the error and control message protocol used by IPv6 and the IPv6 protocol family (see ip6(4) and inet6(4)). It may be accessed through a “raw socket” for network monitoring and diagnostic functions.
...
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.
...
Send,
Udp,
If_nametoindex,
Netintro,
Getsockopt,
Setsockopt,
Bpf,
Socket,
Inet6,
Recv,
Tcp,
Icmp6,
Ip6 IP6(4) - Device Drivers Manual # IP6(4) - Device Drivers Manual
NAME # ip6 - Internet Protocol version 6 (IPv6) network layer
SYNOPSIS # #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int
socket(AF_INET6, SOCK_RAW, proto);
DESCRIPTION # The IPv6 network layer is used by the IPv6 protocol family for transporting data. IPv6 packets contain an IPv6 header that is not provided as part of the payload contents when passed to an application.
...
Intro,
Recvmsg,
Getsockopt,
Setsockopt,
Sysctl,
Socket,
Inet,
Inet6,
Recvfrom,
Mrouted,
Ip6,
Ip,
Icmp6,
Multicast MULTICAST(4) - Device Drivers Manual # MULTICAST(4) - Device Drivers Manual
NAME # multicast - multicast routing
SYNOPSIS # options MROUTING
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip_mroute.h>
#include <netinet6/ip6_mroute.h>
int
getsockopt(int s, IPPROTO_IP, MRT_INIT, void *optval, socklen_t *optlen);
int
setsockopt(int s, IPPROTO_IP, MRT_INIT, const void *optval, socklen_t optlen);
int
getsockopt(int s, IPPROTO_IPV6, MRT6_INIT, void *optval, socklen_t *optlen);
int
setsockopt(int s, IPPROTO_IPV6, MRT6_INIT, const void *optval, socklen_t optlen);
...
Tcpbench,
Netintro,
Getsockopt,
Ipsecctl,
Socket,
Inet,
Inet6,
Tcpdrop,
Ip6,
Ip,
Tcp TCP(4) - Device Drivers Manual # TCP(4) - Device Drivers Manual
NAME # tcp - Internet Transmission Control Protocol
SYNOPSIS # #include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
int
socket(AF_INET, SOCK_STREAM, 0);
int
socket(AF_INET6, SOCK_STREAM, 0);
DESCRIPTION # The TCP protocol provides a reliable, flow-controlled, two-way transmission of data. It is a byte-stream protocol used to support the SOCK_STREAM abstraction. TCP uses the standard Internet address format and, in addition, provides a per-host collection of “port addresses”.
...
UDP(4) - Device Drivers Manual # UDP(4) - Device Drivers Manual
NAME # udp - Internet User Datagram Protocol
SYNOPSIS # #include <sys/socket.h>
#include <netinet/in.h>
int
socket(AF_INET, SOCK_DGRAM, 0);
int
socket(AF_INET6, SOCK_DGRAM, 0);
DESCRIPTION # UDP is a simple, unreliable datagram protocol which is used to support the SOCK_DGRAM abstraction for the Internet protocol family. UDP sockets are connectionless, and are normally used with the sendto(2) and recvfrom(2) calls, though the connect(2) call may also be used to fix the destination for future packets (in which case the recv(2) or read(2) and send(2) or write(2) system calls may be used).
...