-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathapmib.h
More file actions
executable file
·2473 lines (2108 loc) · 76.8 KB
/
apmib.h
File metadata and controls
executable file
·2473 lines (2108 loc) · 76.8 KB
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
/*
* Header file of AP mib
* Authors: David Hsu <davidhsu@realtek.com.tw>
*
* $Id: apmib.h,v 1.54 2009/09/15 02:12:24 bradhuang Exp $
*
*/
#ifndef INCLUDE_APMIB_H
#define INCLUDE_APMIB_H
#define SOFTWARE_VERSION "v0.11f"
/* Forrest, 2007.11.07.
* If you want to let APMIB adopt shared memory mechanism, define it to 1.
* Or define it to 0 will go back to original local copy mechanism.
* Note:
* 1. I only use shared memory for HW Configuration (pHwSetting), Default
* Configuration (pMibDef) and Current Configuration (pMib). There is
* no shared memory for each linkchain now.
* 2. Because uClibc does not support POSIX inter-process semaphore, I have
* to use SYSTEM V semaphore and shared memory. So if you want to adopt
* shared memory mechanism, you must go to turn on CONFIG_SYSVIPC
* kernel config to support it.
*/
#ifdef CONFIG_APMIB_SHARED
#define CONFIG_APMIB_SHARED_MEMORY 1
#else
#define CONFIG_APMIB_SHARED_MEMORY 0
#endif
// added by rock /////////////////////////////////////////
#ifdef VOIP_SUPPORT
#include "voip_flash.h"
#include "voip_flash_mib.h"
#endif
#if defined(CONFIG_DOMAIN_NAME_QUERY_SUPPORT)
//#define LOGDEBUG_ENABLED
#endif
#define MBSSID
//hf
#define CONFIG_RTL_BT_CLIENT
#define COMPRESS_MIB_SETTING
#define MIB_TLV
#ifdef MIB_TLV
#define MIB_TABLE_LIST 0x8000
#else
#define MIB_TABLE_LIST 0x0
#endif
//#ifdef HOME_GATEWAY
//#define GW_QOS_ENGINE
//#endif
#ifdef ENABLE_QOS // thru makefile
#ifndef QOS_BY_BANDWIDTH
#define GW_QOS_ENGINE
#endif
#endif
#if defined(CONFIG_RTL_92D_SUPPORT)||defined(CONFIG_RTL_DUAL_PCIESLOT_BIWLAN)
#define NUM_WLAN_INTERFACE 2 // number of wlan interface supported
#else
#define NUM_WLAN_INTERFACE 1 // number of wlan interface supported
#endif
#if defined(CONFIG_RTL_819X)
#define NUM_WLAN_MULTIPLE_SSID 8 // number of wlan ssid support
#else
//!CONFIG_RTL_8196B => rtl8651c+rtl8190
#define NUM_WLAN_MULTIPLE_SSID 5 // number of wlan ssid support
#endif
#ifdef MBSSID
#define NUM_VWLAN 4 // number of virtual wlan interface supported
#else
#define NUM_VWLAN 0
#endif
#if defined(UNIVERSAL_REPEATER) && defined(CONFIG_RTL_ULINKER)
#define NUM_VWLAN_INTERFACE NUM_VWLAN+4 //+4 is ulinker_ap, ulinker_cl, ulinker_rpt, repeater(vxd)
#elif defined(CONFIG_RTL_ULINKER)
#define NUM_VWLAN_INTERFACE NUM_VWLAN+2 //+2 is ulinker_ap, ulinker_cl
#elif defined(UNIVERSAL_REPEATER)
#define NUM_VWLAN_INTERFACE NUM_VWLAN+1
#else
#define NUM_VWLAN_INTERFACE NUM_VWLAN
#endif
#if defined(UNIVERSAL_REPEATER) && defined(CONFIG_RTL_ULINKER)
#define ULINKER_AP_MIB (NUM_VWLAN_INTERFACE-3)
#define ULINKER_CL_MIB (NUM_VWLAN_INTERFACE-2)
#define ULINKER_RPT_MIB (NUM_VWLAN_INTERFACE-1)
#elif defined(CONFIG_RTL_ULINKER)
#define ULINKER_AP_MIB (NUM_VWLAN_INTERFACE-1)
#define ULINKER_CL_MIB (NUM_VWLAN_INTERFACE)
#endif
// WLAN MIB id
#define MIB_WLAN_SSID 1
#define MIB_WLAN_CHANNEL 2
#define MIB_WLAN_WEP 3
#define MIB_WLAN_WEP64_KEY1 4
#define MIB_WLAN_WEP64_KEY2 5
#define MIB_WLAN_WEP64_KEY3 6
#define MIB_WLAN_WEP64_KEY4 7
#define MIB_WLAN_WEP128_KEY1 8
#define MIB_WLAN_WEP128_KEY2 9
#define MIB_WLAN_WEP128_KEY3 10
#define MIB_WLAN_WEP128_KEY4 11
#define MIB_WLAN_WEP_KEY_TYPE 12
#define MIB_WLAN_WEP_DEFAULT_KEY 13
#define MIB_WLAN_FRAG_THRESHOLD 14
#define MIB_WLAN_SUPPORTED_RATES 15
#define MIB_WLAN_BEACON_INTERVAL 16
#define MIB_WLAN_PREAMBLE_TYPE 17
#define MIB_WLAN_BASIC_RATES 18
#define MIB_WLAN_RTS_THRESHOLD 19
#define MIB_WLAN_AUTH_TYPE 20
#define MIB_WLAN_HIDDEN_SSID 21
#define MIB_WLAN_WLAN_DISABLED 22
#define MIB_ELAN_MAC_ADDR 23
#define MIB_WLAN_WLAN_MAC_ADDR 24
#define MIB_WLAN_ENCRYPT 25
#define MIB_WLAN_ENABLE_SUPP_NONWPA 26
#define MIB_WLAN_SUPP_NONWPA 27
#define MIB_WLAN_WPA_AUTH 28
#define MIB_WLAN_WPA_CIPHER_SUITE 29
#define MIB_WLAN_WPA_PSK 30
#define MIB_WLAN_WPA_GROUP_REKEY_TIME 31
#define MIB_WLAN_RS_IP 32
#define MIB_WLAN_RS_PORT 33
#define MIB_WLAN_RS_PASSWORD 34
#define MIB_WLAN_ENABLE_1X 35
#define MIB_WLAN_PSK_FORMAT 36
#define MIB_WLAN_WPA2_PRE_AUTH 37
#define MIB_WLAN_WPA2_CIPHER_SUITE 38
#define MIB_WLAN_ACCOUNT_RS_ENABLED 39
#define MIB_WLAN_ACCOUNT_RS_IP 40
#define MIB_WLAN_ACCOUNT_RS_PORT 41
#define MIB_WLAN_ACCOUNT_RS_PASSWORD 42
#define MIB_WLAN_ACCOUNT_RS_UPDATE_ENABLED 43
#define MIB_WLAN_ACCOUNT_RS_UPDATE_DELAY 44
#define MIB_WLAN_MAC_AUTH_ENABLED 45
#define MIB_WLAN_RS_MAXRETRY 46
#define MIB_WLAN_RS_INTERVAL_TIME 47
#define MIB_WLAN_ACCOUNT_RS_MAXRETRY 48
#define MIB_WLAN_ACCOUNT_RS_INTERVAL_TIME 49
#define MIB_WLAN_INACTIVITY_TIME 50
#define MIB_WLAN_RATE_ADAPTIVE_ENABLED 51
#define MIB_WLAN_MACAC_ENABLED 52
#define MIB_WLAN_MACAC_NUM 53
#define MIB_WLAN_MACAC_ADDR ((MIB_WLAN_MACAC_NUM+1)|MIB_TABLE_LIST)
#define MIB_WLAN_AC_ADDR_ADD ((MIB_WLAN_MACAC_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_WLAN_AC_ADDR_DEL ((MIB_WLAN_MACAC_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_WLAN_AC_ADDR_DELALL ((MIB_WLAN_MACAC_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_WLAN_DTIM_PERIOD 58
#define MIB_WLAN_MODE 59
#define MIB_WLAN_NETWORK_TYPE 60
#define MIB_WLAN_DEFAULT_SSID 61 // used while configured as Ad-hoc and no any other Ad-hoc could be joined
// it will use this default SSID to start BSS
#define MIB_WLAN_IAPP_DISABLED 62
#define MIB_WLAN_WDS_ENABLED 63
#define MIB_WLAN_WDS_NUM 64
#define MIB_WLAN_WDS ((MIB_WLAN_WDS_NUM+1)|MIB_TABLE_LIST)
#define MIB_WLAN_WDS_ADD ((MIB_WLAN_WDS_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_WLAN_WDS_DEL ((MIB_WLAN_WDS_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_WLAN_WDS_DELALL ((MIB_WLAN_WDS_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_WLAN_WDS_ENCRYPT 69
#define MIB_WLAN_WDS_WEP_FORMAT 70
#define MIB_WLAN_WDS_WEP_KEY 71
#define MIB_WLAN_WDS_PSK_FORMAT 72
#define MIB_WLAN_WDS_PSK 73
#define MIB_WLAN_BAND 74
#define MIB_WLAN_FIX_RATE 75
#define MIB_WLAN_BLOCK_RELAY 76
#define MIB_WLAN_MACCLONE_ENABLED 77
#define MIB_WLAN_PROTECTION_DISABLED 78
#ifdef TLS_CLIENT
//sc_yang for client mode TLS
#define MIB_CERTROOT_TBL_NUM 79
#define MIB_CERTROOT_TBL ((MIB_CERTROOT_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_CERTROOT_ADD ((MIB_CERTROOT_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_CERTROOT_DEL ((MIB_CERTROOT_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_CERTROOT_DELALL ((MIB_CERTROOT_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_CERTUSER_TBL_NUM 84
#define MIB_CERTUSER_TBL ((MIB_CERTUSER_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_CERTUSER_ADD ((MIB_CERTUSER_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_CERTUSER_DEL ((MIB_CERTUSER_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_CERTUSER_DELALL ((MIB_CERTUSER_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#endif
// for WMM
#define MIB_WLAN_WMM_ENABLED 89
#ifdef WLAN_EASY_CONFIG
#define MIB_WLAN_EASYCFG_ENABLED 90
#define MIB_WLAN_EASYCFG_MODE 91
#define MIB_WLAN_EASYCFG_SSID 92
#define MIB_WLAN_EASYCFG_KEY 93
#define MIB_WLAN_EASYCFG_ALG_REQ 94
#define MIB_WLAN_EASYCFG_ALG_SUPP 95
#define MIB_WLAN_EASYCFG_DIGEST 96
#define MIB_WLAN_EASYCFG_ROLE 97
#define MIB_WLAN_EASYCFG_SCAN_SSID 98
#define MIB_WLAN_EASYCFG_WLAN_MODE 99
#endif // WLAN_EASY_CONFIG
#ifdef MIB_TLV
#define MIB_ROOT (100|MIB_TABLE_LIST)
#define MIB_WLAN_ROOT (101|MIB_TABLE_LIST)
#else //etop modify
#define MIB_ROOT (100|MIB_TABLE_LIST)
#define MIB_WLAN_ROOT (101|MIB_TABLE_LIST)
#endif
#if defined(CONFIG_RTL_8198_AP_ROOT)
#define MIB_NTP_ENABLED 151
#define MIB_NTP_SERVER_ID 152
#define MIB_NTP_TIMEZONE 153
#define MIB_NTP_SERVER_IP1 154
#define MIB_NTP_SERVER_IP2 155
#endif
#define MIB_WAN_MAC_ADDR 100
#define MIB_WAN_IP_ADDR 101
#define MIB_WAN_SUBNET_MASK 102
#define MIB_WAN_DEFAULT_GATEWAY 103
#define MIB_WAN_DHCP 104
#define MIB_DNS_MODE 105
#define MIB_PPP_USER_NAME 106
#define MIB_PPP_PASSWORD 107
#define MIB_PPP_IDLE_TIME 108
#define MIB_PPP_CONNECT_TYPE 109
#ifdef HOME_GATEWAY
#define MIB_PORTFW_ENABLED 110
#define MIB_PORTFW_TBL_NUM 111
#define MIB_PORTFW_TBL ((MIB_PORTFW_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_PORTFW_ADD ((MIB_PORTFW_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_PORTFW_DEL ((MIB_PORTFW_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_PORTFW_MOD ((MIB_PORTFW_TBL_NUM+3)|MIB_DEL_TBL_ENTRY | MIB_MOD_TBL_ENTRY)
#define MIB_PORTFW_DELALL ((MIB_PORTFW_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_IPFILTER_ENABLED 116
#define MIB_IPFILTER_TBL_NUM 117
#define MIB_IPFILTER_TBL ((MIB_IPFILTER_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_IPFILTER_ADD ((MIB_IPFILTER_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_IPFILTER_DEL ((MIB_IPFILTER_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_IPFILTER_DELALL ((MIB_IPFILTER_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_MACFILTER_ENABLED 122
#define MIB_MACFILTER_TBL_NUM 123
#define MIB_MACFILTER_TBL ((MIB_MACFILTER_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_MACFILTER_ADD ((MIB_MACFILTER_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_MACFILTER_DEL ((MIB_MACFILTER_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_MACFILTER_DELALL ((MIB_MACFILTER_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_PORTFILTER_ENABLED 128
#define MIB_PORTFILTER_TBL_NUM 129
#define MIB_PORTFILTER_TBL ((MIB_PORTFILTER_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_PORTFILTER_ADD ((MIB_PORTFILTER_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_PORTFILTER_DEL ((MIB_PORTFILTER_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_PORTFILTER_DELALL ((MIB_PORTFILTER_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_TRIGGERPORT_ENABLED 134
#define MIB_TRIGGERPORT_TBL_NUM 135
#define MIB_TRIGGERPORT_TBL ((MIB_TRIGGERPORT_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_TRIGGERPORT_ADD ((MIB_TRIGGERPORT_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_TRIGGERPORT_DEL ((MIB_TRIGGERPORT_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_TRIGGERPORT_DELALL ((MIB_TRIGGERPORT_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_DMZ_ENABLED 140
#define MIB_DMZ_HOST 141
#define MIB_UPNP_ENABLED 142
#define MIB_UPNP_IGD_NAME 143
#endif //#ifdef HOME_GATEWAY
#define MIB_PPP_MTU_SIZE 144
#define MIB_PPTP_IP_ADDR 145
#define MIB_PPTP_SUBNET_MASK 146
#define MIB_PPTP_SERVER_IP_ADDR 147
#define MIB_PPTP_USER_NAME 148
#define MIB_PPTP_PASSWORD 149
#define MIB_PPTP_MTU_SIZE 150
#define MIB_NTP_ENABLED 151
#define MIB_NTP_SERVER_ID 152
#define MIB_NTP_TIMEZONE 153
#define MIB_NTP_SERVER_IP1 154
#define MIB_NTP_SERVER_IP2 155
#define MIB_PPTP_SECURITY_ENABLED 156
#define MIB_FIXED_IP_MTU_SIZE 157
#define MIB_DHCP_MTU_SIZE 158
#define MIB_PPTP_MPPC_ENABLED 159
#ifdef HOME_GATEWAY
#ifdef VPN_SUPPORT
#define MIB_IPSECTUNNEL_ENABLED 160
#define MIB_IPSECTUNNEL_TBL_NUM 161
#define MIB_IPSECTUNNEL_TBL ((MIB_IPSECTUNNEL_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_IPSECTUNNEL_ADD ((MIB_IPSECTUNNEL_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_IPSECTUNNEL_DEL ((MIB_IPSECTUNNEL_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_IPSECTUNNEL_DELALL ((MIB_IPSECTUNNEL_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_IPSEC_NATT_ENABLED 167
#define MIB_IPSEC_RSA_FILE 168
#endif
#endif // HOME_GATEWAY
#define MIB_IP_ADDR 170
#define MIB_SUBNET_MASK 171
#define MIB_DEFAULT_GATEWAY 172
#define MIB_DHCP 173
#define MIB_DHCP_CLIENT_START 174
#define MIB_DHCP_CLIENT_END 175
#define MIB_DNS1 176
#define MIB_DNS2 177
#define MIB_DNS3 178
#define MIB_STP_ENABLED 179
#define MIB_SUPER_NAME 180
#define MIB_SUPER_PASSWORD 181
#define MIB_USER_NAME 182
#define MIB_USER_PASSWORD 183
#define MIB_SCRLOG_ENABLED 184
#define MIB_AUTO_DISCOVERY_ENABLED 185
#define MIB_DEVICE_NAME 186
#ifdef HOME_GATEWAY
#define MIB_DDNS_ENABLED 187
#define MIB_DDNS_TYPE 188
#define MIB_DDNS_DOMAIN_NAME 189
#define MIB_DDNS_USER 190
#define MIB_DDNS_PASSWORD 191
#endif
#define MIB_OP_MODE 192
#define MIB_WISP_WAN_ID 193
#ifdef HOME_GATEWAY
#define MIB_WEB_WAN_ACCESS_ENABLED 194
#define MIB_PING_WAN_ACCESS_ENABLED 195
#define MIB_HOST_NAME 197
#endif
#define MIB_DOMAIN_NAME 198
#ifdef MIB_TLV
//#define MIB_TABLE_LIST 0x8000
#define MIB_ID_MASK (0x8000-1)
#define MIB_HW_ROOT (200|MIB_TABLE_LIST)
#define MIB_HW_WLAN_ROOT (201|MIB_TABLE_LIST)
#define MIB_ADD_TBL_ENTRY 0x10000
#define MIB_DEL_TBL_ENTRY 0x20000
#define MIB_DELALL_TBL_ENTRY 0x40000
#define MIB_MOD_TBL_ENTRY 0x100000
#define MIB_WLAN_TBL 0x80000
#else //etop modify :for config
//#define MIB_TABLE_LIST 0x8000
#define MIB_ID_MASK (0x8000-1)
#define MIB_HW_ROOT (200|MIB_TABLE_LIST)
#define MIB_HW_WLAN_ROOT (201|MIB_TABLE_LIST)
#define MIB_ADD_TBL_ENTRY 0x10000
#define MIB_DEL_TBL_ENTRY 0x20000
#define MIB_MOD_TBL_ENTRY 0x100000
#define MIB_DELALL_TBL_ENTRY 0x40000
#define MIB_WLAN_TBL 0x80000
#endif // #ifdef MIB_TLV
// Hardware setting MIB
#define MIB_HW_BOARD_VER 200
#define MIB_HW_NIC0_ADDR 201
#define MIB_HW_NIC1_ADDR 202
#define MIB_HW_WLAN_ADDR 203
#define MIB_HW_REG_DOMAIN 204
#define MIB_HW_RF_TYPE 205
#define MIB_HW_TX_POWER_CCK 206
#define MIB_HW_TX_POWER_OFDM 207
#define MIB_HW_ANT_DIVERSITY 208
#define MIB_HW_TX_ANT 209
#define MIB_HW_CCA_MODE 210
#define MIB_HW_PHY_TYPE 211
#define MIB_HW_LED_TYPE 212
#define MIB_HW_INIT_GAIN 213
#ifdef TLS_CLIENT
#define MIB_ROOT_IDX 214
#define MIB_USER_IDX 215
#endif
#ifdef ROUTE_SUPPORT
#define MIB_STATICROUTE_ENABLED 216
#define MIB_STATICROUTE_TBL_NUM 217
#define MIB_STATICROUTE_TBL ((MIB_STATICROUTE_TBL_NUM+1)|MIB_TABLE_LIST) /*218*/
#define MIB_STATICROUTE_ADD ((MIB_STATICROUTE_TBL_NUM+2) | MIB_ADD_TBL_ENTRY)
#define MIB_STATICROUTE_DEL ((MIB_STATICROUTE_TBL_NUM+3) | MIB_DEL_TBL_ENTRY)
#define MIB_STATICROUTE_MOD ((MIB_STATICROUTE_TBL_NUM+3) | MIB_DEL_TBL_ENTRY | MIB_MOD_TBL_ENTRY)
#define MIB_STATICROUTE_DELALL ((MIB_STATICROUTE_TBL_NUM+4) | MIB_DELALL_TBL_ENTRY)/*221*/
#define MIB_RIP_ENABLED 222
#define MIB_RIP_LAN_TX 223
#define MIB_RIP_LAN_RX 224
#define MIB_RIP_WAN_TX 225
#define MIB_RIP_WAN_RX 226
#endif
#define MIB_REMOTELOG_ENABLED 227
#define MIB_REMOTELOG_SERVER 228
#ifdef HOME_GATEWAY
#ifdef DOS_SUPPORT
#define MIB_DOS_ENABLED 229
#define MIB_DOS_SYSSYN_FLOOD 230
#define MIB_DOS_SYSFIN_FLOOD 231
#define MIB_DOS_SYSUDP_FLOOD 232
#define MIB_DOS_SYSICMP_FLOOD 233
#define MIB_DOS_PIPSYN_FLOOD 234
#define MIB_DOS_PIPFIN_FLOOD 235
#define MIB_DOS_PIPUDP_FLOOD 236
#define MIB_DOS_PIPICMP_FLOOD 237
#define MIB_DOS_BLOCK_TIME 238
#endif
#define MIB_URLFILTER_ENABLED 239
#define MIB_URLFILTER_TBL_NUM 240
#define MIB_URLFILTER_TBL ((MIB_URLFILTER_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_URLFILTER_ADD ((MIB_URLFILTER_TBL_NUM+2) | MIB_ADD_TBL_ENTRY)
#define MIB_URLFILTER_DEL ((MIB_URLFILTER_TBL_NUM+3) | MIB_DEL_TBL_ENTRY)
#define MIB_URLFILTER_DELALL ((MIB_URLFILTER_TBL_NUM+4)| MIB_DELALL_TBL_ENTRY)
#define MIB_VPN_PASSTHRU_IPSEC_ENABLED 245
#define MIB_VPN_PASSTHRU_PPTP_ENABLED 246
#define MIB_VPN_PASSTHRU_L2TP_ENABLED 247
#define MIB_CUSTOM_PASSTHRU_ENABLED 386
#endif
//#ifdef SNMP_SUPPORT Keith remove
#define MIB_SNMP_RO_COMMUNITY 248
#define MIB_SNMP_RW_COMMUNITY 249
//#endif Keith remove
#ifdef UNIVERSAL_REPEATER
#define MIB_REPEATER_ENABLED1 250
#define MIB_REPEATER_SSID1 251
#define MIB_REPEATER_ENABLED2 252
#define MIB_REPEATER_SSID2 253
#endif
// added by rock /////////////////////////////////////////
#ifdef VOIP_SUPPORT
#define MIB_VOIP_CFG 254
#endif // VOIP_SUPPORT
#define MIB_WIFI_SPECIFIC 260
#define MIB_PPP_SERVICE_NAME 261
#define MIB_WLAN_TURBO_MODE 262
#define MIB_WLAN_RFPOWER_SCALE 263
#ifdef WIFI_SIMPLE_CONFIG
#define MIB_WLAN_WSC_DISABLE 270
#define MIB_WLAN_WSC_METHOD 271
#define MIB_WLAN_WSC_CONFIGURED 272
#define MIB_HW_WSC_PIN 273
#define MIB_WLAN_WSC_AUTH 274
#define MIB_WLAN_WSC_ENC 275
#define MIB_WLAN_WSC_MANUAL_ENABLED 276
#define MIB_WLAN_WSC_PSK 277
#define MIB_WLAN_WSC_SSID 278
#define MIB_WLAN_WSC_UPNP_ENABLED 279
#define MIB_WLAN_WSC_REGISTRAR_ENABLED 280
#define MIB_WLAN_WSC_CONFIGBYEXTREG 281
#endif
//Brad addd
#define MIB_DAYLIGHT_SAVE 282
#define MIB_IGMP_PROXY_DISABLED 283
//Brad add for 11N
#define MIB_WLAN_CHANNEL_BONDING 284
#define MIB_WLAN_CONTROL_SIDEBAND 285
#define MIB_WLAN_AGGREGATION 286
#define MIB_WLAN_SHORT_GI 287
//Brad define
#define MIB_WLAN_WEP64_KEY 288
#define MIB_WLAN_WEP128_KEY 289
#define MIB_HW_11N_XCAP 290
#define MIB_HW_11N_RXIMR 291
#define MIB_DHCPRSVDIP_ENABLED 292
#define MIB_DHCPRSVDIP_TBL_NUM 293
#define MIB_DHCPRSVDIP_TBL ((MIB_DHCPRSVDIP_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_DHCPRSVDIP_ADD ((MIB_DHCPRSVDIP_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_DHCPRSVDIP_DEL ((MIB_DHCPRSVDIP_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_DHCPRSVDIP_DELALL ((MIB_DHCPRSVDIP_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_HW_11N_LOFDMPWD 298
#define MIB_HW_11N_ANTPWD_B 299
#define MIB_HW_11N_ANTPWD_C 300
#define MIB_HW_11N_ANTPWD_D 301
#define MIB_HW_11N_THER_RFIC 302
#define MIB_HW_WLAN_ADDR1 303
#define MIB_HW_WLAN_ADDR2 304
#define MIB_HW_WLAN_ADDR3 305
#define MIB_HW_WLAN_ADDR4 306
// GW_QOS_ENGINE
#define MIB_QOS_ENABLED 307
#define MIB_QOS_AUTO_UPLINK_SPEED 308
#define MIB_QOS_MANUAL_UPLINK_SPEED 309
#define MIB_QOS_RULE_TBL_NUM 310
#define MIB_QOS_RULE_TBL ((MIB_QOS_RULE_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_QOS_ADD ((MIB_QOS_RULE_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_QOS_DEL ((MIB_QOS_RULE_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_QOS_DELALL ((MIB_QOS_RULE_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_WLAN_ACCESS 315
#define MIB_WLAN_PRIORITY 316
#define MIB_START_MP 317
#define MIB_SYSTIME_YEAR 321
#define MIB_SYSTIME_MON 322
#define MIB_SYSTIME_DAY 323
#define MIB_SYSTIME_HOUR 324
#define MIB_SYSTIME_MIN 325
#define MIB_SYSTIME_SEC 326
/* # keith: add l2tp support. 20080515 */
#define MIB_L2TP_IP_ADDR 331
#define MIB_L2TP_SUBNET_MASK 332
#define MIB_L2TP_SERVER_IP_ADDR 333
#define MIB_L2TP_USER_NAME 334
#define MIB_L2TP_PASSWORD 335
#define MIB_L2TP_MTU_SIZE 336
#define MIB_L2TP_CONNECTION_TYPE 337
#define MIB_L2TP_IDLE_TIME 338
// Patch for our router under another router to dial up l2tp
#define MIB_L2TP_DEFAULT_GW 339
// Patch for our router under another router to dial up pptp
#define MIB_PPTP_DEFAULT_GW 340
#define MIB_PPTP_WAN_IP_DYNAMIC 341
#ifdef CONFIG_GET_SERVER_IP_BY_DOMAIN
#define MIB_PPTP_SERVER_DOMAIN 342
#define MIB_PPTP_GET_SERV_BY_DOMAIN 343
#endif
#ifdef CONFIG_IPV6
#define MIB_IPV6_ID 380
#define MIB_IPV6_RADVD_PARAM (MIB_IPV6_ID)
#define MIB_IPV6_DNSV6_PARAM (MIB_IPV6_ID+1)
#define MIB_IPV6_DHCPV6S_PARAM (MIB_IPV6_ID+2)
#define MIB_IPV6_ADDR_PARAM (MIB_IPV6_ID+3)
#define MIB_IPV6_TUNNEL_PARAM (MIB_IPV6_ID+4)
#endif
// SNMP, Forrest added, 2007.10.25.
#ifdef CONFIG_SNMP
#define MIB_SNMP_ENABLED 435
#define MIB_SNMP_NAME 436
#define MIB_SNMP_LOCATION 437
#define MIB_SNMP_CONTACT 438
#define MIB_SNMP_RWCOMMUNITY 439
#define MIB_SNMP_ROCOMMUNITY 440
#define MIB_SNMP_TRAP_RECEIVER1 441
#define MIB_SNMP_TRAP_RECEIVER2 442
#define MIB_SNMP_TRAP_RECEIVER3 443
#endif
//### add by sen_liu 2011.3.29 TX Beamforming added to mib in 92D
#define MIB_WLAN_TX_BEAMFORMING 450
//### end
/*hf add for country str*/
#define MIB_WLAN_COUNTRY_STRING 451
/*end*/
/* # keith: add l2tp support. 20080515 */
#ifdef CONFIG_GET_SERVER_IP_BY_DOMAIN
#define MIB_L2TP_GET_SERV_BY_DOMAIN 499
#define MIB_L2TP_SERVER_DOMAIN 500
#endif
#define MIB_L2TP_WAN_IP_DYNAMIC 501
#define MIB_L2TP_GATEWAY 502
//SCHEDULE
#define MIB_WLAN_SCHEDULE_ENABLED 503
#define MIB_WLAN_SCHEDULE_TBL_NUM 504
#define MIB_WLAN_SCHEDULE_TBL ((MIB_WLAN_SCHEDULE_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_WLAN_SCHEDULE_ADD ((MIB_WLAN_SCHEDULE_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_WLAN_SCHEDULE_DEL ((MIB_WLAN_SCHEDULE_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_WLAN_SCHEDULE_DELALL ((MIB_WLAN_SCHEDULE_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
#define MIB_PPTP_CONNECTION_TYPE 509
#define MIB_PPTP_IDLE_TIME 510
//NewAdd For rtl8196B
#define MIB_HW_WLAN_ADDR5 511
#define MIB_HW_WLAN_ADDR6 512
#define MIB_HW_WLAN_ADDR7 513
#define MIB_HW_TX_POWER_OFDM_1S 514
#define MIB_HW_TX_POWER_OFDM_2S 515
#define MIB_HW_11N_LOFDMPWDA 516
#define MIB_HW_11N_LOFDMPWDB 517
#define MIB_HW_11N_TSSI1 518
#define MIB_HW_11N_TSSI2 519
#define MIB_HW_11N_THER 520
#define MIB_HW_11N_TRSWITCH 521 //MIB_HW_11N_ESERVED1->MIB_HW_11N_TRSWITCH
#define MIB_HW_11N_TRSWPAPE_C9 522
#define MIB_HW_11N_TRSWPAPE_CC 523
#define MIB_HW_11N_TARGET_PWR 524
#define MIB_HW_11N_RESERVED5 525
#define MIB_HW_11N_RESERVED6 526
#define MIB_HW_11N_RESERVED7 527
#define MIB_HW_11N_RESERVED8 528
/*-----end-----*/
// SNMP maximum length of fields, Forrest added, 2007.10.25.
#ifdef CONFIG_SNMP
#define MAX_SNMP_NAME_LEN 64
#define MAX_SNMP_LOCATION_LEN 64
#define MAX_SNMP_CONTACT_LEN 64
#define MAX_SNMP_COMMUNITY_LEN 64
#endif
//=========add for MESH=========
//#ifdef CONFIG_RTK_MESH Keith remove
#define MIB_MESH_ENABLE 644 //new feature:Mesh enable/disable
#define MIB_MESH_ROOT_ENABLE 551
#define MIB_MESH_ID 554
#define MIB_MESH_MAX_NEIGHTBOR 555
#define MIB_MESH_ENCRYPT 559
#define MIB_MESH_PSK_FORMAT 560
#define MIB_MESH_WPA_PSK 561
#define MIB_MESH_WPA_AUTH 562
#define MIB_MESH_WPA2_CIPHER_SUITE 563
//#ifdef _MESH_ACL_ENABLE_ Keith remove
#define MIB_MESH_ACL_ENABLED 580
#define MIB_MESH_ACL_NUM 581
#define MIB_MESH_ACL_ADDR ((MIB_MESH_ACL_NUM+1)|MIB_TABLE_LIST)
#define MIB_MESH_ACL_ADDR_ADD ((MIB_MESH_ACL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_MESH_ACL_ADDR_DEL ((MIB_MESH_ACL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_MESH_ACL_ADDR_DELALL ((MIB_MESH_ACL_NUM+4)|MIB_DELALL_TBL_ENTRY)
//#endif Keith remove
//#ifdef _11s_TEST_MODE_ Keith remove
#define MIB_MESH_TEST_PARAM1 600
#define MIB_MESH_TEST_PARAM2 601
#define MIB_MESH_TEST_PARAM3 602
#define MIB_MESH_TEST_PARAM4 603
#define MIB_MESH_TEST_PARAM5 604
#define MIB_MESH_TEST_PARAM6 605
#define MIB_MESH_TEST_PARAM7 606
#define MIB_MESH_TEST_PARAM8 607
#define MIB_MESH_TEST_PARAM9 608
#define MIB_MESH_TEST_PARAMA 609
#define MIB_MESH_TEST_PARAMB 610
#define MIB_MESH_TEST_PARAMC 611
#define MIB_MESH_TEST_PARAMD 612
#define MIB_MESH_TEST_PARAME 613
#define MIB_MESH_TEST_PARAMF 614
#define MIB_MESH_TEST_PARAMSTR1 615
//#endif Keith remove
//#endif // CONFIG_RTK_MESH Keith remove
//=========add for MESH=========
#define MIB_VLANCONFIG_ENABLED 616
#define MIB_VLANCONFIG_TBL_NUM 617
#define MIB_VLANCONFIG_TBL ((MIB_VLANCONFIG_TBL_NUM+1)|MIB_TABLE_LIST)
#define MIB_VLANCONFIG_ADD ((MIB_VLANCONFIG_TBL_NUM+2)|MIB_ADD_TBL_ENTRY)
#define MIB_VLANCONFIG_DEL ((MIB_VLANCONFIG_TBL_NUM+3)|MIB_DEL_TBL_ENTRY)
#define MIB_VLANCONFIG_DELALL ((MIB_VLANCONFIG_TBL_NUM+4)|MIB_DELALL_TBL_ENTRY)
//#ifdef CONFIG_RTL_WAPI_SUPPORT Keith remove
//WAPI start from 630
#define MIB_WLAN_WAPI_PSK 630
#define MIB_WLAN_WAPI_PSKLEN 631
#define MIB_WLAN_WAPI_PSK_FORMAT 632
#define MIB_WLAN_WAPI_AUTH 633
#define MIB_WLAN_WAPI_ASIPADDR 634
#define MIB_WLAN_WAPI_SEARCHINFO 635
#define MIB_WLAN_WAPI_SEARCHINDEX 636
#define MIB_WLAN_WAPI_MCASTREKEY 637
#define MIB_WLAN_WAPI_MCAST_TIME 638
#define MIB_WLAN_WAPI_MCAST_PACKETS 639
#define MIB_WLAN_WAPI_UCASTREKEY 640
#define MIB_WLAN_WAPI_UCAST_TIME 641
#define MIB_WLAN_WAPI_UCAST_PACKETS 642
#define MIB_WLAN_WAPI_CA_INIT 643
//Added to support two remote as and one local as at the same time
#define MIB_WLAN_WAPI_CERT_SEL 656
#define MIB_WLAN_WAPI_AUTH_MODE_2or3_CERT 657
#define MIB_NAT_ENABLED 645
#define MIB_WLAN_STBC_ENABLED 646
#define MIB_WLAN_COEXIST_ENABLED 647
#define MIB_SAMBA_ENABLED 650
#define MIB_MIB_VER 655
//#ifdef CONFIG_RTL_WAPI_SUPPORT Keith remove
#define CERTS_DATABASE "/var/myca/index.txt"
#define ONE_DAY_SECONDS 86400
#define USER_NAME_LEN 32
typedef struct _CertsDbEntry_ {
unsigned char userName[USER_NAME_LEN]; //user name of this user cert
unsigned long serial; //serial of this cert
unsigned short validDays; //total valid days of this cert
unsigned short validDaysLeft; //the left valid days of this cert
unsigned char certType; //0(default): X.509; others: reserved
unsigned char certStatus; //0(default): valid; 1: expired; 2: revoked
} CERTS_DB_ENTRY_T, *CERTS_DB_ENTRY_Tp;
//#endif Keith remove
//WAPI END
// GW_QOS_ENGINE
#define MIB_QOS_AUTO_DOWNLINK_SPEED 651
#define MIB_QOS_MANUAL_DOWNLINK_SPEED 652
//11n onoff TKIP
#define MIB_WLAN_11N_ONOFF_TKIP 660
#ifdef CONFIG_RTL_BT_CLIENT
#define MIB_BT_UPLOAD_DIR 680
#define MIB_BT_DOWNLOAD_DIR 681
#define MIB_BT_TOTAL_ULIMIT 682
#define MIB_BT_TOTAL_DLIMIT 683
#define MIB_BT_REFRESH_TIME 684
#define MIB_BT_ENABLED 685
#endif
#define MIB_WLAN_ACK_TIMEOUT 686
/*+++++added by Jack for Tr-069 configuration+++++*/
#ifdef CONFIG_APP_TR069
/* Keith add for tr069 --start */
#undef mib_get
#undef mib_set
#undef mib_update
#define mib_get(S, T) apmib_get(S, T)
#define mib_set(S, T) apmib_set(S, T)
#define mib_update(S) apmib_update(S)
#define LANDEVNAME2BR0(a) do{ if(a && (strncmp(a, "eth0", 4)==0||strncmp(a, "wlan0", 5)==0||strncmp(a, "usb0", 4)==0)) strcpy(a, "br0"); }while(0)
#ifdef CONFIG_USER_CWMP_WITH_SSL
#define _CWMP_WITH_SSL_ 1
#endif //CONFIG_USER_CWMP_WITH_SSL
#define TIME_ZONE
#define _PRMT_USERINTERFACE_
#define WLAN_SUPPORT
#ifdef MBSSID
#define WLAN_MBSSID
#endif
#ifdef UNIVERSAL_REPEATER
#define WLAN_REPEATER
#endif
#define MAC_FILTER
#define ENABLE_WPAAES_WPA2TKIP
//--- for TR098 -------------------------------
#define MOD_FOR_TR098 /* brucehou */
#if defined(MOD_FOR_TR098)
#define MOD_FOR_TR098_LAYER3FWD
#define MOD_FOR_TR098_LANDEVICE
#define MOD_FOR_TR098_VAP
#define MOD_FOR_TR098_PORTMAP
#if defined(CONFIG_RTL_92D_SUPPORT)
#define MOD_FOR_TR098_DUALBAND
#endif
#endif /* #if defined(MOD_FOR_TR098) */
//--- for TR098 -------------------------------
/* Keith add for tr069 --end */
//#define _PRMT_X_CT_EXT_ENABLE_ //Enable for E8C
///////////////////////////////////////////////////////////////////////////Enable for E8C
#if defined(_PRMT_X_CT_EXT_ENABLE_)
//#define _PRMT_USBRESTORE 1
//#define _PRMT_SERVICES_ 1
//#define _PRMT_CAPABILITIES_ 1
//#define _PRMT_DEVICECONFIG_ 1
#define _PRMT_USERINTERFACE_ 1
//#define _TR069_CONREQ_AUTH_SELECT_ 1
#define _PRMT_TR143_ 1
//#define _PRMT_USB_ETH_ 1
//#define _PRMT_WT107_ 1
#ifdef _PRMT_WT107_
#ifdef CONFIG_USER_BUSYBOX_TRACEROUTE
#define _SUPPORT_TRACEROUTE_PROFILE_ 1
#endif //CONFIG_USER_BUSYBOX_TRACEROUTE
#define _SUPPORT_CAPTIVEPORTAL_PROFILE_ 1
#define _SUPPORT_ADSL2DSLDIAG_PROFILE_ 1
#define _SUPPORT_ADSL2WAN_PROFILE_ 1
#endif //_PRMT_WT107_
#define SNTP_MULTI_SERVER 1
//#define _PRMT_X_CT_COM_MWBAND_ 1
//#define IP_BASED_CLIENT_TYPE //star: for set ip pool for different client type
//#define CTC_TELECOM_ACCOUNT
//#define CTC_WAN_NAME
//#define FTP_ACCOUNT_INDEPENDENT
//#define TELNET_ACCOUNT_INDEPENDENT
//#define ENABLE_WPAAES_WPA2TKIP
#define _INFORM_EXT_FOR_X_CT_ 1
#ifdef _PRMT_SERVICES_
#define _PRMT_X_CT_COM_IPTV_ 1
#define _PRMT_X_CT_COM_MWBAND_ 1
//#define _PRMT_X_CT_COM_MONITOR_ 1
//#define _PRMT_X_CT_COM_VPDN_ 1
#endif //_PRMT_SERVICES_
// #define _PRMT_X_CT_COM_DDNS_ 1
// #define _PRMT_X_CT_COM_ALG 1
// #define _PRMT_X_CT_COM_ACCOUNT_ 1
// #define _PRMT_X_CT_COM_RECON_ 1
// #define _PRMT_X_CT_COM_PORTALMNT 1
// #define _PRMT_X_CT_COM_SRVMNG_ 1 /*ServiceManage*/
//#define _PRMT_X_CT_COM_PPPOE_ 1
// #define _PRMT_X_CT_COM_PPPOEv2_ 1
// #ifdef WLAN_SUPPORT
// #define _PRMT_X_CT_COM_WLAN_ 1
// #endif //WLAN_SUPPORT
// #define _PRMT_X_CT_COM_DHCP_ 1
// #define _PRMT_X_CT_COM_WANEXT_ 1
// #define _PRMT_X_CT_COM_UPNP_ 1
#ifdef E8B_QOS
#define _PRMT_X_CT_COM_QOS_ 1
#define _PRMT_X_STD_QOS_ 1
#endif
//#define _PRMT_X_CT_COM_ALARM_ 1
#define _PRMT_X_CT_COM_USERINFO 1
//#ifdef CONFIG_IPV6
// #define _PRMT_X_CT_COM_IPv6_ 1
//#endif
#endif
///////////////////////////////////////////////////////////////////////////Enable for E8C
#define CWMP_ID 700
#define MIB_CWMP_ENABLED CWMP_ID + 0
#define MIB_CWMP_PROVISIONINGCODE CWMP_ID + 1 //069
#define MIB_CWMP_ACS_URL CWMP_ID + 2 //069
#define MIB_CWMP_ACS_USERNAME CWMP_ID + 3 //069
#define MIB_CWMP_ACS_PASSWORD CWMP_ID + 4 //069
#define MIB_CWMP_INFORM_ENABLE CWMP_ID + 5 //069
#define MIB_CWMP_INFORM_INTERVAL CWMP_ID + 6 //069
#define MIB_CWMP_INFORM_TIME CWMP_ID + 7
#define MIB_CWMP_CONREQ_USERNAME CWMP_ID + 8
#define MIB_CWMP_CONREQ_PASSWORD CWMP_ID + 9
#define MIB_CWMP_ACS_UPGRADESMANAGED CWMP_ID + 10 //069
//#define MIB_CWMP_LAN_CONFIGPASSWD CWMP_ID + 11
//#define MIB_CWMP_SERIALNUMBER CWMP_ID + 12 //069
//#define MIB_CWMP_DHCP_SERVERCONF CWMP_ID + 13
//#define MIB_CWMP_LAN_IPIFENABLE CWMP_ID + 14
//#define MIB_CWMP_LAN_ETHIFENABLE CWMP_ID + 15
//#define MIB_CWMP_WLAN_BASICENCRY CWMP_ID + 16
//#define MIB_CWMP_WLAN_WPAENCRY CWMP_ID + 17
#define MIB_CWMP_DL_COMMANDKEY CWMP_ID + 18
#define MIB_CWMP_DL_STARTTIME CWMP_ID + 19
#define MIB_CWMP_DL_COMPLETETIME CWMP_ID + 20
#define MIB_CWMP_DL_FAULTCODE CWMP_ID + 21
#define MIB_CWMP_INFORM_EVENTCODE CWMP_ID + 22
#define MIB_CWMP_RB_COMMANDKEY CWMP_ID + 23
//#define MIB_CWMP_ACS_PARAMETERKEY CWMP_ID + 24
#define MIB_CWMP_CERT_PASSWORD CWMP_ID + 25
#define MIB_CWMP_FLAG CWMP_ID + 26
#define MIB_CWMP_SI_COMMANDKEY CWMP_ID + 27 /*ScheduleInform's commandkey*/
#ifdef _PRMT_USERINTERFACE_ /*InternetGatewayDevice.UserInterface.*/
#define MIB_UIF_PW_REQUIRED CWMP_ID + 28 /*PasswordRequired*/
#define MIB_UIF_PW_USER_SEL CWMP_ID + 29 /*PasswordUserSelectable*/
#define MIB_UIF_UPGRADE CWMP_ID + 30 /*UpgradeAvailable*/
#define MIB_UIF_WARRANTYDATE CWMP_ID + 31 /*WarrantyDate*/
#define MIB_UIF_AUTOUPDATESERVER CWMP_ID + 32 /*AutoUpdateServer*/
#define MIB_UIF_USERUPDATESERVER CWMP_ID + 33 /*UserUpdateServer*/
#endif /*_PRMT_USERINTERFACE_*/
#define MIB_CWMP_ACS_KICKURL CWMP_ID + 74
#define MIB_CWMP_ACS_DOWNLOADURL CWMP_ID + 75
#define MIB_CWMP_CONREQ_PORT CWMP_ID + 76 /*port for connection request*/
#define MIB_CWMP_CONREQ_PATH CWMP_ID + 77 /*path for connection request*/
#define MIB_CWMP_FLAG2 CWMP_ID + 78
//#ifdef _PRMT_TR143_
#define MIB_TR143_UDPECHO_ENABLE CWMP_ID + 79
#define MIB_TR143_UDPECHO_ITFTYPE CWMP_ID + 80
#define MIB_TR143_UDPECHO_SRCIP CWMP_ID + 81
#define MIB_TR143_UDPECHO_PORT CWMP_ID + 82
#define MIB_TR143_UDPECHO_PLUS CWMP_ID + 83
//#endif //_PRMT_TR143_
#define MIB_CWMP_NOTIFY_LIST CWMP_ID + 84
#define MIB_CWMP_ACS_URL_OLD CWMP_ID + 85 //069
#define MIB_CWMP_MIB_END CWMP_ID + 200 /* Reserve 200 mib for tr069*/
#endif /*CONFIG_APP_TR069*/
#define MIB_TEST_DATA 10000
#define MIB_DHCPRSVDIP_IPADDR 1001
#define MIB_DHCPRSVDIP_MACADDR 1002
#define MIB_DHCPRSVDIP_HOSTNAME 1003
#define MIB_SCHEDULE_TEXT 1011
#define MIB_SCHEDULE_ECO 1012
#define MIB_SCHEDULE_FTIME 1013
#define MIB_SCHEDULE_TTIME 1014
#define MIB_SCHEDULE_DAY 1015
#define MIB_PORTFW_IPADDR 1021
#define MIB_PORTFW_FROMPORT 1022
#define MIB_PORTFW_TOPORT 1023
#define MIB_PORTFW_PROTOTYPE 1024
#define MIB_PORTFW_COMMENT 1025
#define MIB_IPFILTER_IPADDR 1031
#define MIB_IPFILTER_PROTOTYPE 1032
#define MIB_IPFILTER_COMMENT 1033
#define MIB_PORTFILTER_FROMPORT 1041
#define MIB_PORTFILTER_TOPORT 1042
#define MIB_PORTFILTER_PROTOTYPE 1043
#define MIB_PORTFILTER_COMMENT 1044
#define MIB_MACFILTER_MACADDR 1051
#define MIB_MACFILTER_COMMENT 1052
#define MIB_TRIGGERPORT_TRI_FROMPORT 1061
#define MIB_TRIGGERPORT_TRI_TOPORT 1062
#define MIB_TRIGGERPORT_TRI_PROTOTYPE 1063
#define MIB_TRIGGERPORT_INC_FROMPORT 1064
#define MIB_TRIGGERPORT_INC_TOPORT 1065
#define MIB_TRIGGERPORT_INC_PROTOTYPE 1066
#define MIB_TRIGGERPORT_COMMENT 1067
#define MIB_URLFILTER_URLADDR 1071
#define MIB_VLANCONFIG_ENTRY_ENABLED 1081
#define MIB_VLANCONFIG_NETIFACE 1082
#define MIB_VLANCONFIG_TAGGED 1083
#define MIB_VLANCONFIG_UNTAGGED 1084
#define MIB_VLANCONFIG_PRIORITY 1085
#define MIB_VLANCONFIG_CFI 1086
#define MIB_VLANCONFIG_GROUPID 1087
#define MIB_VLANCONFIG_VLANID 1088
#if defined(CONFIG_RTK_VLAN_NEW_FEATURE) || defined(CONFIG_RTL_HW_VLAN_SUPPORT)
#define MIB_VLANCONFIG_FORWARDING_RULE 1089
#endif
#define MIB_STATICROUTE_DSTADDR 1091
#define MIB_STATICROUTE_NETMASK 1092
#define MIB_STATICROUTE_GATEWAY 1093
#define MIB_STATICROUTE_INTERFACE 1094
#define MIB_STATICROUTE_METRIC 1095
#define MIB_IPSECTUNNEL_TUNNELID 1101
#define MIB_IPSECTUNNEL_AUTHTYPE 1102
#define MIB_IPSECTUNNEL_LCTYPE 1103
#define MIB_IPSECTUNNEL_LC_IPADDR 1104
#define MIB_IPSECTUNNEL_LC_MASKLEN 1105
#define MIB_IPSECTUNNEL_RTTYPE 1106
#define MIB_IPSECTUNNEL_RT_IPADDR 1107
#define MIB_IPSECTUNNEL_RT_MASKLEN 1108
#define MIB_IPSECTUNNEL_RT_GWADDR 1109
#define MIB_IPSECTUNNEL_KEYMODE 1110
#define MIB_IPSECTUNNEL_ESPAH 1111
#define MIB_IPSECTUNNEL_ESPENCR 1112
#define MIB_IPSECTUNNEL_ESPAUTH 1113
#define MIB_IPSECTUNNEL_AHAUTH 1114
#define MIB_IPSECTUNNEL_CONTYPE 1115
#define MIB_IPSECTUNNEL_PSKEY 1116
#define MIB_IPSECTUNNEL_RSAKEY 1117
#define MIB_IPSECTUNNEL_SPI 1118
#define MIB_IPSECTUNNEL_ENCRKEY 1119