Copyright (c) 1983 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)inet.4 5.1 (Berkeley) 05/15/85
.. 3.5i went to 3.8i
.. 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.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)inet.4 5.1 (Berkeley) 05/15/85
INET 4F "19 March 1982"
C 5 NAME
inet - Internet protocol family
SYNOPSIS
#include <sys/types.h> DESCRIPTION
2.94 went to 2.6, 3.64 to 3.30.. 3.5i went to 3.8i
.. 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.
ADDRESSING
Internet addresses are four byte quantities, stored in
network standard format (on the VAX these 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,
._f struct sockaddr_in { short sin_family; u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; };Sockets may be created with the address INADDR_ANY to effect \*(lqwildcard\*(rq matching on incoming messages.
PROTOCOLS
The Internet protocol family is comprised of
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 while UDP is used to support the SOCK_DGRAM
abstraction. A raw interface to IP is available
by creating an Internet socket of type SOCK_RAW.
The ICMP message protocol is not directly accessible.
SEE ALSO
tcp(4P), udp(4P), ip(4P)
CAVEAT
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
the services exported.