inet(5P) inet(5P)NAME inet - Internet protocol family SYNOPSIS #include <sys/types.h> #include <netinet/in.h> DESCRIPTION inet is a collection of protocols layered on top of 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. Addressing Internet addresses are four-byte quantities, stored in network standard format. (On VAX computers, internet addresses are word and byte reversed.) The include file <netinet/in.h> defines this address as a discriminated union. Sockets bound to the Internet protocol family utilize the following addressing structure: struct sockaddr_in { short sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; }; Sockets can be created with the address INADDR_ANY to effect ``wildcard'' matching on incoming messages. Protocols The Internet protocol family comprises the IP transport protocol, Internet Control Message Protocol (ICMP), Transmission Control Protocol (TCP), and User Datagram Protocol (UDP). TCP is used to support the SOCK_STREAM abstraction; UDP is used to support the SOCK_DGRAM abstraction. You can obtain a raw interface to IP by creating an Internet socket of type SOCK_RAW. The ICMP is not directly accessible. WARNINGS The Internet protocol support is subject to change as the Internet protocols develop. Users should not depend on details of the current implementation, but rather on the services exported. January 1992 1
inet(5P) inet(5P)SEE ALSO ip(5P), tcp(5P), udp(5P) 2 January 1992