Go to the documentation of this file.
13 #include <linux/slab.h>
16 #define X25_ADDR_LEN 16
18 #define X25_MAX_L2_LEN 18
20 #define X25_STD_MIN_LEN 3
21 #define X25_EXT_MIN_LEN 4
23 #define X25_GFI_SEQ_MASK 0x30
24 #define X25_GFI_STDSEQ 0x10
25 #define X25_GFI_EXTSEQ 0x20
27 #define X25_Q_BIT 0x80
28 #define X25_D_BIT 0x40
29 #define X25_STD_M_BIT 0x10
30 #define X25_EXT_M_BIT 0x01
32 #define X25_CALL_REQUEST 0x0B
33 #define X25_CALL_ACCEPTED 0x0F
34 #define X25_CLEAR_REQUEST 0x13
35 #define X25_CLEAR_CONFIRMATION 0x17
37 #define X25_INTERRUPT 0x23
38 #define X25_INTERRUPT_CONFIRMATION 0x27
42 #define X25_RESET_REQUEST 0x1B
43 #define X25_RESET_CONFIRMATION 0x1F
44 #define X25_REGISTRATION_REQUEST 0xF3
45 #define X25_REGISTRATION_CONFIRMATION 0xF7
46 #define X25_RESTART_REQUEST 0xFB
47 #define X25_RESTART_CONFIRMATION 0xFF
48 #define X25_DIAGNOSTIC 0xF1
49 #define X25_ILLEGAL 0xFD
53 #define X25_COND_ACK_PENDING 0x01
54 #define X25_COND_OWN_RX_BUSY 0x02
55 #define X25_COND_PEER_RX_BUSY 0x04
73 #define X25_DEFAULT_T20 (180 * HZ)
74 #define X25_DEFAULT_T21 (200 * HZ)
75 #define X25_DEFAULT_T22 (180 * HZ)
76 #define X25_DEFAULT_T23 (180 * HZ)
77 #define X25_DEFAULT_T2 (3 * HZ)
79 #define X25_DEFAULT_WINDOW_SIZE 2
80 #define X25_DEFAULT_PACKET_SIZE X25_PS128
81 #define X25_DEFAULT_THROUGHPUT 0x0A
82 #define X25_DEFAULT_REVERSE 0x00
84 #define X25_SMODULUS 8
85 #define X25_EMODULUS 128
91 #define X25_FAC_CLASS_MASK 0xC0
93 #define X25_FAC_CLASS_A 0x00
94 #define X25_FAC_CLASS_B 0x40
95 #define X25_FAC_CLASS_C 0x80
96 #define X25_FAC_CLASS_D 0xC0
98 #define X25_FAC_REVERSE 0x01
99 #define X25_FAC_THROUGHPUT 0x02
100 #define X25_FAC_PACKET_SIZE 0x42
101 #define X25_FAC_WINDOW_SIZE 0x43
103 #define X25_MAX_FAC_LEN 60
104 #define X25_MAX_CUD_LEN 128
106 #define X25_FAC_CALLING_AE 0xCB
107 #define X25_FAC_CALLED_AE 0xC9
109 #define X25_MARKER 0x00
110 #define X25_DTE_SERVICES 0x0F
111 #define X25_MAX_AE_LEN 40
112 #define X25_MAX_DTE_FACIL_LEN 21
115 #define X25_Q_BIT_FLAG 0
116 #define X25_INTERRUPT_FLAG 1
117 #define X25_ACCPT_APPRV_FLAG 2
310 #define X25_SKB_CB(s) ((struct x25_skb_cb *) ((s)->cb))