ip(6P) TCP/IP 5.4R3.00 ip(6P)
NAME
IP - Communications Protocol Internet Protocol
INCLUDE FILES
#include <sys/socket.h>
#include <netinet/ip.h>
SYNOPSIS
This is an example of how you would create an endpoint for the IP
connection.
s = socket(AFINET, SOCKRAW, 0);
DESCRIPTION
IP is the network/internetwork layer protocol used by the Internet
protocol family. It may be accessed through a "raw socket" when
developing special-purpose applications. A raw socket can be opened
only by the superuser.
IP sockets are connectionless, and are normally used with the sendto
and recvfrom calls, though the connect(2) call may also be used to
fix the destination for future packets (in which case the read(2) or
recv(2) and write(2) or send(2) system calls may be used).
Outgoing packets must have an IP header prepended to them.
OPTIONS
IPPROTO_IP level options recognized by IP:
IP_TX_OPTIONS IP transmit options. When setting, the system
will verify that the option string is well
formed.
IP_RX_OPTIONS IP receive options. When setting, the system
will verify that the option string is well
formed.
IP_TOS IP Type Of Service.
IP_TTL IP Time To Live. Number of routing hops a packet
may make before reaching its destination.
IP_DONTFRAG IP Dont Fragment flag. When non-zero, IP will
try to send a packet without fragmenting. If a
packet is too large to send without fragmenting,
the packet is dropped.
SEE ALSO
connect(2), recv(2), send(2), intro(6), inet(6F), tcp(6P).
Programming with TCP/IP on the DG/UX System.
Licensed material--property of copyright holder(s) 1