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

📄 iso.4

📁 早期freebsd实现
💻 4
字号:
.\" Copyright (c) 1990, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)iso.4	8.2 (Berkeley) 11/30/93.\".Dd November 30, 1993.Dt ISO 4.Os.Sh NAME.Nm iso.Nd.Tn ISOprotocol family.Sh SYNOPSIS.Fd #include <sys/types.h>.Fd #include <netiso/iso.h>.Sh DESCRIPTIONThe.Tn ISOprotocol family is a collection of protocolsthat uses the.Tn ISOaddress format.The.Tn ISOfamily provides protocol support for the.Dv SOCK_SEQPACKETabstraction through the.Tn TPprotocol.Pf ( Tn ISO8073), for the.Dv SOCK_DGRAMabstraction through the connectionless transportprotocol.Pf ( Tn ISO8602),and for the.Dv SOCK_RAWabstractionby providing direct access (for debugging) to the.Tn CLNP .Pf ( Tn ISO8473) network layer protocol..Sh ADDRESSING.Tn ISOaddresses are based upon.Tn ISO8348/AD2, .%T "Addendum to the Network Service Definition Covering Network Layer Addressing.".PpSockets bound to the OSI protocol family usethe following address structure:.Bd -literalstruct iso_addr {     u_char    isoa_len;  /* length, not including this byte */     char      isoa_genaddr[20];  /* general opaque address */};struct sockaddr_iso {     u_char    siso_len;      /* size of this sockaddr */     u_char    siso_family;   /* addressing domain, AF_ISO */     u_char    siso_plen;     /* presentation selector length */     u_char    siso_slen;     /* session selector length */     u_char    siso_tlen;     /* transport selector length */     struct    iso_addr siso_addr; /* network address */     u_char    siso_pad[6];    /* space for gosip v2 SELs */};#define siso_nlen siso_addr.isoa_len#define siso_data siso_addr.isoa_genaddr.Ed.PpThe fields of this structure are:.Bl -tag -width Ds.It Ar siso_len:Length of the entire address structure, in bytes, which may grow tobe longer than the 32 bytes shown above..It Ar siso_family:Identifies the domain:.Dv AF_ISO ..It Ar siso_tlen:Length of the transport selector..It Ar siso_slen:Length of the session selector.This is not currently supported by the kernel and is provided asa convenience for user level programs..It Ar siso_plen:Length of the presentation selector.This is not currently supported by the kernel and is provided asa convenience for user level programs..It Ar siso_addr:The network part of the address, described below..El.Sh TRANSPORT ADDRESSING.PpAn.Tn ISOtransport address is similar to an Internet address in thatit contains a network-address portion and a portion that thetransport layer uses to multiplex its services among clients.In the Internet domain, this portion of the address is called a.Em port .In the.Tn ISOdomain, this is called a.Em transport selector(also known at one time as a.Em transport suffix ) .While ports are always 16 bits, transport selectors may beof (almost) arbitrary size..PpSince the C language does not provide convenient variablelength structures, we have separated the selector lengthsfrom the data themselves.The network address and various selectors are stored contiguously,with the network address first, then the transport selector, and soon.  Thus, if you had a nework address of less then 20 bytes,the transport selector would encroach on space normally reservedfor the network address..Pp.Sh NETWORK ADDRESSING..Tn ISOnetwork addresses are limited to 20 bytes in length..Tn ISOnetwork addresses can take any format..Sh PROTOCOLSThe.Tn ARGO1.0 implementation of the .Tn ISOprotocol family comprisesthe Connectionless-Mode Network Protocol.Pq Tn CLNP , and the Transport Protocol.Pq Tn TP ,classes 4 and 0,and.Tn X.25 ..Tn TPis used to support the.Dv SOCK_SEQPACKETabstraction.A raw interface to.Tn CLNPis availableby creating an.Tn ISOsocket of type.Dv SOCK_RAW .This is used for.Tn CLNPdebugging only..Sh SEE ALSO.Xr tp 4 ,.Xr clnp 4 ,.Xr cltp 4

⌨️ 快捷键说明

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