natm.4 (208027) | natm.4 (231564) |
---|---|
1.\" $FreeBSD: head/share/man/man4/natm.4 208027 2010-05-13 12:07:55Z uqs $ | 1.\" $FreeBSD: head/share/man/man4/natm.4 231564 2012-02-12 18:29:56Z ed $ |
2.\" 3.Dd December 29, 1997 4.Dt NATM 4 5.Os 6.Sh NAME 7.Nm natm 8.Nd Native Mode ATM protocol layer 9.Sh DESCRIPTION --- 8 unchanged lines hidden (view full) --- 18to do 19.Dq make clean ) . 20.Sh NATM API 21The NATM layer uses a 22.Vt struct sockaddr_natm 23to specify a virtual circuit: 24.Bd -literal -offset indent 25struct sockaddr_natm { | 2.\" 3.Dd December 29, 1997 4.Dt NATM 4 5.Os 6.Sh NAME 7.Nm natm 8.Nd Native Mode ATM protocol layer 9.Sh DESCRIPTION --- 8 unchanged lines hidden (view full) --- 18to do 19.Dq make clean ) . 20.Sh NATM API 21The NATM layer uses a 22.Vt struct sockaddr_natm 23to specify a virtual circuit: 24.Bd -literal -offset indent 25struct sockaddr_natm { |
26 u_int8_t snatm_len; /* length */ 27 u_int8_t snatm_family; /* AF_NATM */ | 26 uint8_t snatm_len; /* length */ 27 uint8_t snatm_family; /* AF_NATM */ |
28 char snatm_if[IFNAMSIZ]; /* interface name */ | 28 char snatm_if[IFNAMSIZ]; /* interface name */ |
29 u_int16_t snatm_vci; /* vci */ 30 u_int8_t snatm_vpi; /* vpi */ | 29 uint16_t snatm_vci; /* vci */ 30 uint8_t snatm_vpi; /* vpi */ |
31}; 32.Ed 33.Pp 34To create an AAL5 connection to a virtual circuit with VPI 0, VCI 201 35one would use the following: 36.Bd -literal -offset indent 37 struct sockaddr_natm snatm; 38 int s, r; --- 63 unchanged lines hidden --- | 31}; 32.Ed 33.Pp 34To create an AAL5 connection to a virtual circuit with VPI 0, VCI 201 35one would use the following: 36.Bd -literal -offset indent 37 struct sockaddr_natm snatm; 38 int s, r; --- 63 unchanged lines hidden --- |