Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
atm.h File Reference
#include <linux/compiler.h>
#include <linux/atmapi.h>
#include <linux/atmsap.h>
#include <linux/atmioc.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  atm_trafprm
 
struct  atm_qos
 
struct  sockaddr_atmpvc
 
struct  sockaddr_atmsvc
 
struct  atmif_sioc
 

Macros

#define ATM_CELL_SIZE   53 /* ATM cell size incl. header */
 
#define ATM_CELL_PAYLOAD   48 /* ATM payload size */
 
#define ATM_AAL0_SDU   52 /* AAL0 SDU size */
 
#define ATM_MAX_AAL34_PDU   65535 /* maximum AAL3/4 PDU payload */
 
#define ATM_AAL5_TRAILER   8 /* AAL5 trailer size */
 
#define ATM_MAX_AAL5_PDU   65535 /* maximum AAL5 PDU payload */
 
#define ATM_MAX_CDV   9999 /* maximum (default) CDV */
 
#define ATM_NOT_RSV_VCI   32 /* first non-reserved VCI value */
 
#define ATM_MAX_VPI   255 /* maximum VPI at the UNI */
 
#define ATM_MAX_VPI_NNI   4096 /* maximum VPI at the NNI */
 
#define ATM_MAX_VCI   65535 /* maximum VCI */
 
#define ATM_NO_AAL   0 /* AAL not specified */
 
#define ATM_AAL0   13 /* "raw" ATM cells */
 
#define ATM_AAL1   1 /* AAL1 (CBR) */
 
#define ATM_AAL2   2 /* AAL2 (VBR) */
 
#define ATM_AAL34   3 /* AAL3/4 (data) */
 
#define ATM_AAL5   5 /* AAL5 (data) */
 
#define __SO_ENCODE(l, n, t)
 
#define __SO_LEVEL_MATCH(c, m)   (((c) >> 22) == ((m) & 0x1FF))
 
#define __SO_NUMBER(c)   (((c) >> 16) & 0x3f)
 
#define __SO_SIZE(c)   ((c) & 0x3fff)
 
#define SO_SETCLP   __SO_ENCODE(SOL_ATM,0,int)
 
#define SO_CIRANGE   __SO_ENCODE(SOL_ATM,1,struct atm_cirange)
 
#define SO_ATMQOS   __SO_ENCODE(SOL_ATM,2,struct atm_qos)
 
#define SO_ATMSAP   __SO_ENCODE(SOL_ATM,3,struct atm_sap)
 
#define SO_ATMPVC   __SO_ENCODE(SOL_ATM,4,struct sockaddr_atmpvc)
 
#define SO_MULTIPOINT   __SO_ENCODE(SOL_ATM, 5, int)
 
#define ATM_HDR_GFC_MASK   0xf0000000
 
#define ATM_HDR_GFC_SHIFT   28
 
#define ATM_HDR_VPI_MASK   0x0ff00000
 
#define ATM_HDR_VPI_SHIFT   20
 
#define ATM_HDR_VCI_MASK   0x000ffff0
 
#define ATM_HDR_VCI_SHIFT   4
 
#define ATM_HDR_PTI_MASK   0x0000000e
 
#define ATM_HDR_PTI_SHIFT   1
 
#define ATM_HDR_CLP   0x00000001
 
#define ATM_PTI_US0   0 /* user data cell, congestion not exp, SDU-type 0 */
 
#define ATM_PTI_US1   1 /* user data cell, congestion not exp, SDU-type 1 */
 
#define ATM_PTI_UCES0   2 /* user data cell, cong. experienced, SDU-type 0 */
 
#define ATM_PTI_UCES1   3 /* user data cell, cong. experienced, SDU-type 1 */
 
#define ATM_PTI_SEGF5   4 /* segment OAM F5 flow related cell */
 
#define ATM_PTI_E2EF5   5 /* end-to-end OAM F5 flow related cell */
 
#define ATM_PTI_RSV_RM   6 /* reserved for traffic control/resource mgmt */
 
#define ATM_PTI_RSV   7 /* reserved */
 
#define ATM_NONE   0 /* no traffic */
 
#define ATM_UBR   1
 
#define ATM_CBR   2
 
#define ATM_VBR   3
 
#define ATM_ABR   4
 
#define ATM_ANYCLASS   5 /* compatible with everything */
 
#define ATM_MAX_PCR   -1 /* maximum available PCR */
 
#define ATM_ITF_ANY   -1 /* "magic" PVC address values */
 
#define ATM_VPI_ANY   -1
 
#define ATM_VCI_ANY   -1
 
#define ATM_VPI_UNSPEC   -2
 
#define ATM_VCI_UNSPEC   -2
 
#define ATM_ESA_LEN   20 /* ATM End System Address length */
 
#define ATM_E164_LEN   12 /* maximum E.164 number length */
 
#define ATM_AFI_DCC   0x39 /* DCC ATM Format */
 
#define ATM_AFI_ICD   0x47 /* ICD ATM Format */
 
#define ATM_AFI_E164   0x45 /* E.164 ATM Format */
 
#define ATM_AFI_LOCAL   0x49 /* Local ATM Format */
 
#define ATM_AFI_DCC_GROUP   0xBD /* DCC ATM Group Format */
 
#define ATM_AFI_ICD_GROUP   0xC5 /* ICD ATM Group Format */
 
#define ATM_AFI_E164_GROUP   0xC3 /* E.164 ATM Group Format */
 
#define ATM_AFI_LOCAL_GROUP   0xC7 /* Local ATM Group Format */
 
#define ATM_LIJ_NONE   0 /* no leaf-initiated join */
 
#define ATM_LIJ   1 /* request joining */
 
#define ATM_LIJ_RPJ   2 /* set to root-prompted join */
 
#define ATM_LIJ_NJ   3 /* set to network join */
 

Typedefs

typedef unsigned short atm_backend_t
 

Macro Definition Documentation

#define __SO_ENCODE (   l,
  n,
  t 
)
Value:
((((l) & 0x1FF) << 22) | ((n) << 16) | \
sizeof(t))

Definition at line 57 of file atm.h.

#define __SO_LEVEL_MATCH (   c,
  m 
)    (((c) >> 22) == ((m) & 0x1FF))

Definition at line 59 of file atm.h.

#define __SO_NUMBER (   c)    (((c) >> 16) & 0x3f)

Definition at line 60 of file atm.h.

#define __SO_SIZE (   c)    ((c) & 0x3fff)

Definition at line 61 of file atm.h.

#define ATM_AAL0   13 /* "raw" ATM cells */

Definition at line 43 of file atm.h.

#define ATM_AAL0_SDU   52 /* AAL0 SDU size */

Definition at line 29 of file atm.h.

#define ATM_AAL1   1 /* AAL1 (CBR) */

Definition at line 44 of file atm.h.

#define ATM_AAL2   2 /* AAL2 (VBR) */

Definition at line 45 of file atm.h.

#define ATM_AAL34   3 /* AAL3/4 (data) */

Definition at line 46 of file atm.h.

#define ATM_AAL5   5 /* AAL5 (data) */

Definition at line 47 of file atm.h.

#define ATM_AAL5_TRAILER   8 /* AAL5 trailer size */

Definition at line 31 of file atm.h.

#define ATM_ABR   4

Definition at line 130 of file atm.h.

#define ATM_AFI_DCC   0x39 /* DCC ATM Format */

Definition at line 189 of file atm.h.

#define ATM_AFI_DCC_GROUP   0xBD /* DCC ATM Group Format */

Definition at line 194 of file atm.h.

#define ATM_AFI_E164   0x45 /* E.164 ATM Format */

Definition at line 191 of file atm.h.

#define ATM_AFI_E164_GROUP   0xC3 /* E.164 ATM Group Format */

Definition at line 196 of file atm.h.

#define ATM_AFI_ICD   0x47 /* ICD ATM Format */

Definition at line 190 of file atm.h.

#define ATM_AFI_ICD_GROUP   0xC5 /* ICD ATM Group Format */

Definition at line 195 of file atm.h.

#define ATM_AFI_LOCAL   0x49 /* Local ATM Format */

Definition at line 192 of file atm.h.

#define ATM_AFI_LOCAL_GROUP   0xC7 /* Local ATM Group Format */

Definition at line 197 of file atm.h.

#define ATM_ANYCLASS   5 /* compatible with everything */

Definition at line 131 of file atm.h.

#define ATM_CBR   2

Definition at line 128 of file atm.h.

#define ATM_CELL_PAYLOAD   48 /* ATM payload size */

Definition at line 28 of file atm.h.

#define ATM_CELL_SIZE   53 /* ATM cell size incl. header */

Definition at line 27 of file atm.h.

#define ATM_E164_LEN   12 /* maximum E.164 number length */

Definition at line 187 of file atm.h.

#define ATM_ESA_LEN   20 /* ATM End System Address length */

Definition at line 186 of file atm.h.

#define ATM_HDR_CLP   0x00000001

Definition at line 101 of file atm.h.

#define ATM_HDR_GFC_MASK   0xf0000000

Definition at line 93 of file atm.h.

#define ATM_HDR_GFC_SHIFT   28

Definition at line 94 of file atm.h.

#define ATM_HDR_PTI_MASK   0x0000000e

Definition at line 99 of file atm.h.

#define ATM_HDR_PTI_SHIFT   1

Definition at line 100 of file atm.h.

#define ATM_HDR_VCI_MASK   0x000ffff0

Definition at line 97 of file atm.h.

#define ATM_HDR_VCI_SHIFT   4

Definition at line 98 of file atm.h.

#define ATM_HDR_VPI_MASK   0x0ff00000

Definition at line 95 of file atm.h.

#define ATM_HDR_VPI_SHIFT   20

Definition at line 96 of file atm.h.

#define ATM_ITF_ANY   -1 /* "magic" PVC address values */

Definition at line 168 of file atm.h.

#define ATM_LIJ   1 /* request joining */

Definition at line 200 of file atm.h.

#define ATM_LIJ_NJ   3 /* set to network join */

Definition at line 202 of file atm.h.

#define ATM_LIJ_NONE   0 /* no leaf-initiated join */

Definition at line 199 of file atm.h.

#define ATM_LIJ_RPJ   2 /* set to root-prompted join */

Definition at line 201 of file atm.h.

#define ATM_MAX_AAL34_PDU   65535 /* maximum AAL3/4 PDU payload */

Definition at line 30 of file atm.h.

#define ATM_MAX_AAL5_PDU   65535 /* maximum AAL5 PDU payload */

Definition at line 32 of file atm.h.

#define ATM_MAX_CDV   9999 /* maximum (default) CDV */

Definition at line 33 of file atm.h.

#define ATM_MAX_PCR   -1 /* maximum available PCR */

Definition at line 133 of file atm.h.

#define ATM_MAX_VCI   65535 /* maximum VCI */

Definition at line 38 of file atm.h.

#define ATM_MAX_VPI   255 /* maximum VPI at the UNI */

Definition at line 36 of file atm.h.

#define ATM_MAX_VPI_NNI   4096 /* maximum VPI at the NNI */

Definition at line 37 of file atm.h.

#define ATM_NO_AAL   0 /* AAL not specified */

Definition at line 42 of file atm.h.

#define ATM_NONE   0 /* no traffic */

Definition at line 126 of file atm.h.

#define ATM_NOT_RSV_VCI   32 /* first non-reserved VCI value */

Definition at line 34 of file atm.h.

#define ATM_PTI_E2EF5   5 /* end-to-end OAM F5 flow related cell */

Definition at line 113 of file atm.h.

#define ATM_PTI_RSV   7 /* reserved */

Definition at line 115 of file atm.h.

#define ATM_PTI_RSV_RM   6 /* reserved for traffic control/resource mgmt */

Definition at line 114 of file atm.h.

#define ATM_PTI_SEGF5   4 /* segment OAM F5 flow related cell */

Definition at line 112 of file atm.h.

#define ATM_PTI_UCES0   2 /* user data cell, cong. experienced, SDU-type 0 */

Definition at line 110 of file atm.h.

#define ATM_PTI_UCES1   3 /* user data cell, cong. experienced, SDU-type 1 */

Definition at line 111 of file atm.h.

#define ATM_PTI_US0   0 /* user data cell, congestion not exp, SDU-type 0 */

Definition at line 108 of file atm.h.

#define ATM_PTI_US1   1 /* user data cell, congestion not exp, SDU-type 1 */

Definition at line 109 of file atm.h.

#define ATM_UBR   1

Definition at line 127 of file atm.h.

#define ATM_VBR   3

Definition at line 129 of file atm.h.

#define ATM_VCI_ANY   -1

Definition at line 170 of file atm.h.

#define ATM_VCI_UNSPEC   -2

Definition at line 172 of file atm.h.

#define ATM_VPI_ANY   -1

Definition at line 169 of file atm.h.

#define ATM_VPI_UNSPEC   -2

Definition at line 171 of file atm.h.

#define SO_ATMPVC   __SO_ENCODE(SOL_ATM,4,struct sockaddr_atmpvc)

Definition at line 76 of file atm.h.

#define SO_ATMQOS   __SO_ENCODE(SOL_ATM,2,struct atm_qos)

Definition at line 72 of file atm.h.

#define SO_ATMSAP   __SO_ENCODE(SOL_ATM,3,struct atm_sap)

Definition at line 74 of file atm.h.

#define SO_CIRANGE   __SO_ENCODE(SOL_ATM,1,struct atm_cirange)

Definition at line 69 of file atm.h.

#define SO_MULTIPOINT   __SO_ENCODE(SOL_ATM, 5, int)

Definition at line 78 of file atm.h.

#define SO_SETCLP   __SO_ENCODE(SOL_ATM,0,int)

Definition at line 67 of file atm.h.

Typedef Documentation

typedef unsigned short atm_backend_t

Definition at line 240 of file atm.h.