-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathomci.lua
1142 lines (1022 loc) · 64.6 KB
/
omci.lua
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
--[[
Wireshark dissector for ITU-T G984.4 and G988 OMCI frames.
Copyright (C) 2012 Technicolor
Authors:
Dirk Van Aken ([email protected]),
Olivier Hardouin ([email protected])
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Description:
Wireshark dissector for ONT Management and Control Interface (OMCI) protocol (ITU-T G984.4, ITU-T G988)
This protocol is used on Gigabit Passive Optical Network (GPON) between Optical Line Termition (OLT, the network side) and Optical Network Termination (ONT, the end user side) units.
This is management protocol used to configure services (like Ethernet, QoS, Video overlay, Tx/Rx control) on the ONT.
The dissector applies on UDP or Ethernet packet that contains a copy of OMCI data going between ONT and OLT as explained in appendix III of ITU-T G988
Links that were used to create this dissector:
General presentation about WS dissector in Lua: http://sharkfest.wireshark.org/sharkfest.09/DT06_Bjorlykke_Lua%20Scripting%20in%20Wireshark.pdf
Standard Wireshark dissector: http://www.wireshark.org/docs/wsug_html_chunked/wslua_dissector_example.html
Lua Support in Wireshark: http://www.wireshark.org/docs/wsug_html_chunked/wsluarm.html
Nice Wireshark dissector example: http://thomasfischer.biz/?p=175
Another nice Wireshark dissector example: http://code.google.com/p/eathena/source/browse/devel/FlavioJS/athena.lua?r=9341
Note from the author:
*) Not all ME classes described in the OMCI standards are supported in this dissector (any support to complete the list is very welcome)
*) This implementation is the first LUA SW written by the author. It (certainly) could be more efficient (any comment is welcome)
--]]
function toBinStr(hexStr)
local num = tonumber(hexStr, 16)
local binaryStr = ""
repeat
binaryStr = tostring(num % 2) .. binaryStr
num = math.floor(num / 2)
until num == 0
return binaryStr
end
-- Create a new dissector
omciproto = Proto ("omci", "OMCI Protocol")
-- init function
function omciproto.init()
end
local msgtype_meta = {
__index = function(t, k)
if k < 4 or k > 28 then
return "Reserved"
end
end
}
local msgtype = {
[4] = "Create",
[5] = "Create Complete Connection",
[6] = "Delete",
[7] = "Delete Complete Connection",
[8] = "Set",
[9] = "Get",
[10] = "Get Complete Connection",
[11] = "Get All Alarms",
[12] = "Get All Alarms Next",
[13] = "MIB Upload",
[14] = "MIB Upload Next",
[15] = "MIB Reset",
[16] = "Alarm",
[17] = "Attribute Value Change",
[18] = "Test",
[19] = "Start Software Download",
[20] = "Download Section",
[21] = "End Software Download",
[22] = "Activate Software",
[23] = "Commit Software",
[24] = "Synchronize Time",
[25] = "Reboot",
[26] = "Get Next",
[27] = "Test Result",
[28] = "Get Current Data"
}
setmetatable(msgtype, msgtype_meta)
local msg_result_meta = {
__index = function(t, k)
if k == 7 or k == 8 or k > 9 then
return "Unknown"
end
end
}
local msg_result= {
[0] = "Command processed successfully",
[1] = "Command processing error",
[2] = "Command not supported",
[3] = "Command parameter error",
[4] = "Unknown managed entity",
[5] = "Unknown managed entity instance",
[6] = "Device busy",
[9] = "Attribute failed or unknown"
}
setmetatable(msg_result, msg_result_meta)
local test_message_name = {}
local test_message_name_meta = {
__index = function(t, k)
if k >= 0 and k <= 6 then
return "Reserved for future use (" .. k .. ")"
elseif k == 7 then
return "Self test"
elseif k > 7 and k <=255 then
return "Vendor specific (" .. k .. ")"
else
return "***ERROR: Not a Test ID*** (" .. k .. ")"
end
end
}
setmetatable(test_message_name, test_message_name_meta)
local mt2 = {
__index = function(t2, k)
local returntable = {}
if k >= 172 and k <= 239 then
returntable.me_class_name= "Reserved for future B-PON managed entities (" .. k .. ")"
elseif k >= 240 and k <= 255 then
returntable.me_class_name= "Reserved for vendor-specific managed entities (" .. k .. ")"
elseif k >= 343 and k <= 65279 then
returntable.me_class_name= "Reserved for future standardization (" .. k .. ")"
elseif k >= 65280 and k <= 65535 then
returntable.me_class_name= "Reserved for vendor-specific use (" .. k .. ")"
else
returntable.me_class_name= "***TBD*** (" .. k .. ")"
end
return returntable
end
}
local omci_def = {
[2] = { me_class_name = "ONT Data",
{ attname="MIB Data Sync", length=1, setbycreate=false }},
[5] = { me_class_name = "Cardholder",
{ attname="Actual Plug-in Unit Type", length=1, setbycreate=false },
{ attname="Expected Plug-in Unit Type", length=1, setbycreate=false },
{ attname="Expected Port Count", length=1, setbycreate=false },
{ attname="Expected Equipment Id", length=20, setbycreate=false },
{ attname="Actual Equipment Id", length=20, setbycreate=false },
{ attname="Protection Profile Pointer", length=1, setbycreate=false },
{ attname="Invoke Protection Switch", length=1, setbycreate=false }},
[6] = { me_class_name = "Circuit Pack",
{ attname="Type", length=1, setbycreate=true },
{ attname="Number of ports", length=1, setbycreate=false },
{ attname="Serial Number", length=8, setbycreate=false },
{ attname="Version", length=14, setbycreate=false },
{ attname="Vendor Id", length=4, setbycreate=false },
{ attname="Administrative State", length=1, setbycreate=true },
{ attname="Operational State", length=1, setbycreate=false },
{ attname="Bridged or IP Ind", length=1, setbycreate=false },
{ attname="Equipment Id", length=20, setbycreate=false },
{ attname="Card Configuration", length=1, setbycreate=true },
{ attname="Total T-CONT Buffer Number", length=1, setbycreate=false },
{ attname="Total Priority Queue Number", length=1, setbycreate=false },
{ attname="Total Traffic Scheduler Number", length=1, setbycreate=false },
{ attname="Power Shed Override", length=4, setbycreate=false }},
[7] = { me_class_name = "Software Image",
{ attname="Version", length=14, setbycreate=false },
{ attname="Is committed", length=1, setbycreate=false },
{ attname="Is active", length=1, setbycreate=false },
{ attname="Is valid", length=1, setbycreate=false }},
[11] = { me_class_name = "PPTP Ethernet UNI",
{ attname="Expected Type", length=1, setbycreate=false },
{ attname="Sensed Type", length=1, setbycreate=false },
{ attname="Auto Detection Configuration", length=1, setbycreate=false },
{ attname="Ethernet Loopback Configuration", length=1, setbycreate=false },
{ attname="Administrative State", length=1, setbycreate=false },
{ attname="Operational State", length=1, setbycreate=false },
{ attname="Configuration Ind", length=1, setbycreate=false },
{ attname="Max Frame Size", length=2, setbycreate=false },
{ attname="DTE or DCE", length=1, setbycreate=false },
{ attname="Pause Time", length=2, setbycreate=false },
{ attname="Bridged or IP Ind", length=1, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC Interval", length=1, setbycreate=false },
{ attname="PPPoE Filter", length=1, setbycreate=false },
{ attname="Power Control", length=1, setbycreate=false }},
[14] = { me_class_name ="Interworking VCC termination point",
{ attname="VCI value", length=2, setbycreate=true },
{ attname="VP network CTP connectivity pointer", length=2, setbycreate=true },
{ attname="Deprecated 1", length=1, setbycreate=true },
{ attname="Deprecated 2", length=2, setbycreate=true },
{ attname="AAL5 profile pointer", length=2, setbycreate=true },
{ attname="Deprecated 3", length=2, setbycreate=true },
{ attname="AAL loopback configuration", length=1, setbycreate=false },
{ attname="PPTP counter", length=1, setbycreate=false },
{ attname="Operational state", length=1, setbycreate=false }},
[24] = { me_class_name = "Ethernet PM History Data",
{ attname="Interval End Time", length=1, setbycreate=false },
{ attname="Threshold Data 1/2 Id", length=2, setbycreate=true },
{ attname="FCS errors Drop events", length=4, setbycreate=false },
{ attname="Excessive Collision Counter", length=4, setbycreate=false },
{ attname="Late Collision Counter", length=4, setbycreate=false },
{ attname="Frames too long", length=4, setbycreate=false },
{ attname="Buffer overflows on Receive", length=4, setbycreate=false },
{ attname="Buffer overflows on Transmit", length=4, setbycreate=false },
{ attname="Single Collision Frame Counter", length=4, setbycreate=false },
{ attname="Multiple Collisions Frame Counter", length=4, setbycreate=false },
{ attname="SQE counter", length=4, setbycreate=false },
{ attname="Deferred Transmission Counter", length=4, setbycreate=false },
{ attname="Internal MAC Transmit Error Counter", length=4, setbycreate=false },
{ attname="Carrier Sense Error Counter", length=4, setbycreate=false },
{ attname="Alignment Error Counter", length=4, setbycreate=false },
{ attname="Internal MAC Receive Error Counter", length=4, setbycreate=false }},
[44] = { me_class_name = "Vendor Specific",
{ attname="Sub-Entity", length=1, setbycreate=true },
subentity_attr = {}},
[45] = { me_class_name = "MAC Bridge Service Profile",
{ attname="Spanning tree ind", length=1, setbycreate=true },
{ attname="Learning ind", length=1, setbycreate=true },
{ attname="Port bridging ind", length=1, setbycreate=true },
{ attname="Priority", length=2, setbycreate=true },
{ attname="Max age", length=2, setbycreate=true },
{ attname="Hello time", length=2, setbycreate=true },
{ attname="Forward delay", length=2, setbycreate=true },
{ attname="Unknown MAC address discard", length=1, setbycreate=true },
{ attname="MAC learning depth", length=1, setbycreate=true }},
[46] = { me_class_name = "MAC bridge configuration data",
{ attname="Bridge MAC address", length=6, setbycreate=false },
{ attname="Bridge priority", length=2, setbycreate=false },
{ attname="Designated root", length=8, setbycreate=false },
{ attname="Root path cost", length=4, setbycreate=false },
{ attname="Bridge port count", length=1, setbycreate=false },
{ attname="Root port num", length=1, setbycreate=false },
{ attname="Hello time", length=2, setbycreate=false },
{ attname="Forward delay", length=2, setbycreate=false }},
[47] = { me_class_name = "MAC bridge port configuration data",
{ attname="Bridge id pointer", length=2, setbycreate=true },
{ attname="Port num", length=1, setbycreate=true },
{ attname="TP type", length=1, setbycreate=true },
{ attname="TP pointer", length=2, setbycreate=true },
{ attname="Port priority", length=2, setbycreate=true },
{ attname="Port path cost", length=2, setbycreate=true },
{ attname="Port spanning tree ind", length=1, setbycreate=true },
{ attname="Encapsulation method", length=1, setbycreate=true },
{ attname="LAN FCS ind", length=1, setbycreate=true },
{ attname="Port MAC address", length=6, setbycreate=false },
{ attname="Outbound TD pointer", length=2, setbycreate=false },
{ attname="Inbound TD pointer", length=2, setbycreate=false }},
[48] = { me_class_name = "MAC bridge port designation data",
{ attname="Designated bridge root cost port", length=24, setbycreate=false },
{ attname="Port state", length=1, setbycreate=false }},
[49] = { me_class_name = "MAC bridge port filter table data",
{ attname="MAC filter table", length=8, setbycreate=false }},
[50] = { me_class_name = "MAC bridge port bridge table data",
{ attname="Bridge table", length=8, setbycreate=false}},
[51] = { me_class_name = "MAC Bridge PM History Data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="Bridge learning entry discard count", length=4, setbycreate=false }},
[52] = { me_class_name = "MAC Bridge Port PM History Data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="Forwarded frame counter", length=4, setbycreate=false },
{ attname="Delay exceeded discard counter", length=4, setbycreate=false },
{ attname="MTU exceeded discard counter", length=4, setbycreate=false },
{ attname="Received frame counter", length=4, setbycreate=false },
{ attname="Received and discarded counter", length=4, setbycreate=false }},
[53] = { me_class_name = "PPTP POTS UNI",
{ attname="Administrative State", length=1, setbycreate=false },
{ attname="Deprecated", length=2, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC Interval", length=1, setbycreate=false },
{ attname="Impendance", length=1, setbycreate=false },
{ attname="Transmission Path", length=1, setbycreate=false },
{ attname="RX Gain", length=1, setbycreate=false },
{ attname="TX Gain", length=1, setbycreate=false },
{ attname="Operational State", length=1, setbycreate=false },
{ attname="Hook State", length=1, setbycreate=false },
{ attname="POTS Holdover Time", length=2, setbycreate=false },
{ attname="Nominal Feed Voltage", length=1, setbycreate=false },
{ attname="Loss Of Softswitch", length=1, setbycreate=false }},
[55] = { me_class_name = "**TBD** Voice PM history data" },
[66] = { me_class_name = "**TBD** AAL2 SSCS protocol monitoring history data" },
[67] = { me_class_name = "IP port configuration data",
{ attname="This attribute numbers the port", length=1, setbycreate=true },
{ attname="TP type", length=1, setbycreate=true },
{ attname="TP pointer", length=2, setbycreate=true },
{ attname="Port address", length=4, setbycreate=true },
{ attname="Port mask", length=4, setbycreate=true },
{ attname="Unnumbered", length=1, setbycreate=true },
{ attname="Administrative state", length=1, setbycreate=true },
{ attname="Port state", length=1, setbycreate=false },
{ attname="Allow remote access", length=1, setbycreate=true },
{ attname="Router id pointer", length=2, setbycreate=true },
{ attname="ARP pointer", length=2, setbycreate=true },
{ attname="Encapsulation method", length=1, setbycreate=true }},
[79] = { me_class_name = "MAC bridge port filter preassign table",
{ attname="IPv4 multicast filtering", length=1, setbycreate=false },
{ attname="IPv6 multicast filtering", length=1, setbycreate=false },
{ attname="IPv4 broadcast filtering", length=1, setbycreate=false },
{ attname="RARP filtering", length=1, setbycreate=false },
{ attname="IPX filtering", length=1, setbycreate=false },
{ attname="NetBEUI filtering", length=1, setbycreate=false },
{ attname="AppleTalk filtering", length=1, setbycreate=false },
{ attname="Bridge management information filtering", length=1, setbycreate=false },
{ attname="ARP filtering", length=1, setbycreate=false }},
[82] = { me_class_name = "PPTP Video UNI",
{ attname="Administrative State", length=1, setbycreate=false },
{ attname="Operational State", length=1, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC Interval", length=1, setbycreate=false },
{ attname="Power Control", length=1, setbycreate=false }},
[84] = { me_class_name = "VLAN tagging filter data",
{ attname="VLAN filter list", length=24, setbycreate=true },
{ attname="Forward operation", length=1, setbycreate=true },
{ attname="Number of entries", length=1, setbycreate=true }},
[89] = { me_class_name = "Ethernet PM History Data 2",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="PPPoE filtered frame counter", length=4, setbycreate=false }},
[90] = { me_class_name = "PPTP Video ANI",
{ attname="Administrative State", length=1, setbycreate=false },
{ attname="Operational State", length=1, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC Interval", length=1, setbycreate=false },
{ attname="Frequency Range Low", length=1, setbycreate=false },
{ attname="Frequency Range High", length=1, setbycreate=false },
{ attname="Signal Capability", length=1, setbycreate=false },
{ attname="Optical Signal Level", length=1, setbycreate=false },
{ attname="Pilot Signal Level", length=1, setbycreate=false },
{ attname="Signal Level min", length=1, setbycreate=false },
{ attname="Signal Level max", length=1, setbycreate=false },
{ attname="Pilot Frequency", length=4, setbycreate=false },
{ attname="AGC Mode", length=1, setbycreate=false },
{ attname="AGC Setting", length=1, setbycreate=false },
{ attname="Video Lower Optical Threshold", length=1, setbycreate=false },
{ attname="Video Upper Optical Threshold", length=1, setbycreate=false }},
[91] = { me_class_name = "PPTP IEEE 802.11 UNI",
{ attname="Administrative State", length=1, setbycreate=false },
{ attname="Operational State", length=1, setbycreate=false },
{ attname="Data Rate TX", length=8, setbycreate=false },
{ attname="Data Rate RX", length=8, setbycreate=false },
{ attname="TX Pwr Level", length=16, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC Intvl", length=1, setbycreate=false }},
[130] = { me_class_name = "802.1P Mapper Service Profile",
{ attname="TP Pointer", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 0", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 1", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 2", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 3", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 4", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 5", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 6", length=2, setbycreate=true },
{ attname="Interwork TP pointer for P-bit priority 7", length=2, setbycreate=true },
{ attname="Unmarked frame option", length=1, setbycreate=true },
{ attname="DSCP to P-bit mapping", length=24, setbycreate=false },
{ attname="Default P-bit marking", length=1, setbycreate=true },
{ attname="TP Type", length=1, setbycreate=true }},
[131] = { me_class_name = "OLT-G",
{ attname="OLT vendor ID", length=4, setbycreate=false },
{ attname="Equipment ID", length=20, setbycreate=false },
{ attname="Version", length=14, setbycreate=false },
{ attname="Time of day information", length=14, setbycreate=false }},
[132] = { me_class_name = "**TBD** Multicast interworking VCC termination point" },
[133] = { me_class_name = "ONT Power Shedding",
{ attname="Restore power timer reset interval", length=2, setbycreate=false },
{ attname="Data class shedding interval", length=2, setbycreate=false },
{ attname="Voice class shedding interval", length=2, setbycreate=false },
{ attname="Video overlay class shedding interval", length=2, setbycreate=false },
{ attname="Video return class shedding interval", length=2, setbycreate=false },
{ attname="DSL class shedding interval", length=2, setbycreate=false },
{ attname="ATM class shedding interval", length=2, setbycreate=false },
{ attname="CES class shedding interval", length=2, setbycreate=false },
{ attname="Frame class shedding interval", length=2, setbycreate=false },
{ attname="SONET class shedding interval", length=2, setbycreate=false },
{ attname="Shedding status", length=2, setbycreate=false }},
[134] = { me_class_name = "IP Host config data",
{ attname="IP Options", length=1, setbycreate=false },
{ attname="MAC Address", length=6, setbycreate=false },
{ attname="ONU Identifier", length=1, setbycreate=false },
{ attname="IP Address", length=4, setbycreate=false },
{ attname="Mask", length=4, setbycreate=false },
{ attname="Gateway", length=4, setbycreate=false },
{ attname="Primary DNS", length=4, setbycreate=false },
{ attname="Secondary DNS", length=4, setbycreate=false },
{ attname="Current Address", length=4, setbycreate=false },
{ attname="Current Mask", length=4, setbycreate=false },
{ attname="Current Gateway", length=4, setbycreate=false },
{ attname="Current Primary DNS", length=4, setbycreate=false },
{ attname="Current Secondary DNS", length=4, setbycreate=false },
{ attname="Domain Name", length=12, setbycreate=false },
{ attname="Host Name", length=12, setbycreate=false },
{ attname="Relay Agent Options", length=2, setbycreate=false }},
[137] = { me_class_name = "Network address",
{ attname="Security pointer", length=2, setbycreate=true },
{ attname="Address pointer", length=2, setbycreate=true }},
[138] = { me_class_name = "VoIP config data",
{ attname="Available Signalling Protocols", length=1, setbycreate=false },
{ attname="Signalling Protocol Used", length=1, setbycreate=false },
{ attname="Available VoIP Configuration Methods", length=4, setbycreate=false },
{ attname="VoIP Configuration Method Used", length=1, setbycreate=false },
{ attname="VoIP Configuration Address Pointer", length=2, setbycreate=false },
{ attname="VoIP Configuration State", length=1, setbycreate=false },
{ attname="Retrieve Profile", length=1, setbycreate=false },
{ attname="Profile Version", length=10, setbycreate=false }},
[141] = { me_class_name = "VoIP line status",
{ attname="VoIP Codec Used", length=2, setbycreate=false },
{ attname="VoIP Voice Server Status", length=1, setbycreate=false },
{ attname="VoIP Port Session Type", length=1, setbycreate=false },
{ attname="VoIP Call 1 Packet Period", length=2, setbycreate=false },
{ attname="VoIP Call 2 Packet Period", length=2, setbycreate=false },
{ attname="VoIP Call 1 Dest Addr", length=10, setbycreate=false },
{ attname="VoIP Call 2 Dest Addr", length=10, setbycreate=false },
{ attname="VoIP Line State", length=1, setbycreate=false },
{ attname="Emergency Call Status", length=1, setbycreate=false }},
[158] = { me_class_name = "ONT remote debug",
{ attname="Command format", length=1, setbycreate=false },
{ attname="Command", length=25, setbycreate=false },
{ attname="Reply table", length=4, setbycreate=false }},
[159] = { me_class_name = "Equipment protection profile",
{ attname="Protect slot 1,protect slot 2", length=2, setbycreate=true },
{ attname="working slot 1...8", length=8, setbycreate=true },
{ attname="Protect status 1,protect status 2", length=2, setbycreate=false },
{ attname="Revertive ind", length=1, setbycreate=true },
{ attname="Wait to restore time", length=1, setbycreate=true }},
[160] = { me_class_name = "Equipment extension package",
{ attname="Environmental sense", length=2, setbycreate=false },
{ attname="Contact closure output", length=2, setbycreate=false }},
[171] = { me_class_name = "Extended VLAN tagging operation configuration data",
{ attname="Association type", length=1, setbycreate=true },
{ attname="Received frame VLAN tagging operation table max size", length=2, setbycreate=false },
{ attname="Input TPID", length=2, setbycreate=false },
{ attname="Output TPID", length=2, setbycreate=false },
{ attname="Downstream mode", length=1, setbycreate=false },
{ attname="Received frame VLAN tagging operation table", length=16, setbycreate=false },
{ attname="Associated ME pointer", length=2, setbycreate=true },
{ attname="DSCP to P-bit mapping", length=24, setbycreate=false }},
[240] = { me_class_name = "ONT System MGMT" },
[253] = { me_class_name = "Loop detect",
{ attname="Admin State", length=1, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC Interval", length=1, setbycreate=false },
{ attname="Eth Loop Detect Cfg", length=1, setbycreate=false }},
[256] = { me_class_name = "ONT-G",
{ attname="Vendor Id", length=4, setbycreate=false },
{ attname="Version", length=14, setbycreate=false },
{ attname="Serial Nr", length=8, setbycreate=false },
{ attname="Traffic management option", length=1, setbycreate=false },
{ attname="VP/VC cross connection function option", length=1, setbycreate=false },
{ attname="Battery backup", length=1, setbycreate=false },
{ attname="Administrative State", length=1, setbycreate=false },
{ attname="Operational State", length=1, setbycreate=false }},
[257] = { me_class_name = "ONT2-G",
{ attname="Equipment id", length=20, setbycreate=false },
{ attname="OMCC version", length=1, setbycreate=false },
{ attname="Vendor product code", length=2, setbycreate=false },
{ attname="Security capability", length=1, setbycreate=false },
{ attname="Security mode", length=1, setbycreate=false },
{ attname="Total priority queue number", length=2, setbycreate=false },
{ attname="Total traffic scheduler number", length=1, setbycreate=false },
{ attname="Mode", length=1, setbycreate=false },
{ attname="Total GEM port-ID number", length=2, setbycreate=false },
{ attname="SysUp Time", length=4, setbycreate=false }},
[262] = { me_class_name = "T-CONT",
{ attname="Alloc-id", length=2, setbycreate=false },
{ attname="Mode indicator", length=1, setbycreate=false },
{ attname="Policy", length=1, setbycreate=false }},
[263] = { me_class_name = "ANI-G",
{ attname="SR indication", length=1, setbycreate=false },
{ attname="Total T-CONT number", length=2, setbycreate=false },
{ attname="GEM block length", length=2, setbycreate=false },
{ attname="Piggyback DBA reporting", length=1, setbycreate=false },
{ attname="Whole ONT DBA reporting", length=1, setbycreate=false },
{ attname="SF threshold", length=1, setbycreate=false },
{ attname="SD threshold", length=1, setbycreate=false },
{ attname="ARC", length=1, setbycreate=false },
{ attname="ARC interval", length=1, setbycreate=false },
{ attname="Optical signal level", length=2, setbycreate=false },
{ attname="Lower optical threshold", length=1, setbycreate=false },
{ attname="Upper optical threshold", length=1, setbycreate=false },
{ attname="ONT response time", length=2, setbycreate=false },
{ attname="Transmit optical level", length=2, setbycreate=false },
{ attname="Lower transmit power threshold", length=1, setbycreate=false },
{ attname="Upper transmit power threshold", length=1, setbycreate=false }},
[264] = { me_class_name = "UNI-G",
{ attname="Config option status", length=2, setbycreate=false },
{ attname="Administrative state", length=1, setbycreate=false }},
[266] = { me_class_name = "GEM interworking Termination Point",
{ attname="GEM port network CTP connectivity pointer", length=2, setbycreate=true },
{ attname="Interworking option", length=1, setbycreate=true },
{ attname="Service profile pointer", length=2, setbycreate=true },
{ attname="Interworking termination point pointer", length=2, setbycreate=true },
{ attname="PPTP counter", length=1, setbycreate=false },
{ attname="Operational state", length=1, setbycreate=false },
{ attname="GAL profile pointer", length=2, setbycreate=true },
{ attname="GAL loopback configuration", length=1, setbycreate=false }},
[267] = { me_class_name = "GEM Port PM History Data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="Lost packets", length=4, setbycreate=false },
{ attname="Misinserted packets", length=4, setbycreate=false },
{ attname="Received packets", length=5, setbycreate=false },
{ attname="Received blocks", length=5, setbycreate=false },
{ attname="Transmitted blocks", length=5, setbycreate=false },
{ attname="Impaired blocks", length=4, setbycreate=false }},
[268] = { me_class_name = "GEM Port Network CTP",
{ attname="Port id value", length=2, setbycreate=true },
{ attname="T-CONT pointer", length=2, setbycreate=true },
{ attname="Direction", length=1, setbycreate=true },
{ attname="Traffic management pointer for upstream", length=2, setbycreate=true },
{ attname="Traffic descriptor profile pointer", length=2, setbycreate=true },
{ attname="UNI counter", length=1, setbycreate=false },
{ attname="Priority queue pointer for downstream", length=2, setbycreate=true },
{ attname="Encryption state", length=1, setbycreate=false }},
[271] = { me_class_name = "GAL TDM profile",
{ attname="GEM frame loss integration period", length=2, setbycreate=true }},
[272] = { me_class_name = "GAL Ethernet profile",
{ attname="Maximum GEM payload size", length=2, setbycreate=true }},
[273] = { me_class_name = "Threshold Data 1",
{ attname="Threshold value 1", length=4, setbycreate=true },
{ attname="Threshold value 2", length=4, setbycreate=true },
{ attname="Threshold value 3", length=4, setbycreate=true },
{ attname="Threshold value 4", length=4, setbycreate=true },
{ attname="Threshold value 5", length=4, setbycreate=true },
{ attname="Threshold value 6", length=4, setbycreate=true },
{ attname="Threshold value 7", length=4, setbycreate=true }},
[274] = { me_class_name = "Threshold Data 2",
{ attname="Threshold value 8", length=4, setbycreate=true },
{ attname="Threshold value 9", length=4, setbycreate=true },
{ attname="Threshold value 10", length=4, setbycreate=true },
{ attname="Threshold value 11", length=4, setbycreate=true },
{ attname="Threshold value 12", length=4, setbycreate=true },
{ attname="Threshold value 13", length=4, setbycreate=true },
{ attname="Threshold value 14", length=4, setbycreate=true }},
[275] = { me_class_name = "GAL TDM PM History Data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="GEM frame loss", length=4, setbycreate=false },
{ attname="Buffer underflows", length=4, setbycreate=false },
{ attname="Buffer overflows", length=4, setbycreate=false }},
[276] = { me_class_name = "GAL Ethernet PM History Data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="Discarded frames", length=4, setbycreate=false }},
[277] = { me_class_name = "Priority queue-G",
{ attname="Queue Configuration Option", length=1, setbycreate=false },
{ attname="Maximum Queue Size", length=2, setbycreate=false },
{ attname="Allocated Queue Size", length=2, setbycreate=false },
{ attname="Discard-block Counter Reset Interval", length=2, setbycreate=false },
{ attname="Threshold Value For Discarded Blocks Due To Buffer Overflow", length=2, setbycreate=false },
{ attname="Related Port", length=4, setbycreate=false },
{ attname="Traffic Scheduler-G Pointer", length=2, setbycreate=false },
{ attname="Weight", length=1, setbycreate=false },
{ attname="Back Pressure Operation", length=2, setbycreate=false },
{ attname="Back Pressure Time", length=4, setbycreate=false },
{ attname="Back Pressure Occur Queue Threshold", length=2, setbycreate=false },
{ attname="Back Pressure Clear Queue Threshold", length=2, setbycreate=false }},
[278] = { me_class_name = "Traffic Scheduler-G",
{ attname="TCONT pointer", length=2, setbycreate=false },
{ attname="traffic shed pointer", length=2, setbycreate=false },
{ attname="policy", length=1, setbycreate=false },
{ attname="priority/weight", length=1, setbycreate=false }},
[279] = { me_class_name = "Protection data",
{ attname="Working ANI-G pointer", length=2, setbycreate=false },
{ attname="Protection ANI-G pointer", length=2, setbycreate=false },
{ attname="Protection type", length=2, setbycreate=false },
{ attname="Revertive ind", length=1, setbycreate=false },
{ attname="Wait to restore time", length=1, setbycreate=false },
{ attname="Switching guard time", length=2, setbycreate=false }},
[280] = { me_class_name = "Traffic descriptor",
{ attname="CIR", length=4, setbycreate=false },
{ attname="PIR", length=4, setbycreate=false },
{ attname="CBS", length=4, setbycreate=false },
{ attname="PBS", length=4, setbycreate=false },
{ attname="Colour Mode", length=1, setbycreate=false },
{ attname="Ingress Colour Marking", length=1, setbycreate=false },
{ attname="Egress Colour Marking", length=1, setbycreate=false },
{ attname="Meter Type", length=1, setbycreate=false }},
[281] = { me_class_name = "Multicast GEM interworking termination point",
{ attname="GEM port network CTP connectivity pointer", length=2, setbycreate=true },
{ attname="Interworking option", length=1, setbycreate=true },
{ attname="Service profile pointer", length=2, setbycreate=true },
{ attname="Interworking termination point pointer", length=2, setbycreate=true },
{ attname="PPTP counter", length=1, setbycreate=false },
{ attname="Operational state", length=1, setbycreate=false },
{ attname="GAL profile pointer", length=2, setbycreate=true },
{ attname="GAL loopback configuration", length=1, setbycreate=true },
{ attname="Multicast address table", length=12, setbycreate=false }},
[287] = { me_class_name = "OMCI",
{ attname="ME Type Table", length=2, setbycreate=false },
{ attname="Message Type Table", length=2, setbycreate=false }},
[290] = { me_class_name = "Dot1X Port Extension Package",
{ attname="Dot1x Enable", length=1, setbycreate=false },
{ attname="Action Register", length=1, setbycreate=false },
{ attname="Authenticator PAE State", length=1, setbycreate=false },
{ attname="Backend Authentication State", length=1, setbycreate=false },
{ attname="Admin Controlled Directions", length=1, setbycreate=false },
{ attname="Operational Controlled Directions", length=1, setbycreate=false },
{ attname="Authenticator Controlled Port Status", length=1, setbycreate=false },
{ attname="Quiet Period", length=2, setbycreate=false },
{ attname="Server Timeout Period", length=2, setbycreate=false },
{ attname="Reauthentication Period", length=2, setbycreate=false },
{ attname="Reauthentication Enabled", length=1, setbycreate=false },
{ attname="Key transmission Enabled", length=1, setbycreate=false }},
[296] = { me_class_name = "Ethernet PM History Data 3",
{ attname="Interval End Time", length=1, setbycreate=false },
{ attname="Threshold Data 1/2 Id", length=2, setbycreate=true },
{ attname="Drop events", length=4, setbycreate=false },
{ attname="Octets", length=4, setbycreate=false },
{ attname="Packets", length=4, setbycreate=false },
{ attname="Broadcast Packets", length=4, setbycreate=false },
{ attname="Multicast Packets", length=4, setbycreate=false },
{ attname="Undersize Packets", length=4, setbycreate=false },
{ attname="Fragments", length=4, setbycreate=false },
{ attname="Jabbers", length=4, setbycreate=false },
{ attname="Packets 64 Octets", length=4, setbycreate=false },
{ attname="Packets 65 to 127 Octets", length=4, setbycreate=false },
{ attname="Packets 128 to 255 Octets", length=4, setbycreate=false },
{ attname="Packets 256 to 511 Octets", length=4, setbycreate=false },
{ attname="Packets 512 to 1023 Octets", length=4, setbycreate=false },
{ attname="Packets 1024 to 1518 Octets", length=4, setbycreate=false }},
[297] = { me_class_name = "Port mapping package-G",
{ attname="Max ports", length=1, setbycreate=false },
{ attname="Port list 1", length=16, setbycreate=false },
{ attname="Port list 2", length=16, setbycreate=false },
{ attname="Port list 3", length=16, setbycreate=false },
{ attname="Port list 4", length=16, setbycreate=false },
{ attname="Port list 5", length=16, setbycreate=false },
{ attname="Port list 6", length=16, setbycreate=false },
{ attname="Port list 7", length=16, setbycreate=false },
{ attname="Port list 8", length=16, setbycreate=false }},
[309] = { me_class_name = "Multicast operations profile",
{ attname="IGMP version", length=1, setbycreate=true },
{ attname="IGMP function", length=1, setbycreate=true },
{ attname="Immediate leave", length=1, setbycreate=true },
{ attname="Upstream IGMP TCI", length=2, setbycreate=true },
{ attname="Upstream IGMP tag control", length=1, setbycreate=true },
{ attname="Upstream IGMP rate", length=4, setbycreate=true },
{ attname="Dynamic access control list table", length=24, setbycreate=false },
{ attname="Static access control list table", length=24, setbycreate=false },
{ attname="Lost groups list table", length=10, setbycreate=false },
{ attname="Robustness", length=1, setbycreate=true },
{ attname="Querier IP address", length=4, setbycreate=true },
{ attname="Query interval", length=4, setbycreate=true },
{ attname="Query max response time", length=4, setbycreate=true },
{ attname="Last member query interval", length=4, setbycreate=false }},
[310] = { me_class_name = "Multicast subscriber config info",
{ attname="ME type", length=1, setbycreate=true },
{ attname="Multicast operations profile pointer", length=2, setbycreate=true },
{ attname="Max simultaneous groups", length=2, setbycreate=true },
{ attname="Max multicast bandwidth", length=4, setbycreate=true },
{ attname="Bandwidth enforcement", length=1, setbycreate=true }},
[311] = { me_class_name = "Multicast Subscriber Monitor",
{ attname="ME type", length=1, setbycreate=true },
{ attname="Current multicast bandwidth", length=4, setbycreate=false },
{ attname="Max Join messages counter", length=4, setbycreate=false },
{ attname="Bandwidth exceeded counter:", length=4, setbycreate=false },
{ attname="Active group list table", length=24, setbycreate=false }},
[312] = { me_class_name = "FEC PM History Data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 id", length=2, setbycreate=true },
{ attname="Corrected bytes", length=4, setbycreate=false },
{ attname="Corrected code words", length=4, setbycreate=false },
{ attname="Uncorrectable code words", length=4, setbycreate=false },
{ attname="Total code words", length=4, setbycreate=false },
{ attname="FEC seconds", length=2, setbycreate=false }},
[321] = { me_class_name = "Ethernet Frame PM History Data DS",
{ attname="Interval End Time", length=1, setbycreate=false },
{ attname="Threshold Data 1/2 Id", length=2, setbycreate=true },
{ attname="Drop events", length=4, setbycreate=false },
{ attname="Octets", length=4, setbycreate=false },
{ attname="Packets", length=4, setbycreate=false },
{ attname="Broadcast Packets", length=4, setbycreate=false },
{ attname="Multicast Packets", length=4, setbycreate=false },
{ attname="CRC Errored Packets", length=4, setbycreate=false },
{ attname="Undersize Packets", length=4, setbycreate=false },
{ attname="Oversize Packets", length=4, setbycreate=false },
{ attname="Packets 64 Octets", length=4, setbycreate=false },
{ attname="Packets 65 to 127 Octets", length=4, setbycreate=false },
{ attname="Packets 128 to 255 Octets", length=4, setbycreate=false },
{ attname="Packets 256 to 511 Octets", length=4, setbycreate=false },
{ attname="Packets 512 to 1023 Octets", length=4, setbycreate=false },
{ attname="Packets 1024 to 1518 Octets", length=4, setbycreate=false }},
[322] = { me_class_name = "Ethernet Frame PM History Data US",
{ attname="Interval End Time", length=1, setbycreate=false },
{ attname="Threshold Data 1/2 Id", length=2, setbycreate=true },
{ attname="Drop events", length=4, setbycreate=false },
{ attname="Octets", length=4, setbycreate=false },
{ attname="Packets", length=4, setbycreate=false },
{ attname="Broadcast Packets", length=4, setbycreate=false },
{ attname="Multicast Packets", length=4, setbycreate=false },
{ attname="CRC Errored Packets", length=4, setbycreate=false },
{ attname="Undersize Packets", length=4, setbycreate=false },
{ attname="Oversize Packets", length=4, setbycreate=false },
{ attname="Packets 64 Octets", length=4, setbycreate=false },
{ attname="Packets 65 to 127 Octets", length=4, setbycreate=false },
{ attname="Packets 128 to 255 Octets", length=4, setbycreate=false },
{ attname="Packets 256 to 511 Octets", length=4, setbycreate=false },
{ attname="Packets 512 to 1023 Octets", length=4, setbycreate=false },
{ attname="Packets 1024 to 1518 Octets", length=4, setbycreate=false }},
[329] = { me_class_name = "Virtual Ethernet interface point",
{ attname="Administrative state", length=1, setbycreate=false },
{ attname="Operational state", length=1, setbycreate=false },
{ attname="Interdomain name", length=25, setbycreate=false },
{ attname="TCP/UDP pointer", length=2, setbycreate=false },
{ attname="IANA assigned port", length=2, setbycreate=false }},
[332] = { me_class_name = "Enhanced security control",
{ attname="OLT crypto capabilities", length=16, setbycreate=false },
{ attname="OLT random challenge table", length=17, setbycreate=false },
{ attname="OLT challenge status", length=1, setbycreate=false },
{ attname="ONU selected crypto capabilities", length=1, setbycreate=false },
{ attname="ONU random challenge table", length=16, setbycreate=false },
{ attname="ONU authentication result table", length=16, setbycreate=false },
{ attname="ONU random challenge table", length=17, setbycreate=false },
{ attname="OLT result status", length=1, setbycreate=false },
{ attname="ONU authentication status", length=1, setbycreate=false },
{ attname="Master session key name", length=16, setbycreate=false },
{ attname="Broadcast key table", length=18, setbycreate=false },
{ attname="Effective key length", length=2, setbycreate=false }},
[334] = { me_class_name = "Ethernet frame extended PM",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Control Block: Threshold data 1/2 ID", length=2, setbycreate=true },
{ attname="Control Block: Parent ME class", length=2, setbycreate=true },
{ attname="Control Block: Parent ME instance", length=2, setbycreate=true },
{ attname="Control Block: Accumulation disable", length=2, setbycreate=true },
{ attname="Control Block: TCA disable", length=2, setbycreate=true },
{ attname="Control Block: Control fields", length=2, setbycreate=true },
{ attname="Control Block: TCI", length=2, setbycreate=true },
{ attname="Control Block: Reserved", length=2, setbycreate=true },
{ attname="Drop events", length=4, setbycreate=false },
{ attname="Octets", length=4, setbycreate=false },
{ attname="Frames", length=4, setbycreate=false },
{ attname="Broadcast frames", length=4, setbycreate=false },
{ attname="Multicast frames", length=4, setbycreate=false },
{ attname="CRC errored frames", length=4, setbycreate=false },
{ attname="Undersize frames", length=4, setbycreate=false },
{ attname="Oversize frames", length=4, setbycreate=false },
{ attname="Frames 64 octets", length=4, setbycreate=false },
{ attname="Frames 65 to 127 octets", length=4, setbycreate=false },
{ attname="Frames 128 to 255 octets", length=4, setbycreate=false },
{ attname="Frames 256 to 511 octets", length=4, setbycreate=false },
{ attname="Frames 512 to 1 023 octets", length=4, setbycreate=false },
{ attname="Frames 1024 to 1518 octets", length=4, setbycreate=false }},
[340] = { me_class_name = "BBF TR-069 management server",
{ attname="Administrative state", length=1, setbycreate=false },
{ attname="ACS network address", length=2, setbycreate=false },
{ attname="Associated tag", length=2, setbycreate=false }},
[341] = { me_class_name = "GEM port network CTP performance monitoring history data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 ID", length=2, setbycreate=true },
{ attname="Rx frames", length=4, setbycreate=false },
{ attname="Tx frames", length=4, setbycreate=false },
{ attname="Rx bytes", length=4, setbycreate=false },
{ attname="Tx bytes", length=4, setbycreate=false },
{ attname="Tx discarded frames", length=4, setbycreate=false },
{ attname="Tx discarded bytes", length=4, setbycreate=false }},
[345] = { me_class_name = "XG-PON downstream management performance monitoring history data",
{ attname="Interval end time", length=1, setbycreate=false },
{ attname="Threshold data 1/2 ID", length=2, setbycreate=true },
{ attname="PLOAM message integrity check (MIC) error count", length=4, setbycreate=false },
{ attname="Downstream PLOAM messages count", length=4, setbycreate=false },
{ attname="Profile messages received", length=4, setbycreate=false },
{ attname="Ranging_time messages received", length=4, setbycreate=false },
{ attname="Deactivate_ONU-ID messages received", length=4, setbycreate=false },
{ attname="Disable_serial_number messages received", length=4, setbycreate=false },
{ attname="Request_registration messages received", length=4, setbycreate=false },
{ attname="Assign_alloc-ID messages received", length=4, setbycreate=false },
{ attname="Key_control messages received", length=4, setbycreate=false },
{ attname="Sleep_allow messages received", length=4, setbycreate=false },
{ attname="Baseline OMCI messages received count", length=4, setbycreate=false },
{ attname="Extended OMCI messages received count", length=4, setbycreate=false },
{ attname="Assign_ONU-ID messages received", length=4, setbycreate=false },
{ attname="OMCI MIC error count", length=4, setbycreate=false }},
[347] = { me_class_name = "IPv6 host config data",
{ attname="Administrative state", length=1, setbycreate=false },
{ attname="Operational state", length=1, setbycreate=false },
{ attname="Interdomain name", length=4, setbycreate=false },
{ attname="TCP UDP pointer", length=2, setbycreate=false },
{ attname="IANA assigned Port", length=2, setbycreate=false }},
}
setmetatable(omci_def, mt2)
-- GUI field definition
local f = omciproto.fields
f.tci = ProtoField.uint16( "omciproto.tci", "Transaction Correlation ID")
f.msg_type_db = ProtoField.uint8( "omciproto.msg_type_db", "Destination Bit", base.HEX, nil, 0x80)
f.msg_type_ar = ProtoField.uint8( "omciproto.msg_type_ar", "Acknowledge Request", base.HEX, nil, 0x40)
f.msg_type_ak = ProtoField.uint8( "omciproto.msg_type_ak", "Acknowledgement", base.HEX, nil, 0x20)
f.msg_type_mt = ProtoField.uint8( "omciproto.msg_type_mt", "Message Type", base.DEC, msgtype, 0x1F)
f.dev_id = ProtoField.uint8( "omciproto.dev_id", "Device Identifier", base.HEX)
f.me_id = ProtoField.uint16( "omciproto.me_id", "Managed Entity Instance", base.HEX)
f.me_class = ProtoField.uint16( "omciproto.me_class", "Managed Entity Class", base.DEC)
f.me_class_str = ProtoField.string( "omciproto.me_class_str", "Managed Entity Class")
f.attribute_mask = ProtoField.uint16( "omciproto.attribtute_mask", "Attribute Mask", base.HEX, nil, 0xFFFF)
f.attribute = ProtoField.bytes( "omciproto.attribute", "Attribute")
f.content = ProtoField.bytes( "omciproto.content", "Message Content")
f.trailer = ProtoField.bytes( "omciproto.trailer", "Trailer")
f.cpcsuu_cpi = ProtoField.uint16( "omciproto.cpcsuu_cpi", "CPCS-UU and CPI", base.HEX)
f.cpcssdu_length = ProtoField.uint16( "omciproto.cpcssdu_length", "CPCS-SDU Length", base.HEX)
f.crc32 = ProtoField.uint32( "omciproto.crc32", "CRC32", base.HEX)
-- The dissector function
function omciproto.dissector (buffer, pinfo, tree)
if buffer:len() == 0 then return end -- validate packet length is adequate, otherwise quit
-- Show name of the protocol, create Tree item for displaying info
pinfo.cols.protocol = omciproto.name
local subtree = tree:add(omciproto, buffer())
-- Start analysing data
local offset = 0
-- OMCI Transaction Correlation Identifier
local tci = buffer(offset, 2)
subtree:add(f.tci, tci)
offset = offset + 2
-- OMCI Message Type
local msg_type = buffer(offset, 1)
local msg_type_mt = msgtype[msg_type:bitfield(3,5)]
local msg_type_ar = msg_type:bitfield(1,1)
local msg_type_ak = msg_type:bitfield(2,1)
local msgtype_subtree = subtree:add(msg_type, "Message Type = " .. msg_type_mt)
msgtype_subtree:add(f.msg_type_db, msg_type)
msgtype_subtree:add(f.msg_type_ar, msg_type)
msgtype_subtree:add(f.msg_type_ak, msg_type)
msgtype_subtree:add(f.msg_type_mt, msg_type)
offset = offset + 1
-- OMCI Device ID
local dev_id = buffer(offset, 1)
subtree:add(f.dev_id, dev_id)
offset = offset + 1
-- OMCI Message Entity Class & Instance
local me_class = buffer(offset, 2)
local me_instance = buffer(offset + 2, 2)
local me_class_name = omci_def[me_class:uint()].me_class_name
local devid_subtree = subtree:add(buffer(offset, 4), "Message Identifier, ME Class = " .. me_class_name .. ", Instance = " .. me_instance:uint())
-- devid_subtree:add(f.me_class, me_class)
devid_subtree:add(f.me_class_str, me_class_name .. " (" .. me_class .. ")")
devid_subtree:add(f.me_id, me_instance)
offset = offset + 4
-- OMCI Attributes and/or message result
local content = buffer(offset, math.min(32, buffer:len() - offset))
if( (msg_type_mt == "Get" or msg_type_mt == "Get Current Data" or msg_type_mt == "Get Next") and msg_type_ar == 1 and msg_type_ak == 0) then
local attribute_mask = content(0, 2)
local attributemask_subtree = subtree:add(attribute_mask, "Attribute Mask (0x" .. attribute_mask .. ")" )
attributemask_subtree:add(attribute_mask, toBinStr(tostring(attribute_mask)))
local content_subtree = subtree:add(content, "Attribute List")
attributes = omci_def[me_class:uint()]
for i = 1,#attributes do
local attr = attributes[i]
if attribute_mask:bitfield(i-1,1) == 1 then
content_subtree:add(string.format("%2.2d", i) .. ": " .. attr.attname)
end
end
end
if( (msg_type_mt == "Get" or msg_type_mt == "Get Current Data" or msg_type_mt == "Get Next") and msg_type_ar == 0 and msg_type_ak == 1) then
subtree:add(content(0,1), "Result: " .. msg_result[content(0,1):uint()] .. " (" .. content(0,1) .. ")")
local attribute_mask = content(1, 2)
local attributemask_subtree = subtree:add(attribute_mask, "Attribute Mask (0x" .. attribute_mask .. ")" )
attributemask_subtree:add(attribute_mask, toBinStr(tostring(attribute_mask)))
local content_subtree = subtree:add(content, "Attribute List")
local attributes = {}
local attribute_offset = 0
attributes = omci_def[me_class:uint()]
attribute_offset=3
for i = 1,#attributes do
local attr = attributes[i]
if attribute_mask:bitfield(i-1,1) == 1 then
local attr_bytes = content(attribute_offset, attr.length)
content_subtree:add(attr_bytes, string.format("%2.2d", i) .. ": " .. attr.attname .. " (" .. attr_bytes .. ")")
attribute_offset = attribute_offset + attr.length
end
end
end
if( msg_type_mt == "Set" and msg_type_ar == 1 and msg_type_ak == 0) then
local attribute_mask = content(0, 2)
local attributemask_subtree = subtree:add(attribute_mask, "Attribute Mask (0x" .. attribute_mask .. ")" )
attributemask_subtree:add(attribute_mask, toBinStr(tostring(attribute_mask)))
local content_subtree = subtree:add(content, "Attribute List")
local attributes = {}
local attribute_offset = 0
attributes = omci_def[me_class:uint()]
attribute_offset=2
for i = 1,#attributes do
local attr = attributes[i]
if attribute_mask:bitfield(i-1,1) == 1 then
local attr_bytes = content(attribute_offset, attr.length)
content_subtree:add(attr_bytes, string.format("%2.2d", i) .. ": " .. attr.attname .. " (" .. attr_bytes .. ")")
attribute_offset = attribute_offset + attr.length
end
end
end
if((msg_type_mt == "Set" or
msg_type_mt == "Create" or
msg_type_mt == "MIB Reset" or
msg_type_mt == "Test" ) and msg_type_ar == 0 and msg_type_ak == 1) then
subtree:add(content(0,1), "Result: " .. msg_result[content(0,1):uint()] .. " (" .. content(0,1) .. ")")
end
if( msg_type_mt == "Create" and msg_type_ar == 1 and msg_type_ak == 0) then
local content_subtree = subtree:add(content, "Attribute List")
local attributes = {}
local attribute_offset = 0
attributes = omci_def[me_class:uint()]