DIVERT(4) - Device Drivers Manual # DIVERT(4) - Device Drivers Manual
NAME # divert - kernel packet diversion mechanism
SYNOPSIS # #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
int
socket(AF_INET, SOCK_RAW, IPPROTO_DIVERT);
int
socket(AF_INET6, SOCK_RAW, IPPROTO_DIVERT);
DESCRIPTION # Divert sockets are part of a mechanism completely integrated with pf(4) that queues raw packets from the kernel stack to userspace applications, and vice versa.
A divert socket must be bound to a divert port through bind(2), which only the superuser can do.
...
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.
...
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.
...
INET6(4) - Device Drivers Manual # INET6(4) - Device Drivers Manual
NAME # inet6 - Internet protocol version 6 family
SYNOPSIS # #include <sys/types.h>
#include <netinet/in.h>
DESCRIPTION # The Internet Protocol version 6 family is an updated version of the Internet Protocol version 4 family. It comprises Internet Protocol version 6 (IPv6), Internet Control Message Protocol version 6 (ICMPv6), Transmission Control Protocol (TCP), and User Datagram Protocol (UDP). tcp(4) is used to support the SOCK_STREAM abstraction while udp(4) is used to support the SOCK_DGRAM abstraction.
...
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);
...
Udp,
Bgpd,
Lo,
Bridge,
Mrouted,
Ifmedia,
Arp,
Unix,
Inet,
Ip6,
Mpe,
Ripd,
Netstart,
Intro,
Ifconfig,
Ioctl,
Socket,
Hosts,
Ip,
Route,
Config,
Ospfd,
Netstat,
Tcp,
Pf,
Netintro NETINTRO(4) - Device Drivers Manual # NETINTRO(4) - Device Drivers Manual
NAME # netintro - introduction to networking facilities
SYNOPSIS # #include <sys/socket.h>
#include <net/route.h>
#include <net/if.h>
DESCRIPTION # This section is a general introduction to the networking facilities available in the system. Documentation in this part of section 4 is broken up into three areas: protocol families (domains), protocols, and network interfaces.
All network protocols are associated with a specific protocol family.
...
RBOOTD(8) - System Manager’s Manual # RBOOTD(8) - System Manager’s Manual
NAME # rbootd - HP remote boot server
SYNOPSIS # rbootd [-ad] [-i interface] [config_file]
DESCRIPTION # The rbootd utility services boot requests from Hewlett-Packard workstations over a local area network. All boot files must reside in the boot file directory; further, if a client supplies path information in its boot request, it will be silently stripped away before processing.
...
ROUTE(4) - Device Drivers Manual # ROUTE(4) - Device Drivers Manual
NAME # route - kernel packet forwarding database
SYNOPSIS # #include <sys/socket.h>
#include <net/if.h>
#include <net/route.h>
int
socket(AF_ROUTE, SOCK_RAW, family);
DESCRIPTION # OpenBSD provides some packet routing facilities. The kernel maintains a routing information database, which is used in selecting the appropriate network interface when transmitting packets.
A user process (or possibly multiple co-operating processes) maintains this database by sending messages over a special kind of socket.
...
Socket(3p) Perl Programmers Reference Guide Socket(3p) # Socket(3p) Perl Programmers Reference Guide Socket(3p)
NNAAMMEE # "Socket" - networking constants and support functions SSYYNNOOPPSSIISS # "Socket" a low-level module used by, among other things, the IO::Socket family of modules. The following examples demonstrate some low-level uses but a practical program would likely use the higher-level API provided by "IO::Socket" or similar instead. use Socket qw(PF_INET SOCK_STREAM pack_sockaddr_in inet_aton); socket(my $socket, PF_INET, SOCK_STREAM, 0) or die "socket: $!
...