3 char const *cvs_id_constants
= "$Id: constants.c,v 1.4 2005/01/05 13:37:56 bodea Exp $";
8 #define CONSTANT(table, ...) \
9 static char const *table ## s[] = { \
12 char const *table(int index) \
15 if (index >= 0 && index < sizeof(table ## s) / sizeof(table ## s[0]) \
16 && table ## s[index]) \
17 return table ## s[index]; \
18 snprintf(n, sizeof(n), "%d", index); \
24 "Maximum-Receive-Unit", // 1
25 "Async-Control-Map", // 2
26 "Authentication-Protocol", // 3
27 "Quality-Protocol", // 4
30 "Protocol-Field-Compression", // 7
31 "Address-and-Control-Field-Compression" // 8
37 "Protocol Version", // 2
38 "Framing Capabilities", // 3
39 "Bearer Capabilities", // 4
41 "Firmware Revision", // 6
44 "Assigned Tunnel ID", // 9
45 "Receive Window Size", // 10
47 "Q.931 Cause Code", // 12
48 "Challenge Response", // 13
49 "Assigned Session ID", // 14
50 "Call Serial Number", // 15
53 "Bearer Type", // 18 (2 = Analog, 1 = Digital)
54 "Framing Type", // 19 (2 = Async, 1 = Sync)
56 "Called Number", // 21
57 "Calling Number", // 22
59 "Tx Connect Speed", // 24
60 "Physical Channel ID", // 25
61 "Initial Received LCP CONFREQ", // 26
62 "Last Sent LCP CONFREQ", // 27
63 "Last Received LCP CONFREQ", // 28
64 "Proxy Authen Type", // 29
65 "Proxy Authen Name", // 30
66 "Proxy Authen Challenge", // 31
67 "Proxy Authen ID", // 32
68 "Proxy Authen Response", // 33
71 "Random Vector", // 36
72 "Private Group ID", // 37
73 "Rx Connect Speed", // 38
74 "Sequencing Required" // 39
77 CONSTANT(stopccn_result_code
,
79 "General request to clear control connection", // 1
80 "General error--Error Code indicates the problem", // 2
81 "Control channel already exists", // 3
82 "Requester is not authorized to establish a"
83 " control channel", // 4
84 "The protocol version of the requester is not"
86 "Requester is being shut down", // 6
87 "Finite State Machine error" // 7
90 CONSTANT(cdn_result_code
,
92 "Call disconnected due to loss of carrier", // 1
93 "Call disconnected for the reason indicated in"
95 "Call disconnected for administrative reasons", // 3
96 "Call failed due to lack of appropriate facilities"
97 " being available (temporary condition)", // 4
98 "Call failed due to lack of appropriate facilities"
99 " being available (permanent condition)", // 5
100 "Invalid destination", // 6
101 "Call failed due to no carrier detected", // 7
102 "Call failed due to detection of a busy signal", // 8
103 "Call failed due to lack of a dial tone", // 9
104 "Call was not established within time allotted by"
106 "Call was connected but no appropriate framing was"
111 "No general error", // 0
112 "No control connection exists yet for this LAC-LNS"
114 "Length is wrong", // 2
115 "One of the field values was out of range or"
116 " reserved field was non-zero", // 3
117 "Insufficient resources to handle this operation"
119 "The Session ID is invalid in this context", // 5
120 "A generic vendor-specific error occurred in the"
122 "Try another LNS", // 7
123 "Session or tunnel was shutdown due to receipt of"
124 " an unknown AVP with the M-bit set" // 8
129 "Textual username/password exchange", // 1
132 "No Authentication", // 4
133 "Microsoft CHAP Version 1 (MSCHAPv1)" // 5
136 CONSTANT(ppp_lcp_type
,
148 "DiscardRequest", // 11
152 CONSTANT(radius_state
,
162 CONSTANT(radius_code
,
164 "Access-Request", // 1
165 "Access-Accept", // 2
166 "Access-Reject", // 3
167 "Accounting-Request", // 4
168 "Accounting-Response", // 5
174 "Access-Challenge", // 11
175 "Status-Server (experimental)", // 12
176 "Status-Client (experimental)" // 13
179 CONSTANT(l2tp_message_type
,