libpng: moved to github
[openwrt.org/packages.git] / net / openl2tp / src / l2tp_rpc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
/*
 * Please do not edit this file.
 * It was generated using rpcgen.
 */
 
#ifndef _L2TP_RPC_H_RPCGEN
#define _L2TP_RPC_H_RPCGEN
 
#include <rpc/rpc.h>
 
#include <pthread.h>
 
#ifdef __cplusplus
extern "C" {
#endif
 
#define L2TP_APP_COPYRIGHT_INFO "(c) Copyright 2004-2010"
#define L2TP_APP_VENDOR_INFO "Katalix Systems Ltd."
#define L2TP_APP_MAJOR_VERSION 1
#define L2TP_APP_MINOR_VERSION 8
#define L2TP_DEBUG_PROTOCOL 1
#define L2TP_DEBUG_FSM 2
#define L2TP_DEBUG_API 4
#define L2TP_DEBUG_AVP 8
#define L2TP_DEBUG_AVP_HIDE 16
#define L2TP_DEBUG_AVP_DATA 32
#define L2TP_DEBUG_FUNC 64
#define L2TP_DEBUG_XPRT 128
#define L2TP_DEBUG_DATA 256
#define L2TP_DEBUG_SYSTEM 512
#define L2TP_DEBUG_PPP 1024
#define L2TP_ERR_BASE 500
#define L2TP_ERR_PARAM_NOT_MODIFIABLE 500
#define L2TP_ERR_PEER_ADDRESS_MISSING 501
#define L2TP_ERR_PEER_NOT_FOUND 502
#define L2TP_ERR_PEER_PROFILE_NOT_FOUND 503
#define L2TP_ERR_PPP_PROFILE_NOT_FOUND 504
#define L2TP_ERR_PROFILE_ALREADY_EXISTS 505
#define L2TP_ERR_PROFILE_NAME_ILLEGAL 506
#define L2TP_ERR_PROFILE_NAME_MISSING 507
#define L2TP_ERR_SESSION_ALREADY_EXISTS 508
#define L2TP_ERR_SESSION_ID_ALLOC_FAILURE 509
#define L2TP_ERR_SESSION_LIMIT_EXCEEDED 510
#define L2TP_ERR_SESSION_NOT_FOUND 511
#define L2TP_ERR_SESSION_PROFILE_NOT_FOUND 512
#define L2TP_ERR_SESSION_SPEC_MISSING 513
#define L2TP_ERR_SESSION_TYPE_BAD 514
#define L2TP_ERR_SESSION_TYPE_ILLEGAL_FOR_TUNNEL 515
#define L2TP_ERR_TUNNEL_ADD_ADMIN_DISABLED 516
#define L2TP_ERR_TUNNEL_CREATE_ADMIN_DISABLED 517
#define L2TP_ERR_TUNNEL_ALREADY_EXISTS 518
#define L2TP_ERR_TUNNEL_ID_ALLOC_FAILURE 519
#define L2TP_ERR_TUNNEL_NOT_FOUND 520
#define L2TP_ERR_TUNNEL_PROFILE_NOT_FOUND 521
#define L2TP_ERR_TUNNEL_SPEC_MISSING 522
#define L2TP_ERR_TUNNEL_TOO_MANY_SESSIONS 523
#define L2TP_ERR_TUNNEL_TOO_MANY_SAME_IP 524
#define L2TP_ERR_TUNNEL_LIMIT_EXCEEDED 525
#define L2TP_ERR_SESSION_TYPE_NOT_SUPPORTED 526
#define L2TP_ERR_TUNNEL_HIDE_AVPS_NEEDS_SECRET 527
#define L2TP_ERR_MAX 528
 
struct optstring {
        int valid;
        union {
                char *value;
        } optstring_u;
};
typedef struct optstring optstring;
#define OPTSTRING(_var) _var.optstring_u.value
#define OPTSTRING_PTR(_var) ((_var.valid == 1) ? _var.optstring_u.value : NULL)
 
enum l2tp_api_tunnel_auth_mode {
        L2TP_API_TUNNEL_AUTH_MODE_NONE = 0,
        L2TP_API_TUNNEL_AUTH_MODE_SIMPLE = 1,
        L2TP_API_TUNNEL_AUTH_MODE_CHALLENGE = 2,
};
typedef enum l2tp_api_tunnel_auth_mode l2tp_api_tunnel_auth_mode;
 
enum l2tp_api_tunnel_mode {
        L2TP_API_TUNNEL_MODE_LACLNS = 0,
        L2TP_API_TUNNEL_MODE_LAC = 1,
        L2TP_API_TUNNEL_MODE_LNS = 2,
};
typedef enum l2tp_api_tunnel_mode l2tp_api_tunnel_mode;
 
struct l2tp_api_ip_addr {
        uint32_t s_addr;
};
typedef struct l2tp_api_ip_addr l2tp_api_ip_addr;
#define L2TP_API_APP_FEATURE_LOCAL_CONF_FILE 1
#define L2TP_API_APP_FEATURE_LAC_SUPPORT 2
#define L2TP_API_APP_FEATURE_LNS_SUPPORT 4
#define L2TP_API_APP_FEATURE_RPC_MANAGEMENT 8
#define L2TP_API_APP_FEATURE_LAIC_SUPPORT 16
#define L2TP_API_APP_FEATURE_LAOC_SUPPORT 32
#define L2TP_API_APP_FEATURE_LNIC_SUPPORT 64
#define L2TP_API_APP_FEATURE_LNOC_SUPPORT 128
#define L2TP_API_APP_FEATURE_LOCAL_STAT_FILE 256
 
struct l2tp_api_app_msg_data {
        char *build_date;
        char *build_time;
        int major;
        int minor;
        uint32_t cookie;
        struct {
                u_int patches_len;
                int *patches_val;
        } patches;
        uint32_t features;
};
typedef struct l2tp_api_app_msg_data l2tp_api_app_msg_data;
#define L2TP_API_CONFIG_FLAG_TRACE_FLAGS 1
#define L2TP_API_CONFIG_FLAG_MAX_TUNNELS 2
#define L2TP_API_CONFIG_FLAG_DRAIN_TUNNELS 4
#define L2TP_API_CONFIG_FLAG_MAX_SESSIONS 8
#define L2TP_API_CONFIG_FLAG_TUNNEL_ESTABLISH_TIMEOUT 16
#define L2TP_API_CONFIG_FLAG_SESSION_ESTABLISH_TIMEOUT 32
#define L2TP_API_CONFIG_FLAG_DENY_LOCAL_TUNNEL_CREATES 64
#define L2TP_API_CONFIG_FLAG_DENY_REMOTE_TUNNEL_CREATES 128
#define L2TP_API_CONFIG_FLAG_RESET_STATISTICS 256
#define L2TP_API_CONFIG_FLAG_TUNNEL_PERSIST_PEND_TIMEOUT 512
#define L2TP_API_CONFIG_FLAG_SESSION_PERSIST_PEND_TIMEOUT 1024
 
struct l2tp_api_system_config {
        uint32_t flags;
        int udp_port;
        uint32_t trace_flags;
        uint32_t trace_flags_mask;
        int max_tunnels;
        int max_sessions;
        int drain_tunnels;
        int tunnel_establish_timeout;
        int session_establish_timeout;
        int tunnel_persist_pend_timeout;
        int session_persist_pend_timeout;
        bool_t deny_local_tunnel_creates;
        bool_t deny_remote_tunnel_creates;
};
typedef struct l2tp_api_system_config l2tp_api_system_config;
 
struct l2tp_api_system_msg_stats {
        uint32_t rx;
        uint32_t tx;
        uint32_t rx_bad;
};
typedef struct l2tp_api_system_msg_stats l2tp_api_system_msg_stats;
#define L2TP_API_MSG_TYPE_COUNT 17
 
struct l2tp_api_system_stats {
        uint32_t short_frames;
        uint32_t wrong_version_frames;
        uint32_t unexpected_data_frames;
        uint32_t bad_rcvd_frames;
        uint32_t total_rcvd_control_frames;
        uint32_t total_sent_control_frames;
        uint32_t total_control_frame_send_fails;
        uint32_t total_retransmitted_control_frames;
        uint32_t no_control_frame_resources;
        uint32_t no_peer_resources;
        uint32_t no_tunnel_resources;
        uint32_t no_session_resources;
        uint32_t no_ppp_resources;
        uint32_t too_many_tunnels;
        uint32_t too_many_sessions;
        uint32_t auth_fails;
        uint32_t no_matching_tunnel_id_discards;
        uint32_t no_matching_session_id_discards;
        uint32_t mismatched_tunnel_ids;
        uint32_t mismatched_session_ids;
        uint32_t encode_message_fails;
        uint32_t tunnel_setup_failures;
        uint32_t session_setup_failures;
        uint32_t event_queue_full_errors;
        uint32_t ignored_avps;
        uint32_t vendor_avps;
        uint32_t illegal_messages;
        uint32_t unsupported_messages;
        struct {
                u_int messages_len;
                struct l2tp_api_system_msg_stats *messages_val;
        } messages;
};
typedef struct l2tp_api_system_stats l2tp_api_system_stats;
 
struct l2tp_api_system_status {
        struct l2tp_api_system_stats stats;
        uint32_t num_tunnels;
        uint32_t num_sessions;
};
typedef struct l2tp_api_system_status l2tp_api_system_status;
 
struct l2tp_api_system_msg_data {
        struct l2tp_api_system_config config;
        struct l2tp_api_system_status status;
};
typedef struct l2tp_api_system_msg_data l2tp_api_system_msg_data;
 
struct l2tp_api_peer_msg_data {
        int result_code;
        struct l2tp_api_ip_addr peer_addr;
        struct l2tp_api_ip_addr local_addr;
        int num_tunnels;
};
typedef struct l2tp_api_peer_msg_data l2tp_api_peer_msg_data;
 
struct l2tp_api_peer_list_entry {
        struct l2tp_api_ip_addr peer_addr;
        struct l2tp_api_ip_addr local_addr;
        struct l2tp_api_peer_list_entry *next;
};
typedef struct l2tp_api_peer_list_entry l2tp_api_peer_list_entry;
 
struct l2tp_api_peer_list_msg_data {
        int result;
        struct l2tp_api_peer_list_entry *peers;
};
typedef struct l2tp_api_peer_list_msg_data l2tp_api_peer_list_msg_data;
#define L2TP_API_PEER_PROFILE_DEFAULT_PROFILE_NAME "default"
#define L2TP_API_PEER_PROFILE_FLAG_LACLNS 1
#define L2TP_API_PEER_PROFILE_FLAG_TUNNEL_PROFILE_NAME 2
#define L2TP_API_PEER_PROFILE_FLAG_SESSION_PROFILE_NAME 4
#define L2TP_API_PEER_PROFILE_FLAG_PPP_PROFILE_NAME 8
#define L2TP_API_PEER_PROFILE_FLAG_PEER_IPADDR 16
#define L2TP_API_PEER_PROFILE_FLAG_PEER_PORT 32
#define L2TP_API_PEER_PROFILE_FLAG_NETMASK 64
 
struct l2tp_api_peer_profile_msg_data {
        uint32_t flags;
        int result_code;
        struct l2tp_api_ip_addr peer_addr;
        uint16_t peer_port;
        bool_t we_can_be_lac;
        bool_t we_can_be_lns;
        char *profile_name;
        optstring default_tunnel_profile_name;
        optstring default_session_profile_name;
        optstring default_ppp_profile_name;
        struct l2tp_api_ip_addr netmask;
        int use_count;
};
typedef struct l2tp_api_peer_profile_msg_data l2tp_api_peer_profile_msg_data;
 
struct l2tp_api_peer_profile_list_entry {
        char *profile_name;
        struct l2tp_api_peer_profile_list_entry *next;
};
typedef struct l2tp_api_peer_profile_list_entry l2tp_api_peer_profile_list_entry;
 
struct l2tp_api_peer_profile_list_msg_data {
        int result;
        int num_profiles;
        struct l2tp_api_peer_profile_list_entry *profiles;
};
typedef struct l2tp_api_peer_profile_list_msg_data l2tp_api_peer_profile_list_msg_data;
 
struct l2tp_api_peer_profile_unset_msg_data {
        uint32_t flags;
        int result_code;
        char *profile_name;
};
typedef struct l2tp_api_peer_profile_unset_msg_data l2tp_api_peer_profile_unset_msg_data;
 
struct l2tp_api_tunnel_peer {
        bool_t framing_cap_sync;
        bool_t framing_cap_async;
        bool_t bearer_cap_digital;
        bool_t bearer_cap_analog;
        uint8_t protocol_version_ver;
        uint8_t protocol_version_rev;
        uint16_t rx_window_size;
        uint16_t firmware_revision;
        optstring host_name;
        optstring vendor_name;
        struct {
                u_int tiebreaker_len;
                uint8_t *tiebreaker_val;
        } tiebreaker;
        uint16_t result_code_result;
        uint16_t result_code_error;
        optstring result_code_message;
};
typedef struct l2tp_api_tunnel_peer l2tp_api_tunnel_peer;
 
struct l2tp_api_tunnel_stats {
        uint32_t retransmits;
        uint32_t tx_zlbs;
        uint32_t tx_zlb_fails;
        uint32_t rx_zlbs;
        uint32_t data_pkt_discards;
        uint32_t duplicate_pkt_discards;
        uint32_t rx_hellos;
        uint32_t tx_hellos;
        uint32_t tx_hello_fails;
        uint16_t ns;
        uint16_t nr;
        uint16_t peer_ns;
        uint16_t peer_nr;
        uint16_t cwnd;
        uint16_t ssthresh;
        uint16_t congpkt_acc;
        uint64_t control_rx_packets;
        uint64_t control_rx_bytes;
        uint64_t control_rx_oos_packets;
        uint64_t control_rx_oos_discards;
        uint64_t control_tx_packets;
        uint64_t control_tx_bytes;
        uint64_t data_rx_packets;
        uint64_t data_rx_bytes;
        uint64_t data_rx_errors;
        uint64_t data_rx_oos_packets;
        uint64_t data_rx_oos_discards;
        uint64_t data_tx_packets;
        uint64_t data_tx_bytes;
        uint64_t data_tx_errors;
        bool_t using_ipsec;
};
typedef struct l2tp_api_tunnel_stats l2tp_api_tunnel_stats;
#define L2TP_API_TUNNEL_FLAG_HIDE_AVPS 1
#define L2TP_API_TUNNEL_FLAG_OUR_ADDR 2
#define L2TP_API_TUNNEL_FLAG_PEER_ADDR 4
#define L2TP_API_TUNNEL_FLAG_CONFIG_ID 8
#define L2TP_API_TUNNEL_FLAG_OUR_UDP_PORT 16
#define L2TP_API_TUNNEL_FLAG_AUTH_MODE 32
#define L2TP_API_TUNNEL_FLAG_FRAMING_CAP 64
#define L2TP_API_TUNNEL_FLAG_BEARER_CAP 128
#define L2TP_API_TUNNEL_FLAG_USE_TIEBREAKER 256
#define L2TP_API_TUNNEL_FLAG_PERSIST 512
#define L2TP_API_TUNNEL_FLAG_HELLO_TIMEOUT 1024
#define L2TP_API_TUNNEL_FLAG_MAX_RETRIES 2048
#define L2TP_API_TUNNEL_FLAG_RX_WINDOW_SIZE 4096
#define L2TP_API_TUNNEL_FLAG_TX_WINDOW_SIZE 8192
#define L2TP_API_TUNNEL_FLAG_RETRY_TIMEOUT 16384
#define L2TP_API_TUNNEL_FLAG_IDLE_TIMEOUT 32768
#define L2TP_API_TUNNEL_FLAG_PEER_UDP_PORT 65536
#define L2TP_API_TUNNEL_FLAG_SECRET 131072
#define L2TP_API_TUNNEL_FLAG_ALLOW_PPP_PROXY 262144
#define L2TP_API_TUNNEL_FLAG_TRACE_FLAGS 524288
#define L2TP_API_TUNNEL_FLAG_USE_UDP_CHECKSUMS 1048576
#define L2TP_API_TUNNEL_FLAG_HOST_NAME 2097152
#define L2TP_API_TUNNEL_FLAG_TUNNEL_ID 4194304
#define L2TP_API_TUNNEL_FLAG_PROFILE_NAME 8388608
#define L2TP_API_TUNNEL_FLAG_MAX_SESSIONS 16777216
#define L2TP_API_TUNNEL_FLAG_TUNNEL_NAME 33554432
#define L2TP_API_TUNNEL_FLAG_UNUSED_2 67108864
#define L2TP_API_TUNNEL_FLAG_PEER_PROFILE_NAME 134217728
#define L2TP_API_TUNNEL_FLAG_SESSION_PROFILE_NAME 268435456
#define L2TP_API_TUNNEL_FLAG_PPP_PROFILE_NAME 536870912
#define L2TP_API_TUNNEL_FLAG_DO_PMTU_DISCOVERY 1073741824
#define L2TP_API_TUNNEL_FLAG_MTU 2147483648
#define L2TP_API_TUNNEL_FLAG_INTERFACE_NAME 1
 
struct l2tp_api_tunnel_msg_data {
        uint32_t flags;
        uint32_t flags2;
        uint16_t tunnel_id;
        uint16_t peer_tunnel_id;
        int result_code;
        int hide_avps;
        optstring tunnel_name;
        struct l2tp_api_ip_addr our_addr;
        struct l2tp_api_ip_addr peer_addr;
        uint16_t our_udp_port;
        uint16_t peer_udp_port;
        int config_id;
        enum l2tp_api_tunnel_auth_mode auth_mode;
        bool_t framing_cap_sync;
        bool_t framing_cap_async;
        bool_t bearer_cap_digital;
        bool_t bearer_cap_analog;
        bool_t use_tiebreaker;
        bool_t allow_ppp_proxy;
        bool_t use_udp_checksums;
        bool_t created_by_admin;
        optstring create_time;
        int max_sessions;
        int num_sessions;
        int use_count;
        int num_establish_retries;
        enum l2tp_api_tunnel_mode mode;
        int hello_timeout;
        int max_retries;
        uint16_t rx_window_size;
        uint16_t tx_window_size;
        uint16_t actual_tx_window_size;
        int retry_timeout;
        int idle_timeout;
        uint32_t trace_flags;
        uint32_t trace_flags_mask;
        bool_t do_pmtu_discovery;
        bool_t persist;
        int mtu;
        optstring state;
        optstring secret;
        optstring host_name;
        optstring tunnel_profile_name;
        optstring peer_profile_name;
        optstring session_profile_name;
        optstring ppp_profile_name;
        optstring interface_name;
        struct {
                u_int tiebreaker_len;
                uint8_t *tiebreaker_val;
        } tiebreaker;
        uint16_t result_code_result;
        uint16_t result_code_error;
        optstring result_code_message;
        struct l2tp_api_tunnel_peer peer;
        struct l2tp_api_tunnel_stats stats;
};
typedef struct l2tp_api_tunnel_msg_data l2tp_api_tunnel_msg_data;
 
struct l2tp_api_tunnel_list_msg_data {
        int result;
        struct {
                u_int tunnel_ids_len;
                uint16_t *tunnel_ids_val;
        } tunnel_ids;
};
typedef struct l2tp_api_tunnel_list_msg_data l2tp_api_tunnel_list_msg_data;
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_PROFILE_NAME "default"
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_AUTH_MODE L2TP_API_TUNNEL_AUTH_MODE_NONE
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_FRAMING_CAP_SYNC 1
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_FRAMING_CAP_ASYNC 1
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_BEARER_CAP_DIGITAL 1
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_BEARER_CAP_ANALOG 1
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_USE_TIEBREAKER 0
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_HELLO_TIMEOUT 60
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_MAX_RETRIES 5
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_RX_WINDOW_SIZE 10
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_TX_WINDOW_SIZE 10
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_RETRY_TIMEOUT 1
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_IDLE_TIMEOUT 0
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_ZLB_TIMEOUT 5
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_TRACE_FLAGS 0
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_ALLOW_PPP_PROXY 0
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_USE_UDP_CHECKSUMS 1
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_DO_PMTU_DISCOVERY 0
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_MTU 1460
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_HIDE_AVPS 0
#define L2TP_API_TUNNEL_PROFILE_DEFAULT_MAX_SESSIONS 0
#define L2TP_API_TUNNEL_PROFILE_FLAG_HIDE_AVPS 1
#define L2TP_API_TUNNEL_PROFILE_FLAG_AUTH_MODE 2
#define L2TP_API_TUNNEL_PROFILE_FLAG_FRAMING_CAP 4
#define L2TP_API_TUNNEL_PROFILE_FLAG_BEARER_CAP 8
#define L2TP_API_TUNNEL_PROFILE_FLAG_USE_TIEBREAKER 16
#define L2TP_API_TUNNEL_PROFILE_FLAG_UNUSED_1 32
#define L2TP_API_TUNNEL_PROFILE_FLAG_HELLO_TIMEOUT 64
#define L2TP_API_TUNNEL_PROFILE_FLAG_MAX_RETRIES 128
#define L2TP_API_TUNNEL_PROFILE_FLAG_RX_WINDOW_SIZE 256
#define L2TP_API_TUNNEL_PROFILE_FLAG_TX_WINDOW_SIZE 512
#define L2TP_API_TUNNEL_PROFILE_FLAG_RETRY_TIMEOUT 1024
#define L2TP_API_TUNNEL_PROFILE_FLAG_IDLE_TIMEOUT 2048
#define L2TP_API_TUNNEL_PROFILE_FLAG_SECRET 4096
#define L2TP_API_TUNNEL_PROFILE_FLAG_ALLOW_PPP_PROXY 8192
#define L2TP_API_TUNNEL_PROFILE_FLAG_TRACE_FLAGS 16384
#define L2TP_API_TUNNEL_PROFILE_FLAG_USE_UDP_CHECKSUMS 32768
#define L2TP_API_TUNNEL_PROFILE_FLAG_HOST_NAME 65536
#define L2TP_API_TUNNEL_PROFILE_FLAG_MAX_SESSIONS 131072
#define L2TP_API_TUNNEL_PROFILE_FLAG_OUR_ADDR 262144
#define L2TP_API_TUNNEL_PROFILE_FLAG_PEER_ADDR 524288
#define L2TP_API_TUNNEL_PROFILE_FLAG_OUR_UDP_PORT 1048576
#define L2TP_API_TUNNEL_PROFILE_FLAG_PEER_UDP_PORT 2097152
#define L2TP_API_TUNNEL_PROFILE_FLAG_UNUSED_2 4194304
#define L2TP_API_TUNNEL_PROFILE_FLAG_PEER_PROFILE_NAME 8388608
#define L2TP_API_TUNNEL_PROFILE_FLAG_SESSION_PROFILE_NAME 16777216
#define L2TP_API_TUNNEL_PROFILE_FLAG_PPP_PROFILE_NAME 33554432
#define L2TP_API_TUNNEL_PROFILE_FLAG_DO_PMTU_DISCOVERY 67108864
#define L2TP_API_TUNNEL_PROFILE_FLAG_MTU 134217728
 
struct l2tp_api_tunnel_profile_msg_data {
        uint32_t flags;
        char *profile_name;
        int result_code;
        int hide_avps;
        enum l2tp_api_tunnel_auth_mode auth_mode;
        bool_t framing_cap_sync;
        bool_t framing_cap_async;
        bool_t bearer_cap_digital;
        bool_t bearer_cap_analog;
        bool_t use_tiebreaker;
        bool_t allow_ppp_proxy;
        bool_t use_udp_checksums;
        int hello_timeout;
        int max_retries;
        uint16_t rx_window_size;
        uint16_t tx_window_size;
        int retry_timeout;
        int idle_timeout;
        uint32_t trace_flags;
        uint32_t trace_flags_mask;
        int max_sessions;
        struct l2tp_api_ip_addr our_addr;
        struct l2tp_api_ip_addr peer_addr;
        uint16_t our_udp_port;
        uint16_t peer_udp_port;
        bool_t do_pmtu_discovery;
        int mtu;
        optstring peer_profile_name;
        optstring session_profile_name;
        optstring ppp_profile_name;
        optstring secret;
        optstring host_name;
};
typedef struct l2tp_api_tunnel_profile_msg_data l2tp_api_tunnel_profile_msg_data;
 
struct l2tp_api_tunnel_profile_list_entry {
        char *profile_name;
        struct l2tp_api_tunnel_profile_list_entry *next;
};
typedef struct l2tp_api_tunnel_profile_list_entry l2tp_api_tunnel_profile_list_entry;
 
struct l2tp_api_tunnel_profile_list_msg_data {
        int result;
        int num_profiles;
        struct l2tp_api_tunnel_profile_list_entry *profiles;
};
typedef struct l2tp_api_tunnel_profile_list_msg_data l2tp_api_tunnel_profile_list_msg_data;
 
struct l2tp_api_tunnel_profile_unset_msg_data {
        uint32_t flags;
        int result_code;
        char *profile_name;
};
typedef struct l2tp_api_tunnel_profile_unset_msg_data l2tp_api_tunnel_profile_unset_msg_data;
#define L2TP_API_SESSION_DEFAULT_SESSION_TYPE L2TP_API_SESSION_TYPE_UNSPECIFIED
#define L2TP_API_SESSION_FLAG_TRACE_FLAGS 1
#define L2TP_API_SESSION_FLAG_SEQUENCING_REQUIRED 2
#define L2TP_API_SESSION_FLAG_PPP_PROFILE_NAME 4
#define L2TP_API_SESSION_FLAG_SESSION_TYPE 8
#define L2TP_API_SESSION_FLAG_PRIV_GROUP_ID 16
#define L2TP_API_SESSION_FLAG_FRAMING_TYPE 32
#define L2TP_API_SESSION_FLAG_BEARER_TYPE 64
#define L2TP_API_SESSION_FLAG_MINIMUM_BPS 128
#define L2TP_API_SESSION_FLAG_MAXIMUM_BPS 256
#define L2TP_API_SESSION_FLAG_CONNECT_SPEED 512
#define L2TP_API_SESSION_FLAG_USE_PPP_PROXY 1024
#define L2TP_API_SESSION_FLAG_PROXY_AUTH_TYPE 8192
#define L2TP_API_SESSION_FLAG_PROXY_AUTH_NAME 16384
#define L2TP_API_SESSION_FLAG_PROXY_AUTH_CHALLENGE 32768
#define L2TP_API_SESSION_FLAG_PROXY_AUTH_RESPONSE 65536
#define L2TP_API_SESSION_FLAG_CALLING_NUMBER 131072
#define L2TP_API_SESSION_FLAG_CALLED_NUMBER 262144
#define L2TP_API_SESSION_FLAG_SUB_ADDRESS 524288
#define L2TP_API_SESSION_FLAG_INITIAL_RCVD_LCP_CONFREQ 1048576
#define L2TP_API_SESSION_FLAG_LAST_SENT_LCP_CONFREQ 2097152
#define L2TP_API_SESSION_FLAG_LAST_RCVD_LCP_CONFREQ 4194304
#define L2TP_API_SESSION_FLAG_USER_NAME 8388608
#define L2TP_API_SESSION_FLAG_USER_PASSWORD 16777216
#define L2TP_API_SESSION_FLAG_USE_SEQUENCE_NUMBERS 33554432
#define L2TP_API_SESSION_FLAG_REORDER_TIMEOUT 67108864
#define L2TP_API_SESSION_FLAG_TUNNEL_NAME 134217728
#define L2TP_API_SESSION_FLAG_SESSION_NAME 268435456
#define L2TP_API_SESSION_FLAG_INTERFACE_NAME 536870912
#define L2TP_API_SESSION_FLAG_PROFILE_NAME 1073741824
#define L2TP_API_SESSION_FLAG_NO_PPP 2147483648
 
enum l2tp_api_session_proxy_auth_type {
        L2TP_API_SESSION_PROXY_AUTH_TYPE_RESERVED = 0,
        L2TP_API_SESSION_PROXY_AUTH_TYPE_PLAIN_TEXT = 1,
        L2TP_API_SESSION_PROXY_AUTH_TYPE_PPP_CHAP = 2,
        L2TP_API_SESSION_PROXY_AUTH_TYPE_PPP_PAP = 3,
        L2TP_API_SESSION_PROXY_AUTH_TYPE_NO_AUTH = 4,
        L2TP_API_SESSION_PROXY_AUTH_TYPE_PPP_MSCHAPV1 = 5,
};
typedef enum l2tp_api_session_proxy_auth_type l2tp_api_session_proxy_auth_type;
 
struct l2tp_api_session_call_errors {
        uint32_t crc_errors;
        uint32_t framing_errors;
        uint32_t hardware_overruns;
        uint32_t buffer_overruns;
        uint32_t timeout_errors;
        uint32_t alignment_errors;
};
typedef struct l2tp_api_session_call_errors l2tp_api_session_call_errors;
 
struct l2tp_api_session_stats {
        uint64_t data_rx_packets;
        uint64_t data_rx_bytes;
        uint64_t data_rx_errors;
        uint64_t data_rx_oos_packets;
        uint64_t data_rx_oos_discards;
        uint64_t data_tx_packets;
        uint64_t data_tx_bytes;
        uint64_t data_tx_errors;
};
typedef struct l2tp_api_session_stats l2tp_api_session_stats;
 
struct l2tp_api_session_peer_info {
        uint16_t result_code;
        uint16_t error_code;
        optstring error_message;
        uint32_t minimum_bps;
        uint32_t maximum_bps;
        uint32_t connect_speed;
        uint32_t rx_connect_speed;
        enum l2tp_api_session_proxy_auth_type proxy_auth_type;
        uint8_t proxy_auth_id;
        optstring proxy_auth_name;
        struct {
                u_int proxy_auth_challenge_len;
                uint8_t *proxy_auth_challenge_val;
        } proxy_auth_challenge;
        struct {
                u_int proxy_auth_response_len;
                uint8_t *proxy_auth_response_val;
        } proxy_auth_response;
        optstring private_group_id;
        bool_t framing_type_sync;
        bool_t framing_type_async;
        bool_t bearer_type_digital;
        bool_t bearer_type_analog;
        bool_t sequencing_required;
        uint32_t call_serial_number;
        uint32_t physical_channel_id;
        struct {
                u_int initial_rcvd_lcp_confreq_len;
                uint8_t *initial_rcvd_lcp_confreq_val;
        } initial_rcvd_lcp_confreq;
        struct {
                u_int last_sent_lcp_confreq_len;
                uint8_t *last_sent_lcp_confreq_val;
        } last_sent_lcp_confreq;
        struct {
                u_int last_rcvd_lcp_confreq_len;
                uint8_t *last_rcvd_lcp_confreq_val;
        } last_rcvd_lcp_confreq;
        optstring calling_number;
        optstring called_number;
        optstring sub_address;
        uint16_t q931_cause_code;
        uint16_t q931_cause_msg;
        optstring q931_advisory_msg;
        struct l2tp_api_session_call_errors call_errors;
        uint32_t send_accm;
        uint32_t recv_accm;
};
typedef struct l2tp_api_session_peer_info l2tp_api_session_peer_info;
 
enum l2tp_api_session_type {
        L2TP_API_SESSION_TYPE_UNSPECIFIED = 0,
        L2TP_API_SESSION_TYPE_LAIC = 1,
        L2TP_API_SESSION_TYPE_LAOC = 2,
        L2TP_API_SESSION_TYPE_LNIC = 3,
        L2TP_API_SESSION_TYPE_LNOC = 4,
};
typedef enum l2tp_api_session_type l2tp_api_session_type;
 
struct l2tp_api_session_msg_data {
        uint32_t flags;
        uint16_t tunnel_id;
        uint16_t session_id;
        int result_code;
        optstring tunnel_name;
        uint16_t peer_session_id;
        optstring state;
        optstring session_name;
        optstring interface_name;
        enum l2tp_api_session_type session_type;
        optstring user_name;
        optstring user_password;
        optstring priv_group_id;
        optstring profile_name;
        bool_t created_by_admin;
        optstring create_time;
        bool_t no_ppp;
        bool_t sequencing_required;
        bool_t use_sequence_numbers;
        int reorder_timeout;
        bool_t framing_type_sync;
        bool_t framing_type_async;
        bool_t bearer_type_digital;
        bool_t bearer_type_analog;
        uint32_t call_serial_number;
        uint32_t physical_channel_id;
        uint32_t trace_flags;
        uint32_t trace_flags_mask;
        int minimum_bps;
        int maximum_bps;
        int tx_connect_speed;
        int rx_connect_speed;
        struct l2tp_api_session_peer_info peer;
        optstring ppp_profile_name;
        struct l2tp_api_session_stats stats;
        bool_t use_ppp_proxy;
        enum l2tp_api_session_proxy_auth_type proxy_auth_type;
        optstring proxy_auth_name;
        struct {
                u_int proxy_auth_challenge_len;
                uint8_t *proxy_auth_challenge_val;
        } proxy_auth_challenge;
        struct {
                u_int proxy_auth_response_len;
                uint8_t *proxy_auth_response_val;
        } proxy_auth_response;
        optstring calling_number;
        optstring called_number;
        optstring sub_address;
        struct {
                u_int initial_rcvd_lcp_confreq_len;
                uint8_t *initial_rcvd_lcp_confreq_val;
        } initial_rcvd_lcp_confreq;
        struct {
                u_int last_sent_lcp_confreq_len;
                uint8_t *last_sent_lcp_confreq_val;
        } last_sent_lcp_confreq;
        struct {
                u_int last_rcvd_lcp_confreq_len;
                uint8_t *last_rcvd_lcp_confreq_val;
        } last_rcvd_lcp_confreq;
};
typedef struct l2tp_api_session_msg_data l2tp_api_session_msg_data;
 
struct l2tp_api_session_list_msg_data {
        int result;
        struct {
                u_int session_ids_len;
                uint16_t *session_ids_val;
        } session_ids;
};
typedef struct l2tp_api_session_list_msg_data l2tp_api_session_list_msg_data;
 
struct l2tp_api_session_incall_msg_data {
        int ppp_unit;
        char *tunnel_profile_name;
        struct l2tp_api_session_msg_data session;
};
typedef struct l2tp_api_session_incall_msg_data l2tp_api_session_incall_msg_data;
#define L2TP_API_SESSION_PROFILE_DEFAULT_PROFILE_NAME "default"
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_TRACE_FLAGS 0
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_SEQUENCING_REQUIRED 0
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_TYPE L2TP_API_SESSION_TYPE_UNSPECIFIED
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_FRAMING_TYPE_SYNC 1
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_FRAMING_TYPE_ASYNC 1
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_BEARER_TYPE_ANALOG 1
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_BEARER_TYPE_DIGITAL 1
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_MINIMUM_BPS 0
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_MAXIMUM_BPS 0
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_TX_CONNECT_SPEED 1000000
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_RX_CONNECT_SPEED 0
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_USE_PPP_PROXY FALSE
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_USE_SEQUENCE_NUMBERS FALSE
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_REORDER_TIMEOUT 0
#define L2TP_API_SESSION_PROFILE_DEFAULT_SESSION_NO_PPP FALSE
#define L2TP_API_SESSION_PROFILE_FLAG_TRACE_FLAGS 1
#define L2TP_API_SESSION_PROFILE_FLAG_SEQUENCING_REQUIRED 2
#define L2TP_API_SESSION_PROFILE_FLAG_PPP_PROFILE_NAME 4
#define L2TP_API_SESSION_PROFILE_FLAG_SESSION_TYPE 8
#define L2TP_API_SESSION_PROFILE_FLAG_PRIV_GROUP_ID 16
#define L2TP_API_SESSION_PROFILE_FLAG_FRAMING_TYPE 32
#define L2TP_API_SESSION_PROFILE_FLAG_BEARER_TYPE 64
#define L2TP_API_SESSION_PROFILE_FLAG_MINIMUM_BPS 128
#define L2TP_API_SESSION_PROFILE_FLAG_MAXIMUM_BPS 256
#define L2TP_API_SESSION_PROFILE_FLAG_CONNECT_SPEED 512
#define L2TP_API_SESSION_PROFILE_FLAG_USE_PPP_PROXY 1024
#define L2TP_API_SESSION_PROFILE_FLAG_USE_SEQUENCE_NUMBERS 2048
#define L2TP_API_SESSION_PROFILE_FLAG_REORDER_TIMEOUT 4096
#define L2TP_API_SESSION_PROFILE_FLAG_NO_PPP 8192
 
struct l2tp_api_session_profile_msg_data {
        uint32_t flags;
        int result_code;
        char *profile_name;
        bool_t sequencing_required;
        bool_t use_sequence_numbers;
        bool_t no_ppp;
        int reorder_timeout;
        bool_t do_pmtu_discovery;
        int mtu;
        int mru;
        uint32_t trace_flags;
        uint32_t trace_flags_mask;
        optstring ppp_profile_name;
        enum l2tp_api_session_type session_type;
        optstring priv_group_id;
        bool_t framing_type_sync;
        bool_t framing_type_async;
        bool_t bearer_type_digital;
        bool_t bearer_type_analog;
        int minimum_bps;
        int maximum_bps;
        int tx_connect_speed;
        int rx_connect_speed;
        bool_t use_ppp_proxy;
};
typedef struct l2tp_api_session_profile_msg_data l2tp_api_session_profile_msg_data;
 
struct l2tp_api_session_profile_list_entry {
        char *profile_name;
        struct l2tp_api_session_profile_list_entry *next;
};
typedef struct l2tp_api_session_profile_list_entry l2tp_api_session_profile_list_entry;
 
struct l2tp_api_session_profile_list_msg_data {
        int result;
        int num_profiles;
        struct l2tp_api_session_profile_list_entry *profiles;
};
typedef struct l2tp_api_session_profile_list_msg_data l2tp_api_session_profile_list_msg_data;
 
struct l2tp_api_session_profile_unset_msg_data {
        uint32_t flags;
        int result_code;
        char *profile_name;
};
typedef struct l2tp_api_session_profile_unset_msg_data l2tp_api_session_profile_unset_msg_data;
#define L2TP_API_PPP_PROFILE_FLAG_TRACE_FLAGS 1
#define L2TP_API_PPP_PROFILE_FLAG_ASYNCMAP 2
#define L2TP_API_PPP_PROFILE_FLAG_MRU 4
#define L2TP_API_PPP_PROFILE_FLAG_MTU 8
#define L2TP_API_PPP_PROFILE_FLAG_USE_RADIUS 32
#define L2TP_API_PPP_PROFILE_FLAG_RADIUS_HINT 64
#define L2TP_API_PPP_PROFILE_FLAG_SYNC_MODE 256
#define L2TP_API_PPP_PROFILE_FLAG_CHAP_INTERVAL 512
#define L2TP_API_PPP_PROFILE_FLAG_CHAP_MAX_CHALLENGE 1024
#define L2TP_API_PPP_PROFILE_FLAG_CHAP_RESTART 2048
#define L2TP_API_PPP_PROFILE_FLAG_PAP_MAX_AUTH_REQUESTS 4096
#define L2TP_API_PPP_PROFILE_FLAG_PAP_RESTART_INTERVAL 8192
#define L2TP_API_PPP_PROFILE_FLAG_PAP_TIMEOUT 16384
#define L2TP_API_PPP_PROFILE_FLAG_IDLE_TIMEOUT 32768
#define L2TP_API_PPP_PROFILE_FLAG_IPCP_MAX_CONFIG_REQUESTS 65536
#define L2TP_API_PPP_PROFILE_FLAG_IPCP_MAX_CONFIG_NAKS 131072
#define L2TP_API_PPP_PROFILE_FLAG_IPCP_MAX_TERMINATE_REQUESTS 262144
#define L2TP_API_PPP_PROFILE_FLAG_IPCP_RETRANSMIT_INTERVAL 524288
#define L2TP_API_PPP_PROFILE_FLAG_LCP_ECHO_FAILURE_COUNT 1048576
#define L2TP_API_PPP_PROFILE_FLAG_LCP_ECHO_INTERVAL 2097152
#define L2TP_API_PPP_PROFILE_FLAG_LCP_MAX_CONFIG_REQUESTS 4194304
#define L2TP_API_PPP_PROFILE_FLAG_LCP_MAX_CONFIG_NAKS 8388608
#define L2TP_API_PPP_PROFILE_FLAG_LCP_MAX_TERMINATE_REQUESTS 16777216
#define L2TP_API_PPP_PROFILE_FLAG_LCP_RETRANSMIT_INTERVAL 33554432
#define L2TP_API_PPP_PROFILE_FLAG_MAX_CONNECT_TIME 67108864
#define L2TP_API_PPP_PROFILE_FLAG_MAX_FAILURE_COUNT 134217728
#define L2TP_API_PPP_PROFILE_FLAG_DNS_ADDR_1 1
#define L2TP_API_PPP_PROFILE_FLAG_DNS_ADDR_2 2
#define L2TP_API_PPP_PROFILE_FLAG_WINS_ADDR_1 4
#define L2TP_API_PPP_PROFILE_FLAG_WINS_ADDR_2 8
#define L2TP_API_PPP_PROFILE_FLAG_LOCAL_IP_ADDR 16
#define L2TP_API_PPP_PROFILE_FLAG_PEER_IP_ADDR 32
#define L2TP_API_PPP_PROFILE_FLAG_IP_POOL_NAME 64
#define L2TP_API_PPP_PROFILE_FLAG_USE_AS_DEFAULT_ROUTE 128
#define L2TP_API_PPP_PROFILE_FLAG_MULTILINK 256
#define L2TP_API_PPP_PROFILE_FLAG_LOCAL_NAME 512
#define L2TP_API_PPP_PROFILE_FLAG_REMOTE_NAME 1024
#define L2TP_API_PPP_PROFILE_FLAG_PROXY_ARP 2048
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_NONE 4096
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_REFUSE_EAP 8192
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_REFUSE_MSCHAPV2 16384
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_REFUSE_MSCHAP 32768
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_REFUSE_CHAP 65536
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_REFUSE_PAP 131072
#define L2TP_API_PPP_PROFILE_FLAG_AUTH_PEER 262144
#define L2TP_API_PPP_PROFILE_DEFAULT_PROFILE_NAME "default"
#define L2TP_API_PPP_PROFILE_DEFAULT_TRACE_FLAGS 0
#define L2TP_API_PPP_PROFILE_DEFAULT_ASYNCMAP 0
#define L2TP_API_PPP_PROFILE_DEFAULT_MRU 1500
#define L2TP_API_PPP_PROFILE_DEFAULT_MTU 1500
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_NONE 0
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_PEER 0
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_REFUSE_PAP 0
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_REFUSE_CHAP 0
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_REFUSE_MSCHAP 0
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_REFUSE_MSCHAPV2 0
#define L2TP_API_PPP_PROFILE_DEFAULT_AUTH_REFUSE_EAP 0
#define L2TP_API_PPP_PROFILE_DEFAULT_SYNC_MODE L2TP_API_PPP_SYNCMODE_SYNC_ASYNC
#define L2TP_API_PPP_PROFILE_DEFAULT_CHAP_INTERVAL 10
#define L2TP_API_PPP_PROFILE_DEFAULT_CHAP_MAX_CHALLENGE 10
#define L2TP_API_PPP_PROFILE_DEFAULT_CHAP_RESTART 3
#define L2TP_API_PPP_PROFILE_DEFAULT_PAP_MAX_AUTH_REQUESTS 10
#define L2TP_API_PPP_PROFILE_DEFAULT_PAP_RESTART_INTERVAL 3
#define L2TP_API_PPP_PROFILE_DEFAULT_PAP_TIMEOUT 0
#define L2TP_API_PPP_PROFILE_DEFAULT_IDLE_TIMEOUT 0
#define L2TP_API_PPP_PROFILE_DEFAULT_IPCP_MAX_CONFIG_REQUESTS 10
#define L2TP_API_PPP_PROFILE_DEFAULT_IPCP_MAX_CONFIG_NAKS 10
#define L2TP_API_PPP_PROFILE_DEFAULT_IPCP_MAX_TERMINATE_REQUESTS 3
#define L2TP_API_PPP_PROFILE_DEFAULT_IPCP_RETRANSMIT_INTERVAL 3
#define L2TP_API_PPP_PROFILE_DEFAULT_LCP_ECHO_FAILURE_COUNT 0
#define L2TP_API_PPP_PROFILE_DEFAULT_LCP_ECHO_INTERVAL 0
#define L2TP_API_PPP_PROFILE_DEFAULT_LCP_MAX_CONFIG_REQUESTS 10
#define L2TP_API_PPP_PROFILE_DEFAULT_LCP_MAX_CONFIG_NAKS 10
#define L2TP_API_PPP_PROFILE_DEFAULT_LCP_MAX_TERMINATE_REQUESTS 3
#define L2TP_API_PPP_PROFILE_DEFAULT_LCP_RETRANSMIT_INTERVAL 3
#define L2TP_API_PPP_PROFILE_DEFAULT_MAX_CONNECT_TIME 0
#define L2TP_API_PPP_PROFILE_DEFAULT_MAX_FAILURE_COUNT 10
#define L2TP_API_PPP_PROFILE_DEFAULT_LOCAL_IP_ADDR 0
#define L2TP_API_PPP_PROFILE_DEFAULT_PEER_IP_ADDR 0
#define L2TP_API_PPP_PROFILE_DEFAULT_DNS_ADDR_1 0
#define L2TP_API_PPP_PROFILE_DEFAULT_DNS_ADDR_2 0
#define L2TP_API_PPP_PROFILE_DEFAULT_WINS_ADDR_1 0
#define L2TP_API_PPP_PROFILE_DEFAULT_WINS_ADDR_2 0
#define L2TP_API_PPP_PROFILE_DEFAULT_USE_RADIUS 0
#define L2TP_API_PPP_PROFILE_DEFAULT_RADIUS_HINT ""
#define L2TP_API_PPP_PROFILE_DEFAULT_USE_AS_DEFAULT_ROUTE 0
#define L2TP_API_PPP_PROFILE_DEFAULT_MULTILINK 0
#define L2TP_API_PPP_PROFILE_DEFAULT_PROXY_ARP 0
 
enum l2tp_api_ppp_sync_mode {
        L2TP_API_PPP_SYNCMODE_SYNC_ASYNC = 0,
        L2TP_API_PPP_SYNCMODE_SYNC = 1,
        L2TP_API_PPP_SYNCMODE_ASYNC = 2,
};
typedef enum l2tp_api_ppp_sync_mode l2tp_api_ppp_sync_mode;
 
struct l2tp_api_ppp_profile_msg_data {
        uint32_t flags;
        uint32_t flags2;
        int result_code;
        uint32_t trace_flags;
        uint32_t trace_flags_mask;
        char *profile_name;
        uint32_t asyncmap;
        uint16_t mru;
        uint16_t mtu;
        bool_t auth_none;
        bool_t auth_peer;
        bool_t auth_refuse_pap;
        bool_t auth_refuse_chap;
        bool_t auth_refuse_mschap;
        bool_t auth_refuse_mschapv2;
        bool_t auth_refuse_eap;
        enum l2tp_api_ppp_sync_mode sync_mode;
        int chap_interval;
        int chap_max_challenge;
        int chap_restart;
        int pap_max_auth_requests;
        int pap_restart_interval;
        int pap_timeout;
        int idle_timeout;
        int ipcp_max_config_requests;
        int ipcp_max_config_naks;
        int ipcp_max_terminate_requests;
        int ipcp_retransmit_interval;
        int lcp_echo_failure_count;
        int lcp_echo_interval;
        int lcp_max_config_requests;
        int lcp_max_config_naks;
        int lcp_max_terminate_requests;
        int lcp_retransmit_interval;
        int max_connect_time;
        int max_failure_count;
        struct l2tp_api_ip_addr local_ip_addr;
        struct l2tp_api_ip_addr peer_ip_addr;
        struct l2tp_api_ip_addr dns_addr_1;
        struct l2tp_api_ip_addr dns_addr_2;
        struct l2tp_api_ip_addr wins_addr_1;
        struct l2tp_api_ip_addr wins_addr_2;
        optstring ip_pool_name;
        bool_t use_radius;
        optstring radius_hint;
        bool_t use_as_default_route;
        bool_t multilink;
        optstring local_name;
        optstring remote_name;
        bool_t proxy_arp;
};
typedef struct l2tp_api_ppp_profile_msg_data l2tp_api_ppp_profile_msg_data;
 
struct l2tp_api_ppp_profile_list_entry {
        char *profile_name;
        struct l2tp_api_ppp_profile_list_entry *next;
};
typedef struct l2tp_api_ppp_profile_list_entry l2tp_api_ppp_profile_list_entry;
 
struct l2tp_api_ppp_profile_list_msg_data {
        int result;
        int num_profiles;
        struct l2tp_api_ppp_profile_list_entry *profiles;
};
typedef struct l2tp_api_ppp_profile_list_msg_data l2tp_api_ppp_profile_list_msg_data;
 
struct l2tp_api_ppp_profile_unset_msg_data {
        uint32_t flags;
        uint32_t flags2;
        int result_code;
        char *profile_name;
};
typedef struct l2tp_api_ppp_profile_unset_msg_data l2tp_api_ppp_profile_unset_msg_data;
 
struct l2tp_api_user_list_entry {
        char *user_name;
        char *create_time;
        bool_t created_by_admin;
        uint16_t tunnel_id;
        uint16_t session_id;
        struct l2tp_api_user_list_entry *next;
};
typedef struct l2tp_api_user_list_entry l2tp_api_user_list_entry;
 
struct l2tp_api_user_list_msg_data {
        int result;
        int num_users;
        struct l2tp_api_user_list_entry *users;
};
typedef struct l2tp_api_user_list_msg_data l2tp_api_user_list_msg_data;
#define L2TP_API_TEST_FLAG_FAKE_RX_DROP 1
#define L2TP_API_TEST_FLAG_FAKE_TX_DROP 2
#define L2TP_API_TEST_FLAG_FAKE_TRIGGER_TYPE 4
#define L2TP_API_TEST_FLAG_CLEAR_FAKE_TRIGGER 8
#define L2TP_API_TEST_FLAG_HOLD_TUNNELS 16
#define L2TP_API_TEST_FLAG_HOLD_SESSIONS 32
#define L2TP_API_TEST_FLAG_NO_RANDOM_IDS 64
#define L2TP_API_TEST_FLAG_RESET_IDS 128
#define L2TP_API_TEST_FLAG_DO_TRANSPORT_TEST 256
#define L2TP_API_TEST_FLAG_TUNNEL_ID 512
#define L2TP_API_TEST_FLAG_SESSION_ID 1024
#define L2TP_API_TEST_FLAG_DEFAULT_CONFIG 2048
#define L2TP_API_TEST_FLAG_SHOW_PROFILE_USAGE 4096
 
enum l2tp_api_test_trigger_type {
        L2TP_API_TEST_FAKE_TRIGGER_OFF = 0,
        L2TP_API_TEST_FAKE_TRIGGER_ON = 1,
        L2TP_API_TEST_FAKE_TRIGGER_ONCE = 2,
        L2TP_API_TEST_FAKE_TRIGGER_LOW = 3,
        L2TP_API_TEST_FAKE_TRIGGER_MEDIUM = 4,
        L2TP_API_TEST_FAKE_TRIGGER_HIGH = 5,
};
typedef enum l2tp_api_test_trigger_type l2tp_api_test_trigger_type;
 
struct l2tp_api_test_msg_data {
        uint32_t flags;
        bool_t fake_rx_drop;
        bool_t fake_tx_drop;
        bool_t fake_trigger_fired;
        bool_t hold_tunnels;
        bool_t hold_sessions;
        bool_t no_random_ids;
        bool_t show_profile_usage;
        int num_rx_drops;
        int num_tx_drops;
        enum l2tp_api_test_trigger_type fake_trigger_type;
        uint16_t tunnel_id;
        uint16_t session_id;
        int num_tunnel_id_hash_hits;
        int num_tunnel_id_hash_misses;
        int num_tunnel_name_hash_hits;
        int num_tunnel_name_hash_misses;
        int num_session_id_hash_hits;
        int num_session_id_hash_misses;
};
typedef struct l2tp_api_test_msg_data l2tp_api_test_msg_data;
 
struct l2tp_tunnel_delete_1_argument {
        uint16_t tunnel_id;
        optstring tunnel_name;
        optstring reason;
};
typedef struct l2tp_tunnel_delete_1_argument l2tp_tunnel_delete_1_argument;
 
struct l2tp_tunnel_get_1_argument {
        uint16_t tunnel_id;
        optstring tunnel_name;
};
typedef struct l2tp_tunnel_get_1_argument l2tp_tunnel_get_1_argument;
 
struct l2tp_session_delete_1_argument {
        uint16_t tunnel_id;
        optstring tunnel_name;
        uint16_t session_id;
        optstring session_name;
        optstring reason;
};
typedef struct l2tp_session_delete_1_argument l2tp_session_delete_1_argument;
 
struct l2tp_session_get_1_argument {
        uint16_t tunnel_id;
        optstring tunnel_name;
        uint16_t session_id;
        optstring session_name;
};
typedef struct l2tp_session_get_1_argument l2tp_session_get_1_argument;
 
struct l2tp_session_list_1_argument {
        uint16_t tunnel_id;
        optstring tunnel_name;
};
typedef struct l2tp_session_list_1_argument l2tp_session_list_1_argument;
 
struct l2tp_peer_get_1_argument {
        struct l2tp_api_ip_addr local_addr;
        struct l2tp_api_ip_addr peer_addr;
};
typedef struct l2tp_peer_get_1_argument l2tp_peer_get_1_argument;
 
#define L2TP_PROG 300773
#define L2TP_VERSION 1
 
#if defined(__STDC__) || defined(__cplusplus)
#define L2TP_APP_INFO_GET 1
extern  enum clnt_stat l2tp_app_info_get_1(struct l2tp_api_app_msg_data *, CLIENT *);
extern  bool_t l2tp_app_info_get_1_svc(struct l2tp_api_app_msg_data *, struct svc_req *);
#define L2TP_SYSTEM_MODIFY 2
extern  enum clnt_stat l2tp_system_modify_1(struct l2tp_api_system_msg_data , int *, CLIENT *);
extern  bool_t l2tp_system_modify_1_svc(struct l2tp_api_system_msg_data , int *, struct svc_req *);
#define L2TP_SYSTEM_GET 3
extern  enum clnt_stat l2tp_system_get_1(struct l2tp_api_system_msg_data *, CLIENT *);
extern  bool_t l2tp_system_get_1_svc(struct l2tp_api_system_msg_data *, struct svc_req *);
#define L2TP_PEER_PROFILE_CREATE 4
extern  enum clnt_stat l2tp_peer_profile_create_1(struct l2tp_api_peer_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_peer_profile_create_1_svc(struct l2tp_api_peer_profile_msg_data , int *, struct svc_req *);
#define L2TP_PEER_PROFILE_DELETE 5
extern  enum clnt_stat l2tp_peer_profile_delete_1(char *, int *, CLIENT *);
extern  bool_t l2tp_peer_profile_delete_1_svc(char *, int *, struct svc_req *);
#define L2TP_PEER_PROFILE_MODIFY 6
extern  enum clnt_stat l2tp_peer_profile_modify_1(struct l2tp_api_peer_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_peer_profile_modify_1_svc(struct l2tp_api_peer_profile_msg_data , int *, struct svc_req *);
#define L2TP_PEER_PROFILE_GET 7
extern  enum clnt_stat l2tp_peer_profile_get_1(char *, struct l2tp_api_peer_profile_msg_data *, CLIENT *);
extern  bool_t l2tp_peer_profile_get_1_svc(char *, struct l2tp_api_peer_profile_msg_data *, struct svc_req *);
#define L2TP_PEER_PROFILE_LIST 8
extern  enum clnt_stat l2tp_peer_profile_list_1(struct l2tp_api_peer_profile_list_msg_data *, CLIENT *);
extern  bool_t l2tp_peer_profile_list_1_svc(struct l2tp_api_peer_profile_list_msg_data *, struct svc_req *);
#define L2TP_TUNNEL_CREATE 9
extern  enum clnt_stat l2tp_tunnel_create_1(struct l2tp_api_tunnel_msg_data , int *, CLIENT *);
extern  bool_t l2tp_tunnel_create_1_svc(struct l2tp_api_tunnel_msg_data , int *, struct svc_req *);
#define L2TP_TUNNEL_DELETE 10
extern  enum clnt_stat l2tp_tunnel_delete_1(uint16_t , optstring , optstring , int *, CLIENT *);
extern  bool_t l2tp_tunnel_delete_1_svc(uint16_t , optstring , optstring , int *, struct svc_req *);
#define L2TP_TUNNEL_MODIFY 11
extern  enum clnt_stat l2tp_tunnel_modify_1(struct l2tp_api_tunnel_msg_data , int *, CLIENT *);
extern  bool_t l2tp_tunnel_modify_1_svc(struct l2tp_api_tunnel_msg_data , int *, struct svc_req *);
#define L2TP_TUNNEL_GET 12
extern  enum clnt_stat l2tp_tunnel_get_1(uint16_t , optstring , struct l2tp_api_tunnel_msg_data *, CLIENT *);
extern  bool_t l2tp_tunnel_get_1_svc(uint16_t , optstring , struct l2tp_api_tunnel_msg_data *, struct svc_req *);
#define L2TP_TUNNEL_LIST 13
extern  enum clnt_stat l2tp_tunnel_list_1(struct l2tp_api_tunnel_list_msg_data *, CLIENT *);
extern  bool_t l2tp_tunnel_list_1_svc(struct l2tp_api_tunnel_list_msg_data *, struct svc_req *);
#define L2TP_TUNNEL_PROFILE_CREATE 14
extern  enum clnt_stat l2tp_tunnel_profile_create_1(struct l2tp_api_tunnel_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_tunnel_profile_create_1_svc(struct l2tp_api_tunnel_profile_msg_data , int *, struct svc_req *);
#define L2TP_TUNNEL_PROFILE_DELETE 15
extern  enum clnt_stat l2tp_tunnel_profile_delete_1(char *, int *, CLIENT *);
extern  bool_t l2tp_tunnel_profile_delete_1_svc(char *, int *, struct svc_req *);
#define L2TP_TUNNEL_PROFILE_MODIFY 16
extern  enum clnt_stat l2tp_tunnel_profile_modify_1(struct l2tp_api_tunnel_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_tunnel_profile_modify_1_svc(struct l2tp_api_tunnel_profile_msg_data , int *, struct svc_req *);
#define L2TP_TUNNEL_PROFILE_GET 17
extern  enum clnt_stat l2tp_tunnel_profile_get_1(char *, struct l2tp_api_tunnel_profile_msg_data *, CLIENT *);
extern  bool_t l2tp_tunnel_profile_get_1_svc(char *, struct l2tp_api_tunnel_profile_msg_data *, struct svc_req *);
#define L2TP_TUNNEL_PROFILE_LIST 18
extern  enum clnt_stat l2tp_tunnel_profile_list_1(struct l2tp_api_tunnel_profile_list_msg_data *, CLIENT *);
extern  bool_t l2tp_tunnel_profile_list_1_svc(struct l2tp_api_tunnel_profile_list_msg_data *, struct svc_req *);
#define L2TP_SESSION_CREATE 19
extern  enum clnt_stat l2tp_session_create_1(struct l2tp_api_session_msg_data , int *, CLIENT *);
extern  bool_t l2tp_session_create_1_svc(struct l2tp_api_session_msg_data , int *, struct svc_req *);
#define L2TP_SESSION_DELETE 20
extern  enum clnt_stat l2tp_session_delete_1(uint16_t , optstring , uint16_t , optstring , optstring , int *, CLIENT *);
extern  bool_t l2tp_session_delete_1_svc(uint16_t , optstring , uint16_t , optstring , optstring , int *, struct svc_req *);
#define L2TP_SESSION_MODIFY 21
extern  enum clnt_stat l2tp_session_modify_1(struct l2tp_api_session_msg_data , int *, CLIENT *);
extern  bool_t l2tp_session_modify_1_svc(struct l2tp_api_session_msg_data , int *, struct svc_req *);
#define L2TP_SESSION_GET 22
extern  enum clnt_stat l2tp_session_get_1(uint16_t , optstring , uint16_t , optstring , struct l2tp_api_session_msg_data *, CLIENT *);
extern  bool_t l2tp_session_get_1_svc(uint16_t , optstring , uint16_t , optstring , struct l2tp_api_session_msg_data *, struct svc_req *);
#define L2TP_SESSION_LIST 23
extern  enum clnt_stat l2tp_session_list_1(uint16_t , optstring , struct l2tp_api_session_list_msg_data *, CLIENT *);
extern  bool_t l2tp_session_list_1_svc(uint16_t , optstring , struct l2tp_api_session_list_msg_data *, struct svc_req *);
#define L2TP_SESSION_INCALL_IND 24
extern  enum clnt_stat l2tp_session_incall_ind_1(struct l2tp_api_session_incall_msg_data , int *, CLIENT *);
extern  bool_t l2tp_session_incall_ind_1_svc(struct l2tp_api_session_incall_msg_data , int *, struct svc_req *);
#define L2TP_SESSION_PROFILE_CREATE 25
extern  enum clnt_stat l2tp_session_profile_create_1(struct l2tp_api_session_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_session_profile_create_1_svc(struct l2tp_api_session_profile_msg_data , int *, struct svc_req *);
#define L2TP_SESSION_PROFILE_DELETE 26
extern  enum clnt_stat l2tp_session_profile_delete_1(char *, int *, CLIENT *);
extern  bool_t l2tp_session_profile_delete_1_svc(char *, int *, struct svc_req *);
#define L2TP_SESSION_PROFILE_MODIFY 27
extern  enum clnt_stat l2tp_session_profile_modify_1(struct l2tp_api_session_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_session_profile_modify_1_svc(struct l2tp_api_session_profile_msg_data , int *, struct svc_req *);
#define L2TP_SESSION_PROFILE_GET 28
extern  enum clnt_stat l2tp_session_profile_get_1(char *, struct l2tp_api_session_profile_msg_data *, CLIENT *);
extern  bool_t l2tp_session_profile_get_1_svc(char *, struct l2tp_api_session_profile_msg_data *, struct svc_req *);
#define L2TP_SESSION_PROFILE_LIST 29
extern  enum clnt_stat l2tp_session_profile_list_1(struct l2tp_api_session_profile_list_msg_data *, CLIENT *);
extern  bool_t l2tp_session_profile_list_1_svc(struct l2tp_api_session_profile_list_msg_data *, struct svc_req *);
#define L2TP_PPP_PROFILE_CREATE 30
extern  enum clnt_stat l2tp_ppp_profile_create_1(struct l2tp_api_ppp_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_ppp_profile_create_1_svc(struct l2tp_api_ppp_profile_msg_data , int *, struct svc_req *);
#define L2TP_PPP_PROFILE_DELETE 31
extern  enum clnt_stat l2tp_ppp_profile_delete_1(char *, int *, CLIENT *);
extern  bool_t l2tp_ppp_profile_delete_1_svc(char *, int *, struct svc_req *);
#define L2TP_PPP_PROFILE_MODIFY 32
extern  enum clnt_stat l2tp_ppp_profile_modify_1(struct l2tp_api_ppp_profile_msg_data , int *, CLIENT *);
extern  bool_t l2tp_ppp_profile_modify_1_svc(struct l2tp_api_ppp_profile_msg_data , int *, struct svc_req *);
#define L2TP_PPP_PROFILE_GET 33
extern  enum clnt_stat l2tp_ppp_profile_get_1(char *, struct l2tp_api_ppp_profile_msg_data *, CLIENT *);
extern  bool_t l2tp_ppp_profile_get_1_svc(char *, struct l2tp_api_ppp_profile_msg_data *, struct svc_req *);
#define L2TP_PPP_PROFILE_LIST 34
extern  enum clnt_stat l2tp_ppp_profile_list_1(struct l2tp_api_ppp_profile_list_msg_data *, CLIENT *);
extern  bool_t l2tp_ppp_profile_list_1_svc(struct l2tp_api_ppp_profile_list_msg_data *, struct svc_req *);
#define L2TP_PEER_GET 35
extern  enum clnt_stat l2tp_peer_get_1(struct l2tp_api_ip_addr , struct l2tp_api_ip_addr , struct l2tp_api_peer_msg_data *, CLIENT *);
extern  bool_t l2tp_peer_get_1_svc(struct l2tp_api_ip_addr , struct l2tp_api_ip_addr , struct l2tp_api_peer_msg_data *, struct svc_req *);
#define L2TP_PEER_LIST 36
extern  enum clnt_stat l2tp_peer_list_1(struct l2tp_api_peer_list_msg_data *, CLIENT *);
extern  bool_t l2tp_peer_list_1_svc(struct l2tp_api_peer_list_msg_data *, struct svc_req *);
#define L2TP_USER_LIST 37
extern  enum clnt_stat l2tp_user_list_1(struct l2tp_api_user_list_msg_data *, CLIENT *);
extern  bool_t l2tp_user_list_1_svc(struct l2tp_api_user_list_msg_data *, struct svc_req *);
#define L2TP_PEER_PROFILE_UNSET 38
extern  enum clnt_stat l2tp_peer_profile_unset_1(struct l2tp_api_peer_profile_unset_msg_data , int *, CLIENT *);
extern  bool_t l2tp_peer_profile_unset_1_svc(struct l2tp_api_peer_profile_unset_msg_data , int *, struct svc_req *);
#define L2TP_TUNNEL_PROFILE_UNSET 39
extern  enum clnt_stat l2tp_tunnel_profile_unset_1(struct l2tp_api_tunnel_profile_unset_msg_data , int *, CLIENT *);
extern  bool_t l2tp_tunnel_profile_unset_1_svc(struct l2tp_api_tunnel_profile_unset_msg_data , int *, struct svc_req *);
#define L2TP_SESSION_PROFILE_UNSET 40
extern  enum clnt_stat l2tp_session_profile_unset_1(struct l2tp_api_session_profile_unset_msg_data , int *, CLIENT *);
extern  bool_t l2tp_session_profile_unset_1_svc(struct l2tp_api_session_profile_unset_msg_data , int *, struct svc_req *);
#define L2TP_PPP_PROFILE_UNSET 41
extern  enum clnt_stat l2tp_ppp_profile_unset_1(struct l2tp_api_ppp_profile_unset_msg_data , int *, CLIENT *);
extern  bool_t l2tp_ppp_profile_unset_1_svc(struct l2tp_api_ppp_profile_unset_msg_data , int *, struct svc_req *);
#define L2TP_TEST_LOG 97
extern  enum clnt_stat l2tp_test_log_1(char *, int *, CLIENT *);
extern  bool_t l2tp_test_log_1_svc(char *, int *, struct svc_req *);
#define L2TP_TEST_MODIFY 98
extern  enum clnt_stat l2tp_test_modify_1(struct l2tp_api_test_msg_data , int *, CLIENT *);
extern  bool_t l2tp_test_modify_1_svc(struct l2tp_api_test_msg_data , int *, struct svc_req *);
#define L2TP_TEST_GET 99
extern  enum clnt_stat l2tp_test_get_1(struct l2tp_api_test_msg_data *, CLIENT *);
extern  bool_t l2tp_test_get_1_svc(struct l2tp_api_test_msg_data *, struct svc_req *);
extern int l2tp_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
 
#else /* K&R C */
#define L2TP_APP_INFO_GET 1
extern  enum clnt_stat l2tp_app_info_get_1();
extern  bool_t l2tp_app_info_get_1_svc();
#define L2TP_SYSTEM_MODIFY 2
extern  enum clnt_stat l2tp_system_modify_1();
extern  bool_t l2tp_system_modify_1_svc();
#define L2TP_SYSTEM_GET 3
extern  enum clnt_stat l2tp_system_get_1();
extern  bool_t l2tp_system_get_1_svc();
#define L2TP_PEER_PROFILE_CREATE 4
extern  enum clnt_stat l2tp_peer_profile_create_1();
extern  bool_t l2tp_peer_profile_create_1_svc();
#define L2TP_PEER_PROFILE_DELETE 5
extern  enum clnt_stat l2tp_peer_profile_delete_1();
extern  bool_t l2tp_peer_profile_delete_1_svc();
#define L2TP_PEER_PROFILE_MODIFY 6
extern  enum clnt_stat l2tp_peer_profile_modify_1();
extern  bool_t l2tp_peer_profile_modify_1_svc();
#define L2TP_PEER_PROFILE_GET 7
extern  enum clnt_stat l2tp_peer_profile_get_1();
extern  bool_t l2tp_peer_profile_get_1_svc();
#define L2TP_PEER_PROFILE_LIST 8
extern  enum clnt_stat l2tp_peer_profile_list_1();
extern  bool_t l2tp_peer_profile_list_1_svc();
#define L2TP_TUNNEL_CREATE 9
extern  enum clnt_stat l2tp_tunnel_create_1();
extern  bool_t l2tp_tunnel_create_1_svc();
#define L2TP_TUNNEL_DELETE 10
extern  enum clnt_stat l2tp_tunnel_delete_1();
extern  bool_t l2tp_tunnel_delete_1_svc();
#define L2TP_TUNNEL_MODIFY 11
extern  enum clnt_stat l2tp_tunnel_modify_1();
extern  bool_t l2tp_tunnel_modify_1_svc();
#define L2TP_TUNNEL_GET 12
extern  enum clnt_stat l2tp_tunnel_get_1();
extern  bool_t l2tp_tunnel_get_1_svc();
#define L2TP_TUNNEL_LIST 13
extern  enum clnt_stat l2tp_tunnel_list_1();
extern  bool_t l2tp_tunnel_list_1_svc();
#define L2TP_TUNNEL_PROFILE_CREATE 14
extern  enum clnt_stat l2tp_tunnel_profile_create_1();
extern  bool_t l2tp_tunnel_profile_create_1_svc();
#define L2TP_TUNNEL_PROFILE_DELETE 15
extern  enum clnt_stat l2tp_tunnel_profile_delete_1();
extern  bool_t l2tp_tunnel_profile_delete_1_svc();
#define L2TP_TUNNEL_PROFILE_MODIFY 16
extern  enum clnt_stat l2tp_tunnel_profile_modify_1();
extern  bool_t l2tp_tunnel_profile_modify_1_svc();
#define L2TP_TUNNEL_PROFILE_GET 17
extern  enum clnt_stat l2tp_tunnel_profile_get_1();
extern  bool_t l2tp_tunnel_profile_get_1_svc();
#define L2TP_TUNNEL_PROFILE_LIST 18
extern  enum clnt_stat l2tp_tunnel_profile_list_1();
extern  bool_t l2tp_tunnel_profile_list_1_svc();
#define L2TP_SESSION_CREATE 19
extern  enum clnt_stat l2tp_session_create_1();
extern  bool_t l2tp_session_create_1_svc();
#define L2TP_SESSION_DELETE 20
extern  enum clnt_stat l2tp_session_delete_1();
extern  bool_t l2tp_session_delete_1_svc();
#define L2TP_SESSION_MODIFY 21
extern  enum clnt_stat l2tp_session_modify_1();
extern  bool_t l2tp_session_modify_1_svc();
#define L2TP_SESSION_GET 22
extern  enum clnt_stat l2tp_session_get_1();
extern  bool_t l2tp_session_get_1_svc();
#define L2TP_SESSION_LIST 23
extern  enum clnt_stat l2tp_session_list_1();
extern  bool_t l2tp_session_list_1_svc();
#define L2TP_SESSION_INCALL_IND 24
extern  enum clnt_stat l2tp_session_incall_ind_1();
extern  bool_t l2tp_session_incall_ind_1_svc();
#define L2TP_SESSION_PROFILE_CREATE 25
extern  enum clnt_stat l2tp_session_profile_create_1();
extern  bool_t l2tp_session_profile_create_1_svc();
#define L2TP_SESSION_PROFILE_DELETE 26
extern  enum clnt_stat l2tp_session_profile_delete_1();
extern  bool_t l2tp_session_profile_delete_1_svc();
#define L2TP_SESSION_PROFILE_MODIFY 27
extern  enum clnt_stat l2tp_session_profile_modify_1();
extern  bool_t l2tp_session_profile_modify_1_svc();
#define L2TP_SESSION_PROFILE_GET 28
extern  enum clnt_stat l2tp_session_profile_get_1();
extern  bool_t l2tp_session_profile_get_1_svc();
#define L2TP_SESSION_PROFILE_LIST 29
extern  enum clnt_stat l2tp_session_profile_list_1();
extern  bool_t l2tp_session_profile_list_1_svc();
#define L2TP_PPP_PROFILE_CREATE 30
extern  enum clnt_stat l2tp_ppp_profile_create_1();
extern  bool_t l2tp_ppp_profile_create_1_svc();
#define L2TP_PPP_PROFILE_DELETE 31
extern  enum clnt_stat l2tp_ppp_profile_delete_1();
extern  bool_t l2tp_ppp_profile_delete_1_svc();
#define L2TP_PPP_PROFILE_MODIFY 32
extern  enum clnt_stat l2tp_ppp_profile_modify_1();
extern  bool_t l2tp_ppp_profile_modify_1_svc();
#define L2TP_PPP_PROFILE_GET 33
extern  enum clnt_stat l2tp_ppp_profile_get_1();
extern  bool_t l2tp_ppp_profile_get_1_svc();
#define L2TP_PPP_PROFILE_LIST 34
extern  enum clnt_stat l2tp_ppp_profile_list_1();
extern  bool_t l2tp_ppp_profile_list_1_svc();
#define L2TP_PEER_GET 35
extern  enum clnt_stat l2tp_peer_get_1();
extern  bool_t l2tp_peer_get_1_svc();
#define L2TP_PEER_LIST 36
extern  enum clnt_stat l2tp_peer_list_1();
extern  bool_t l2tp_peer_list_1_svc();
#define L2TP_USER_LIST 37
extern  enum clnt_stat l2tp_user_list_1();
extern  bool_t l2tp_user_list_1_svc();
#define L2TP_PEER_PROFILE_UNSET 38
extern  enum clnt_stat l2tp_peer_profile_unset_1();
extern  bool_t l2tp_peer_profile_unset_1_svc();
#define L2TP_TUNNEL_PROFILE_UNSET 39
extern  enum clnt_stat l2tp_tunnel_profile_unset_1();
extern  bool_t l2tp_tunnel_profile_unset_1_svc();
#define L2TP_SESSION_PROFILE_UNSET 40
extern  enum clnt_stat l2tp_session_profile_unset_1();
extern  bool_t l2tp_session_profile_unset_1_svc();
#define L2TP_PPP_PROFILE_UNSET 41
extern  enum clnt_stat l2tp_ppp_profile_unset_1();
extern  bool_t l2tp_ppp_profile_unset_1_svc();
#define L2TP_TEST_LOG 97
extern  enum clnt_stat l2tp_test_log_1();
extern  bool_t l2tp_test_log_1_svc();
#define L2TP_TEST_MODIFY 98
extern  enum clnt_stat l2tp_test_modify_1();
extern  bool_t l2tp_test_modify_1_svc();
#define L2TP_TEST_GET 99
extern  enum clnt_stat l2tp_test_get_1();
extern  bool_t l2tp_test_get_1_svc();
extern int l2tp_prog_1_freeresult ();
#endif /* K&R C */
 
/* the xdr functions */
 
#if defined(__STDC__) || defined(__cplusplus)
extern  bool_t xdr_optstring (XDR *, optstring*);
extern  bool_t xdr_l2tp_api_tunnel_auth_mode (XDR *, l2tp_api_tunnel_auth_mode*);
extern  bool_t xdr_l2tp_api_tunnel_mode (XDR *, l2tp_api_tunnel_mode*);
extern  bool_t xdr_l2tp_api_ip_addr (XDR *, l2tp_api_ip_addr*);
extern  bool_t xdr_l2tp_api_app_msg_data (XDR *, l2tp_api_app_msg_data*);
extern  bool_t xdr_l2tp_api_system_config (XDR *, l2tp_api_system_config*);
extern  bool_t xdr_l2tp_api_system_msg_stats (XDR *, l2tp_api_system_msg_stats*);
extern  bool_t xdr_l2tp_api_system_stats (XDR *, l2tp_api_system_stats*);
extern  bool_t xdr_l2tp_api_system_status (XDR *, l2tp_api_system_status*);
extern  bool_t xdr_l2tp_api_system_msg_data (XDR *, l2tp_api_system_msg_data*);
extern  bool_t xdr_l2tp_api_peer_msg_data (XDR *, l2tp_api_peer_msg_data*);
extern  bool_t xdr_l2tp_api_peer_list_entry (XDR *, l2tp_api_peer_list_entry*);
extern  bool_t xdr_l2tp_api_peer_list_msg_data (XDR *, l2tp_api_peer_list_msg_data*);
extern  bool_t xdr_l2tp_api_peer_profile_msg_data (XDR *, l2tp_api_peer_profile_msg_data*);
extern  bool_t xdr_l2tp_api_peer_profile_list_entry (XDR *, l2tp_api_peer_profile_list_entry*);
extern  bool_t xdr_l2tp_api_peer_profile_list_msg_data (XDR *, l2tp_api_peer_profile_list_msg_data*);
extern  bool_t xdr_l2tp_api_peer_profile_unset_msg_data (XDR *, l2tp_api_peer_profile_unset_msg_data*);
extern  bool_t xdr_l2tp_api_tunnel_peer (XDR *, l2tp_api_tunnel_peer*);
extern  bool_t xdr_l2tp_api_tunnel_stats (XDR *, l2tp_api_tunnel_stats*);
extern  bool_t xdr_l2tp_api_tunnel_msg_data (XDR *, l2tp_api_tunnel_msg_data*);
extern  bool_t xdr_l2tp_api_tunnel_list_msg_data (XDR *, l2tp_api_tunnel_list_msg_data*);
extern  bool_t xdr_l2tp_api_tunnel_profile_msg_data (XDR *, l2tp_api_tunnel_profile_msg_data*);
extern  bool_t xdr_l2tp_api_tunnel_profile_list_entry (XDR *, l2tp_api_tunnel_profile_list_entry*);
extern  bool_t xdr_l2tp_api_tunnel_profile_list_msg_data (XDR *, l2tp_api_tunnel_profile_list_msg_data*);
extern  bool_t xdr_l2tp_api_tunnel_profile_unset_msg_data (XDR *, l2tp_api_tunnel_profile_unset_msg_data*);
extern  bool_t xdr_l2tp_api_session_proxy_auth_type (XDR *, l2tp_api_session_proxy_auth_type*);
extern  bool_t xdr_l2tp_api_session_call_errors (XDR *, l2tp_api_session_call_errors*);
extern  bool_t xdr_l2tp_api_session_stats (XDR *, l2tp_api_session_stats*);
extern  bool_t xdr_l2tp_api_session_peer_info (XDR *, l2tp_api_session_peer_info*);
extern  bool_t xdr_l2tp_api_session_type (XDR *, l2tp_api_session_type*);
extern  bool_t xdr_l2tp_api_session_msg_data (XDR *, l2tp_api_session_msg_data*);
extern  bool_t xdr_l2tp_api_session_list_msg_data (XDR *, l2tp_api_session_list_msg_data*);
extern  bool_t xdr_l2tp_api_session_incall_msg_data (XDR *, l2tp_api_session_incall_msg_data*);
extern  bool_t xdr_l2tp_api_session_profile_msg_data (XDR *, l2tp_api_session_profile_msg_data*);
extern  bool_t xdr_l2tp_api_session_profile_list_entry (XDR *, l2tp_api_session_profile_list_entry*);
extern  bool_t xdr_l2tp_api_session_profile_list_msg_data (XDR *, l2tp_api_session_profile_list_msg_data*);
extern  bool_t xdr_l2tp_api_session_profile_unset_msg_data (XDR *, l2tp_api_session_profile_unset_msg_data*);
extern  bool_t xdr_l2tp_api_ppp_sync_mode (XDR *, l2tp_api_ppp_sync_mode*);
extern  bool_t xdr_l2tp_api_ppp_profile_msg_data (XDR *, l2tp_api_ppp_profile_msg_data*);
extern  bool_t xdr_l2tp_api_ppp_profile_list_entry (XDR *, l2tp_api_ppp_profile_list_entry*);
extern  bool_t xdr_l2tp_api_ppp_profile_list_msg_data (XDR *, l2tp_api_ppp_profile_list_msg_data*);
extern  bool_t xdr_l2tp_api_ppp_profile_unset_msg_data (XDR *, l2tp_api_ppp_profile_unset_msg_data*);
extern  bool_t xdr_l2tp_api_user_list_entry (XDR *, l2tp_api_user_list_entry*);
extern  bool_t xdr_l2tp_api_user_list_msg_data (XDR *, l2tp_api_user_list_msg_data*);
extern  bool_t xdr_l2tp_api_test_trigger_type (XDR *, l2tp_api_test_trigger_type*);
extern  bool_t xdr_l2tp_api_test_msg_data (XDR *, l2tp_api_test_msg_data*);
extern  bool_t xdr_l2tp_tunnel_delete_1_argument (XDR *, l2tp_tunnel_delete_1_argument*);
extern  bool_t xdr_l2tp_tunnel_get_1_argument (XDR *, l2tp_tunnel_get_1_argument*);
extern  bool_t xdr_l2tp_session_delete_1_argument (XDR *, l2tp_session_delete_1_argument*);
extern  bool_t xdr_l2tp_session_get_1_argument (XDR *, l2tp_session_get_1_argument*);
extern  bool_t xdr_l2tp_session_list_1_argument (XDR *, l2tp_session_list_1_argument*);
extern  bool_t xdr_l2tp_peer_get_1_argument (XDR *, l2tp_peer_get_1_argument*);
 
#else /* K&R C */
extern bool_t xdr_optstring ();
extern bool_t xdr_l2tp_api_tunnel_auth_mode ();
extern bool_t xdr_l2tp_api_tunnel_mode ();
extern bool_t xdr_l2tp_api_ip_addr ();
extern bool_t xdr_l2tp_api_app_msg_data ();
extern bool_t xdr_l2tp_api_system_config ();
extern bool_t xdr_l2tp_api_system_msg_stats ();
extern bool_t xdr_l2tp_api_system_stats ();
extern bool_t xdr_l2tp_api_system_status ();
extern bool_t xdr_l2tp_api_system_msg_data ();
extern bool_t xdr_l2tp_api_peer_msg_data ();
extern bool_t xdr_l2tp_api_peer_list_entry ();
extern bool_t xdr_l2tp_api_peer_list_msg_data ();
extern bool_t xdr_l2tp_api_peer_profile_msg_data ();
extern bool_t xdr_l2tp_api_peer_profile_list_entry ();
extern bool_t xdr_l2tp_api_peer_profile_list_msg_data ();
extern bool_t xdr_l2tp_api_peer_profile_unset_msg_data ();
extern bool_t xdr_l2tp_api_tunnel_peer ();
extern bool_t xdr_l2tp_api_tunnel_stats ();
extern bool_t xdr_l2tp_api_tunnel_msg_data ();
extern bool_t xdr_l2tp_api_tunnel_list_msg_data ();
extern bool_t xdr_l2tp_api_tunnel_profile_msg_data ();
extern bool_t xdr_l2tp_api_tunnel_profile_list_entry ();
extern bool_t xdr_l2tp_api_tunnel_profile_list_msg_data ();
extern bool_t xdr_l2tp_api_tunnel_profile_unset_msg_data ();
extern bool_t xdr_l2tp_api_session_proxy_auth_type ();
extern bool_t xdr_l2tp_api_session_call_errors ();
extern bool_t xdr_l2tp_api_session_stats ();
extern bool_t xdr_l2tp_api_session_peer_info ();
extern bool_t xdr_l2tp_api_session_type ();
extern bool_t xdr_l2tp_api_session_msg_data ();
extern bool_t xdr_l2tp_api_session_list_msg_data ();
extern bool_t xdr_l2tp_api_session_incall_msg_data ();
extern bool_t xdr_l2tp_api_session_profile_msg_data ();
extern bool_t xdr_l2tp_api_session_profile_list_entry ();
extern bool_t xdr_l2tp_api_session_profile_list_msg_data ();
extern bool_t xdr_l2tp_api_session_profile_unset_msg_data ();
extern bool_t xdr_l2tp_api_ppp_sync_mode ();
extern bool_t xdr_l2tp_api_ppp_profile_msg_data ();
extern bool_t xdr_l2tp_api_ppp_profile_list_entry ();
extern bool_t xdr_l2tp_api_ppp_profile_list_msg_data ();
extern bool_t xdr_l2tp_api_ppp_profile_unset_msg_data ();
extern bool_t xdr_l2tp_api_user_list_entry ();
extern bool_t xdr_l2tp_api_user_list_msg_data ();
extern bool_t xdr_l2tp_api_test_trigger_type ();
extern bool_t xdr_l2tp_api_test_msg_data ();
extern bool_t xdr_l2tp_tunnel_delete_1_argument ();
extern bool_t xdr_l2tp_tunnel_get_1_argument ();
extern bool_t xdr_l2tp_session_delete_1_argument ();
extern bool_t xdr_l2tp_session_get_1_argument ();
extern bool_t xdr_l2tp_session_list_1_argument ();
extern bool_t xdr_l2tp_peer_get_1_argument ();
 
#endif /* K&R C */
 
#ifdef __cplusplus
}
#endif
 
#endif /* !_L2TP_RPC_H_RPCGEN */
 
comments