Go to the documentation of this file.
11 #ifndef _UAPI_LINUX_ATM_H
12 #define _UAPI_LINUX_ATM_H
19 #include <linux/compiler.h>
23 #include <linux/types.h>
27 #define ATM_CELL_SIZE 53
28 #define ATM_CELL_PAYLOAD 48
29 #define ATM_AAL0_SDU 52
30 #define ATM_MAX_AAL34_PDU 65535
31 #define ATM_AAL5_TRAILER 8
32 #define ATM_MAX_AAL5_PDU 65535
33 #define ATM_MAX_CDV 9999
34 #define ATM_NOT_RSV_VCI 32
36 #define ATM_MAX_VPI 255
37 #define ATM_MAX_VPI_NNI 4096
38 #define ATM_MAX_VCI 65535
57 #define __SO_ENCODE(l,n,t) ((((l) & 0x1FF) << 22) | ((n) << 16) | \
59 #define __SO_LEVEL_MATCH(c,m) (((c) >> 22) == ((m) & 0x1FF))
60 #define __SO_NUMBER(c) (((c) >> 16) & 0x3f)
61 #define __SO_SIZE(c) ((c) & 0x3fff)
67 #define SO_SETCLP __SO_ENCODE(SOL_ATM,0,int)
69 #define SO_CIRANGE __SO_ENCODE(SOL_ATM,1,struct atm_cirange)
72 #define SO_ATMQOS __SO_ENCODE(SOL_ATM,2,struct atm_qos)
74 #define SO_ATMSAP __SO_ENCODE(SOL_ATM,3,struct atm_sap)
76 #define SO_ATMPVC __SO_ENCODE(SOL_ATM,4,struct sockaddr_atmpvc)
78 #define SO_MULTIPOINT __SO_ENCODE(SOL_ATM, 5, int)
93 #define ATM_HDR_GFC_MASK 0xf0000000
94 #define ATM_HDR_GFC_SHIFT 28
95 #define ATM_HDR_VPI_MASK 0x0ff00000
96 #define ATM_HDR_VPI_SHIFT 20
97 #define ATM_HDR_VCI_MASK 0x000ffff0
98 #define ATM_HDR_VCI_SHIFT 4
99 #define ATM_HDR_PTI_MASK 0x0000000e
100 #define ATM_HDR_PTI_SHIFT 1
101 #define ATM_HDR_CLP 0x00000001
108 #define ATM_PTI_US0 0
109 #define ATM_PTI_US1 1
110 #define ATM_PTI_UCES0 2
111 #define ATM_PTI_UCES1 3
112 #define ATM_PTI_SEGF5 4
113 #define ATM_PTI_E2EF5 5
114 #define ATM_PTI_RSV_RM 6
115 #define ATM_PTI_RSV 7
131 #define ATM_ANYCLASS 5
133 #define ATM_MAX_PCR -1
168 #define ATM_ITF_ANY -1
169 #define ATM_VPI_ANY -1
170 #define ATM_VCI_ANY -1
171 #define ATM_VPI_UNSPEC -2
172 #define ATM_VCI_UNSPEC -2
186 #define ATM_ESA_LEN 20
187 #define ATM_E164_LEN 12
189 #define ATM_AFI_DCC 0x39
190 #define ATM_AFI_ICD 0x47
191 #define ATM_AFI_E164 0x45
192 #define ATM_AFI_LOCAL 0x49
194 #define ATM_AFI_DCC_GROUP 0xBD
195 #define ATM_AFI_ICD_GROUP 0xC5
196 #define ATM_AFI_E164_GROUP 0xC3
197 #define ATM_AFI_LOCAL_GROUP 0xC7
199 #define ATM_LIJ_NONE 0
201 #define ATM_LIJ_RPJ 2
219 return *addr.sas_addr.
prv || *addr.sas_addr.
pub;
225 return addr.sap_addr.
itf || addr.sap_addr.
vpi || addr.sap_addr.
vci;