// L2TPNS: constants
-char const *cvs_id_constants = "$Id: constants.c,v 1.5 2005/05/05 10:02:07 bodea Exp $";
-
#include <stdio.h>
#include "constants.h"
return n; \
}
-CONSTANT(lcp_type,
+CONSTANT(l2tp_code,
0, // 0
- "Maximum-Receive-Unit", // 1
- "Async-Control-Map", // 2
- "Authentication-Protocol", // 3
- "Quality-Protocol", // 4
- "Magic-Number", // 5
- 0, // 6
- "Protocol-Field-Compression", // 7
- "Address-and-Control-Field-Compression" // 8
+ "SCCRQ", // 1
+ "SCCRP", // 2
+ "SCCCN", // 3
+ "StopCCN", // 4
+ 0, // 5
+ "HELLO", // 6
+ "OCRQ", // 7
+ "OCRP", // 8
+ "OCCN", // 9
+ "ICRQ", // 10
+ "ICRP", // 11
+ "ICCN", // 12
+ 0, // 13
+ "CDN", // 14
+ "WEN", // 15
+ "SLI" // 16
)
-CONSTANT(avp_name,
+CONSTANT(l2tp_avp_name,
"Message Type", // 0
"Result Code", // 1
"Protocol Version", // 2
"Sequencing Required" // 39
)
-CONSTANT(stopccn_result_code,
+CONSTANT(l2tp_stopccn_result_code,
0, // 0
"General request to clear control connection", // 1
"General error--Error Code indicates the problem", // 2
"Finite State Machine error" // 7
)
-CONSTANT(cdn_result_code,
+CONSTANT(l2tp_cdn_result_code,
0, // 0
"Call disconnected due to loss of carrier", // 1
"Call disconnected for the reason indicated in"
" detected" // 11
)
-CONSTANT(error_code,
+CONSTANT(l2tp_error_code,
"No general error", // 0
"No control connection exists yet for this LAC-LNS"
" pair", // 1
" an unknown AVP with the M-bit set" // 8
)
-CONSTANT(auth_type,
+CONSTANT(ppp_phase,
+ "Dead", // 0
+ "Establish", // 1
+ "Authenticate", // 2
+ "Network", // 3
+ "Terminate", // 4
+)
+
+CONSTANT(ppp_state,
+ "Initial", // 0
+ "Starting", // 1
+ "Closed", // 2
+ "Stopped", // 3
+ "Closing", // 4
+ "Stopping", // 5
+ "Request-Sent", // 6
+ "Ack-Received", // 7
+ "Ack-Sent", // 8
+ "Opened" // 9
+)
+
+CONSTANT(ppp_auth_type,
0, // 0
"Textual username/password exchange", // 1
"PPP CHAP", // 2
"Microsoft CHAP Version 1 (MSCHAPv1)" // 5
)
-CONSTANT(ppp_lcp_type,
+CONSTANT(ppp_code,
0, // 0
"ConfigReq", // 1
"ConfigAck", // 2
"IdentRequest" // 12
)
+CONSTANT(ppp_lcp_option,
+ 0, // 0
+ "Maximum-Receive-Unit", // 1
+ "Async-Control-Map", // 2
+ "Authentication-Protocol", // 3
+ "Quality-Protocol", // 4
+ "Magic-Number", // 5
+ 0, // 6
+ "Protocol-Field-Compression", // 7
+ "Address-and-Control-Field-Compression" // 8
+)
+
CONSTANT(radius_state,
"RADIUSNULL", // 0
"RADIUSCHAP", // 1
"RADIUSAUTH", // 2
- "RADIUSIPCP", // 3
- "RADIUSSTART", // 4
- "RADIUSSTOP", // 5
- "RADIUSINTERIM", // 6
- "RADIUSWAIT" // 7
+ "RADIUSSTART", // 3
+ "RADIUSSTOP", // 4
+ "RADIUSINTERIM", // 5
+ "RADIUSWAIT", // 6
+ "RADIUSJUSTAUTH" // 7
)
CONSTANT(radius_code,
0, // 9
0, // 10
"Access-Challenge", // 11
- "Status-Server (experimental)", // 12
- "Status-Client (experimental)" // 13
-)
-
-CONSTANT(l2tp_message_type,
- 0, // 0
- "SCCRQ", // 1
- "SCCRP", // 2
- "SCCCN", // 3
- "StopCCN", // 4
- 0, // 5
- "HELLO", // 6
- "OCRQ", // 7
- "OCRP", // 8
- "OCCN", // 9
- "ICRQ", // 10
- "ICRP", // 11
- "ICCN", // 12
- 0, // 13
- "CDN", // 14
- "WEN", // 15
- "SLI" // 16
+ "Status-Server", // 12
+ "Status-Client", // 13
+ 0, 0, 0, 0, 0, 0, // 14-19
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20-29
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 30-39
+ "Disconnect-Request", // 40
+ "Disconnect-ACK", // 41
+ "Disconnect-NAK", // 42
+ "CoA-Request", // 43
+ "CoA-ACK", // 44
+ "CoA-NAK" // 45
)