⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clnp.4p

📁 早期freebsd实现
💻 4P
字号:
.TH CLNP 4P "9 December 1988".ds ]W Wisconsin ARGO 1.0.UC 4.SH NAMEclnp \- Connectionless-Mode Network Protocol.SH SYNOPSIS.B #include <sys/socket.h>.br.B #include <netargo/iso.h>.br.B #include <netargo/clnp.h>.PP.B s = socket(AF_ISO, SOCK_RAW, 0);.SH DESCRIPTIONCLNP is the connectionless-mode network protocol used by the connectionless-mode network service. This protocol is specified inISO 8473.It may be accessedthrough a \*(lqraw socket\*(rq for debugging purposes only.CLNP sockets are connectionless,and are normally used with the.I sendto and.I recvfrom calls, though the.IR connect (2)call may also be used to fix the destination for futurepackets (in which case the .IR read (2)or.IR recv (2)and .IR write (2)or.IR send (2)system calls may be used)..PPOutgoing packets automatically have a CLNP header prepended tothem. Incoming packets received by the user contain the full CLNP header.The following \fIsetsockopt\fR options apply to CLNP:.TPCLNPOPT_FLAGSSets the flags which are passed to clnp when sending a datagram.Valid flags are:.nf.brCLNP_NO_SEG-Do not allow segmentationCLNP_NO_ER-Suppress ER pdusCLNP_NO_CKSUM-Do not generate the CLNP checksum.br.fi.TPCLNPOPT_OPTSSets CLNP options. The options must be formatted exactly as specified byISO 8473, section 7.5 "Options Part." Once an option has been set, it willbe sent on all packets until a different option is set..SH DIAGNOSTICSA socket operation may fail with one of the following errors returned:.TP 15[EISCONN]when trying to establish a connection on a socket whichalready has one, or when trying to send a datagram with the destinationaddress specified and the socket is already connected;.TP 15[ENOTCONN]when trying to send a datagram, butno destination address is specified, and the socket hasn't beenconnected;.TP 15[ENOBUFS]when the system runs out of memory foran internal data structure;.TP 15[EADDRNOTAVAIL]when an attempt is made to create a socket with a network address for which no network interfaceexists;.TP 15[EHOSTUNREACH]when trying to send a datagram, but no route to the destinationaddress exists..TP 15[EINVAL]when specifying unsupported options..SH SEE ALSOsend(2), recv(2), intro(4N), iso(4F).SH BUGSPackets are sent with the type code of 0x1d (technically an invalidpacket type) for lack of a better way to identify raw CLNP packets..PPNo more than MLEN bytes of options can be specified.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -