Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: atmsap.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/* atmsap.h - ATM Service Access Point addressing definitions */
[1] Fix | Delete
[2] Fix | Delete
/* Written 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
#ifndef _LINUX_ATMSAP_H
[6] Fix | Delete
#define _LINUX_ATMSAP_H
[7] Fix | Delete
[8] Fix | Delete
#include <linux/atmapi.h>
[9] Fix | Delete
[10] Fix | Delete
/*
[11] Fix | Delete
* BEGIN_xx and END_xx markers are used for automatic generation of
[12] Fix | Delete
* documentation. Do not change them.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Layer 2 protocol identifiers
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
/* BEGIN_L2 */
[21] Fix | Delete
#define ATM_L2_NONE 0 /* L2 not specified */
[22] Fix | Delete
#define ATM_L2_ISO1745 0x01 /* Basic mode ISO 1745 */
[23] Fix | Delete
#define ATM_L2_Q291 0x02 /* ITU-T Q.291 (Rec. I.441) */
[24] Fix | Delete
#define ATM_L2_X25_LL 0x06 /* ITU-T X.25, link layer */
[25] Fix | Delete
#define ATM_L2_X25_ML 0x07 /* ITU-T X.25, multilink */
[26] Fix | Delete
#define ATM_L2_LAPB 0x08 /* Extended LAPB, half-duplex (Rec. T.71) */
[27] Fix | Delete
#define ATM_L2_HDLC_ARM 0x09 /* HDLC ARM (ISO/IEC 4335) */
[28] Fix | Delete
#define ATM_L2_HDLC_NRM 0x0a /* HDLC NRM (ISO/IEC 4335) */
[29] Fix | Delete
#define ATM_L2_HDLC_ABM 0x0b /* HDLC ABM (ISO/IEC 4335) */
[30] Fix | Delete
#define ATM_L2_ISO8802 0x0c /* LAN LLC (ISO/IEC 8802/2) */
[31] Fix | Delete
#define ATM_L2_X75 0x0d /* ITU-T X.75, SLP */
[32] Fix | Delete
#define ATM_L2_Q922 0x0e /* ITU-T Q.922 */
[33] Fix | Delete
#define ATM_L2_USER 0x10 /* user-specified */
[34] Fix | Delete
#define ATM_L2_ISO7776 0x11 /* ISO 7776 DTE-DTE */
[35] Fix | Delete
/* END_L2 */
[36] Fix | Delete
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* Layer 3 protocol identifiers
[40] Fix | Delete
*/
[41] Fix | Delete
[42] Fix | Delete
/* BEGIN_L3 */
[43] Fix | Delete
#define ATM_L3_NONE 0 /* L3 not specified */
[44] Fix | Delete
#define ATM_L3_X25 0x06 /* ITU-T X.25, packet layer */
[45] Fix | Delete
#define ATM_L3_ISO8208 0x07 /* ISO/IEC 8208 */
[46] Fix | Delete
#define ATM_L3_X223 0x08 /* ITU-T X.223 | ISO/IEC 8878 */
[47] Fix | Delete
#define ATM_L3_ISO8473 0x09 /* ITU-T X.233 | ISO/IEC 8473 */
[48] Fix | Delete
#define ATM_L3_T70 0x0a /* ITU-T T.70 minimum network layer */
[49] Fix | Delete
#define ATM_L3_TR9577 0x0b /* ISO/IEC TR 9577 */
[50] Fix | Delete
#define ATM_L3_H310 0x0c /* ITU-T Recommendation H.310 */
[51] Fix | Delete
#define ATM_L3_H321 0x0d /* ITU-T Recommendation H.321 */
[52] Fix | Delete
#define ATM_L3_USER 0x10 /* user-specified */
[53] Fix | Delete
/* END_L3 */
[54] Fix | Delete
[55] Fix | Delete
[56] Fix | Delete
/*
[57] Fix | Delete
* High layer identifiers
[58] Fix | Delete
*/
[59] Fix | Delete
[60] Fix | Delete
/* BEGIN_HL */
[61] Fix | Delete
#define ATM_HL_NONE 0 /* HL not specified */
[62] Fix | Delete
#define ATM_HL_ISO 0x01 /* ISO */
[63] Fix | Delete
#define ATM_HL_USER 0x02 /* user-specific */
[64] Fix | Delete
#define ATM_HL_HLP 0x03 /* high layer profile - UNI 3.0 only */
[65] Fix | Delete
#define ATM_HL_VENDOR 0x04 /* vendor-specific application identifier */
[66] Fix | Delete
/* END_HL */
[67] Fix | Delete
[68] Fix | Delete
[69] Fix | Delete
/*
[70] Fix | Delete
* ITU-T coded mode of operation
[71] Fix | Delete
*/
[72] Fix | Delete
[73] Fix | Delete
/* BEGIN_IMD */
[74] Fix | Delete
#define ATM_IMD_NONE 0 /* mode not specified */
[75] Fix | Delete
#define ATM_IMD_NORMAL 1 /* normal mode of operation */
[76] Fix | Delete
#define ATM_IMD_EXTENDED 2 /* extended mode of operation */
[77] Fix | Delete
/* END_IMD */
[78] Fix | Delete
[79] Fix | Delete
/*
[80] Fix | Delete
* H.310 code points
[81] Fix | Delete
*/
[82] Fix | Delete
[83] Fix | Delete
#define ATM_TT_NONE 0 /* terminal type not specified */
[84] Fix | Delete
#define ATM_TT_RX 1 /* receive only */
[85] Fix | Delete
#define ATM_TT_TX 2 /* send only */
[86] Fix | Delete
#define ATM_TT_RXTX 3 /* receive and send */
[87] Fix | Delete
[88] Fix | Delete
#define ATM_MC_NONE 0 /* no multiplexing */
[89] Fix | Delete
#define ATM_MC_TS 1 /* transport stream (TS) */
[90] Fix | Delete
#define ATM_MC_TS_FEC 2 /* transport stream with forward error corr. */
[91] Fix | Delete
#define ATM_MC_PS 3 /* program stream (PS) */
[92] Fix | Delete
#define ATM_MC_PS_FEC 4 /* program stream with forward error corr. */
[93] Fix | Delete
#define ATM_MC_H221 5 /* ITU-T Rec. H.221 */
[94] Fix | Delete
[95] Fix | Delete
/*
[96] Fix | Delete
* SAP structures
[97] Fix | Delete
*/
[98] Fix | Delete
[99] Fix | Delete
#define ATM_MAX_HLI 8 /* maximum high-layer information length */
[100] Fix | Delete
[101] Fix | Delete
[102] Fix | Delete
struct atm_blli {
[103] Fix | Delete
unsigned char l2_proto; /* layer 2 protocol */
[104] Fix | Delete
union {
[105] Fix | Delete
struct {
[106] Fix | Delete
unsigned char mode; /* mode of operation (ATM_IMD_xxx), 0 if */
[107] Fix | Delete
/* absent */
[108] Fix | Delete
unsigned char window; /* window size (k), 1-127 (0 to omit) */
[109] Fix | Delete
} itu; /* ITU-T encoding */
[110] Fix | Delete
unsigned char user; /* user-specified l2 information */
[111] Fix | Delete
} l2;
[112] Fix | Delete
unsigned char l3_proto; /* layer 3 protocol */
[113] Fix | Delete
union {
[114] Fix | Delete
struct {
[115] Fix | Delete
unsigned char mode; /* mode of operation (ATM_IMD_xxx), 0 if */
[116] Fix | Delete
/* absent */
[117] Fix | Delete
unsigned char def_size; /* default packet size (log2), 4-12 (0 to */
[118] Fix | Delete
/* omit) */
[119] Fix | Delete
unsigned char window;/* packet window size, 1-127 (0 to omit) */
[120] Fix | Delete
} itu; /* ITU-T encoding */
[121] Fix | Delete
unsigned char user; /* user specified l3 information */
[122] Fix | Delete
struct { /* if l3_proto = ATM_L3_H310 */
[123] Fix | Delete
unsigned char term_type; /* terminal type */
[124] Fix | Delete
unsigned char fw_mpx_cap; /* forward multiplexing capability */
[125] Fix | Delete
/* only if term_type != ATM_TT_NONE */
[126] Fix | Delete
unsigned char bw_mpx_cap; /* backward multiplexing capability */
[127] Fix | Delete
/* only if term_type != ATM_TT_NONE */
[128] Fix | Delete
} h310;
[129] Fix | Delete
struct { /* if l3_proto = ATM_L3_TR9577 */
[130] Fix | Delete
unsigned char ipi; /* initial protocol id */
[131] Fix | Delete
unsigned char snap[5];/* IEEE 802.1 SNAP identifier */
[132] Fix | Delete
/* (only if ipi == NLPID_IEEE802_1_SNAP) */
[133] Fix | Delete
} tr9577;
[134] Fix | Delete
} l3;
[135] Fix | Delete
} __ATM_API_ALIGN;
[136] Fix | Delete
[137] Fix | Delete
[138] Fix | Delete
struct atm_bhli {
[139] Fix | Delete
unsigned char hl_type; /* high layer information type */
[140] Fix | Delete
unsigned char hl_length; /* length (only if hl_type == ATM_HL_USER || */
[141] Fix | Delete
/* hl_type == ATM_HL_ISO) */
[142] Fix | Delete
unsigned char hl_info[ATM_MAX_HLI];/* high layer information */
[143] Fix | Delete
};
[144] Fix | Delete
[145] Fix | Delete
[146] Fix | Delete
#define ATM_MAX_BLLI 3 /* maximum number of BLLI elements */
[147] Fix | Delete
[148] Fix | Delete
[149] Fix | Delete
struct atm_sap {
[150] Fix | Delete
struct atm_bhli bhli; /* local SAP, high-layer information */
[151] Fix | Delete
struct atm_blli blli[ATM_MAX_BLLI] __ATM_API_ALIGN;
[152] Fix | Delete
/* local SAP, low-layer info */
[153] Fix | Delete
};
[154] Fix | Delete
[155] Fix | Delete
[156] Fix | Delete
static __inline__ int blli_in_use(struct atm_blli blli)
[157] Fix | Delete
{
[158] Fix | Delete
return blli.l2_proto || blli.l3_proto;
[159] Fix | Delete
}
[160] Fix | Delete
[161] Fix | Delete
#endif
[162] Fix | Delete
[163] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function