44
55
66class TWAMPTPacketSender (Packet ):
7- name = "TWAMPPacketSender"
8- fields_desc = [IntField ("SequenceNumber" ,0 ),
9- BitField ("FirstPartTimestamp" ,0 , 32 ),
10- BitField ("SecondPartTimestamp" ,0 , 32 ),
11- BitEnumField ("S" , 0 , 1 , {0 : " no external synchronization" ,
12- 1 : "external synchronization" }),
13- BitField ("Z" ,0 , 1 ),
14- BitField ("Scale" ,0 , 6 ),
15- BitField ("Multiplier" ,1 , 8 )] # manca il padding
7+ name = "TWAMPPacketSender"
8+ fields_desc = [IntField ("SequenceNumber" , 0 ),
9+ BitField ("FirstPartTimestamp" , 0 , 32 ),
10+ BitField ("SecondPartTimestamp" , 0 , 32 ),
11+ BitEnumField ("S" , 0 , 1 , {0 : " no external synchronization" ,
12+ 1 : "external synchronization" }),
13+ BitField ("Z" , 0 , 1 ),
14+ BitField ("Scale" , 0 , 6 ),
15+ BitField ("Multiplier" , 1 , 8 )] # manca il padding
1616
1717
1818class TWAMPTPacketReflector (Packet ):
19- name = "TWAMPPacketReflector"
20- fields_desc = [IntField ("SequenceNumber" ,0 ),
21- BitField ("FirstPartTimestamp" ,0 , 32 ),
22- BitField ("SecondPartTimestamp" ,0 , 32 ),
23- BitEnumField ("S" , 0 , 1 , {0 : " no external synchronization" ,
24- 1 : "external synchronization" }),
25- BitField ("Z" ,0 , 1 ),
26- BitField ("Scale" ,0 , 6 ),
27- BitField ("Multiplier" ,1 , 8 ),
28- BitField ("MBZ" ,0 , 16 ),
29- BitField ("FirstPartTimestampReceiver" ,0 , 32 ),
30- BitField ("SecondPartTimestampReceiver" ,0 , 32 ),
31- IntField ("SequenceNumberSender" ,0 ),
32- BitField ("FirstPartTimestampSender" ,0 , 32 ),
33- BitField ("SecondPartTimestampSender" ,0 , 32 ),
34- BitEnumField ("SSender" , 0 , 1 , {0 : " no external synchronization" ,
35- 1 : "external synchronization" }),
36- BitField ("ZSender " ,0 , 1 ),
37- BitField ("ScaleSender" ,0 , 6 ),
38- BitField ("MultiplierSender" ,1 , 8 ),
39- BitField ("MBZ" ,0 , 16 ),
40- ByteField ("SenderTTL" ,255 )] # manca il padding
19+ name = "TWAMPPacketReflector"
20+ fields_desc = [IntField ("SequenceNumber" , 0 ),
21+ BitField ("FirstPartTimestamp" , 0 , 32 ),
22+ BitField ("SecondPartTimestamp" , 0 , 32 ),
23+ BitEnumField ("S" , 0 , 1 , {0 : " no external synchronization" ,
24+ 1 : "external synchronization" }),
25+ BitField ("Z" , 0 , 1 ),
26+ BitField ("Scale" , 0 , 6 ),
27+ BitField ("Multiplier" , 1 , 8 ),
28+ BitField ("MBZ" , 0 , 16 ),
29+ BitField ("FirstPartTimestampReceiver" , 0 , 32 ),
30+ BitField ("SecondPartTimestampReceiver" , 0 , 32 ),
31+ IntField ("SequenceNumberSender" , 0 ),
32+ BitField ("FirstPartTimestampSender" , 0 , 32 ),
33+ BitField ("SecondPartTimestampSender" , 0 , 32 ),
34+ BitEnumField ("SSender" , 0 , 1 , {0 : " no external synchronization" ,
35+ 1 : "external synchronization" }),
36+ BitField ("ZSender " , 0 , 1 ),
37+ BitField ("ScaleSender" , 0 , 6 ),
38+ BitField ("MultiplierSender" , 1 , 8 ),
39+ BitField ("MBZ" , 0 , 16 ),
40+ ByteField ("SenderTTL" , 255 )] # manca il padding
0 commit comments