All rights reserved.
%sccs.include.redist.man%
@(#)clnp.4 6.1 (Berkeley) 05/30/90
s = socket(AF_ISO, SOCK_RAW, 0);
Outgoing packets automatically have a CLNP header prepended to them. Incoming packets received by the user contain the full CLNP header. The following setsockopt options apply to CLNP:
CLNPOPT_FLAGS Sets the flags which are passed to clnp when sending a datagram. Valid flags are:
CLNP_NO_SEG-Do not allow segmentation CLNP_NO_ER-Suppress ER pdus CLNP_NO_CKSUM-Do not generate the CLNP checksum
CLNPOPT_OPTS Sets CLNP options. The options must be formatted exactly as specified by ISO 8473, section 7.5 "Options Part." Once an option has been set, it will be sent on all packets until a different option is set.
If a packet is forwarded containing the globally unique quality of service option, and the interface through which the packet will be transmitted has a queue length greater than congest_threshold, then the congestion experienced bit is set in the quality of service option.
The threshold value stored in congest_threshold may be changed with the clnlutil utility.
When a packet is received with the globally unique quality of service option present, and the congestion experienced bit is set, then the transport congestion control function is called.
15 [EISCONN] when trying to establish a connection on a socket which already has one, or when trying to send a datagram with the destination address specified and the socket is already connected;
15 [ENOTCONN] when trying to send a datagram, but no destination address is specified, and the socket hasn't been connected;
15 [ENOBUFS] when the system runs out of memory for an internal data structure;
15 [EADDRNOTAVAIL] when an attempt is made to create a socket with a network address for which no network interface exists;
15 [EHOSTUNREACH] when trying to send a datagram, but no route to the destination address exists.
15 [EINVAL] when specifying unsupported options.
No more than MLEN bytes of options can be specified.