ip(6P) TCP/IP R4.11 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 a user with appropriate privilege. On a generic DG/UX
system, appropriate privilege is granted by having an effective UID
of 0 (root). See the appropriateprivilege(5) man page for more
information.
On a system with DG/UX information security, appropriate privilege is
granted by having one or more specific capabilities enabled in the
effective capability set of the user. See the capdefaults(5) man
page for the default capabilities for this command.
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.
IP_HDRINCL IP include header. When non-zero, IP will
include the IP header with the data.
IP_RECVOPTS IP include options. When non-zero, IP will
include all IP options with the received
datagram.
IP_RECVRETOPTS IP include response options. When non-zero, IP
will the IP options for the response (currently
not supported by DG/UX).
IP_RECVDSTADDR IP receive destination address. When non-zero,
IP will include the IP destination address with
the received datagram.
IP_RECVIFADDR IP receive interface address. When non-zero, IP
will include the IP address of the receiving
interface with the received datagram.
IP_MULTICAST_IF IP Multicast Default Interface. Specifies the
default interface for outbound IP multicast
datagrams.
IP_MULTICAST_TTL IP Multicast Time-to-Live. Specifies the default
IP Time-to-Live for outbound IP multicast
datagrams.
IP_MULTICAST_LOOP IP Multicast Loopback. When non-zero, IP will
receive a copy of outbound IP multicast
datagrams.
IP_ADD_MEMBERSHIP IP Multicast add membership. Allows IP to add an
interface to a valid multicast group's
membership.
IP_DROP_MEMBERSHIP IP Multicast drop membership. Allows IP to drop
an interface from a valid multicast group's
membership.
SEE ALSO
connect(2), recv(2), send(2), intro(6), inet(6F), tcp(6P),
appropriateprivilege(5).
Programming with TCP/IP on the DG/UX System.
Licensed material--property of copyright holder(s)