4.3 COMM_PACKET

This is an example to show COMM_PACKET structure:

+0x000 Major : 0

+0x004 Minor : 8

+0x008 CsId : 1

+0x00c MemLen : 0x200

+0x010 PktLen : 0x184

+0x014 UpkLen : 0

+0x018 Pkt : 0x001a2df0

+0x01c DataName : null

+0x020 DataHandle : null

The bytes CommPkt->Pkt points to are:

 01 00 04 00 00 00 00 00 00 00 02 00 04 00 00 00 22 01
 00 00 03 00 32 00 00 00 10 00 00 00 0c 3e 3b 8c 27 64 
 f6 40 8f fd a4 5a 89 cf 5d 12 1a 00 00 00 43 00 46 00 
 53 00 2d 00 33 00 31 00 58 00 2d 00 32 00 41 00 30 00 
 32 00 00 00 04 00 32 00 00 00 10 00 00 00 e7 91 90 20 
 91 bd 34 45 bf e1 02 02 8f 21 4c eb 1a 00 00 00 43 00 
 46 00 53 00 2d 00 33 00 31 00 58 00 2d 00 32 00 41 00 
 30 00 31 00 00 00 05 00 60 00 00 00 10 00 00 00 0c 3e 
 3b 8c 27 64 f6 40 8f fd a4 5a 89 cf 5d 12 48 00 00 00 
 44 00 4f 00 4d 00 41 00 49 00 4e 00 20 00 53 00 59 00 
 53 00 54 00 45 00 4d 00 20 00 56 00 4f 00 4c 00 55 00 
 4d 00 45 00 20 00 28 00 53 00 59 00 53 00 56 00 4f 00 
 4c 00 20 00 53 00 48 00 41 00 52 00 45 00 29 00 00 00 
 08 00 62 00 00 00 10 00 00 00 fd f7 aa 2c 59 be d9 48 
 87 cf 5b e1 a9 23 16 ca 4a 00 00 00 38 00 30 00 38 00 
 42 00 39 00 38 00 46 00 45 00 2d 00 45 00 38 00 36 00 
 37 00 2d 00 34 00 46 00 33 00 36 00 2d 00 42 00 34 00 
 39 00 44 00 2d 00 44 00 44 00 36 00 36 00 36 00 39 00 
 38 00 36 00 36 00 42 00 44 00 33 00 00 00 06 00 14 00 
 00 00 10 00 00 00 9b 2d 92 76 3d 3f 2a 62 8a 20 b2 da 
 fe 56 80 ef 12 00 08 00 00 00 9c 43 1d 03 ef 84 c6 01 
 13 00 04 00 00 00 ff ff ff ff

In CommPkt->Pkt (see section 2.2.3.5), COMM_COMMAND (see section 2.2.3.6.2) is:

  
 02 00 04 00 00 00 22 01 00 00 

This indicates a CMD_START_JOIN (0x0122) packet.

CMD_START_JOIN command is composed of the following sequence:

COMM_BOP

COMM_COMMAND

COMM_TO

COMM_FROM

COMM_REPLICA

COMM_CXTION

COMM_JOIN_GUID

COMM_LAST_JOIN_TIME

COMM_EOP

To interpret CommPkt->Pkt:

COMM_BOP:

  
 00 1a 2d f0 01 00 04 00 00 00 00 00 00 00 

Every packet starts with this.

COMM_COMMAND:

  
 02 00 04 00 00 00 22 01 00 00 

This is CMD_START_JOIN command - 0x0122.

COMM_TO:

  
 03 00 32 00 00 00 10 00 00 00 0c 3e 3b 8c 27 64 f6 40 
 8f fd a4 5a 89 cf 5d 12 1a 00 00 00 43 00 46 00 53 00 
 2d 00 33 00 31 00 58 00 2d 00 32 00 41 00 30 00 32 00 
 00 00 

GUID: 8c3b3e0c-6427-40f6-8ffda45a89cf5d12; name: CFS-31X-2a02

COMM_FROM:

  
 04 00 32 00 00 00 10 00 00 00 e7 91 90 20 91 bd 34 45 
 bf e1 02 02 8f 21 4c eb 1a 00 00 00 43 00 46 00 53 00 
 2d 00 33 00 31 00 58 00 2d 00 32 00 41 00 30 00 31 00 
 00 00 

GUID: 209091e7-bd91-4534-bfe102028f214ceb; name: CFS-31X-2a01

COMM_REPLICA:

  
 05 00 60 00 00 00 10 00 00 00 0c 3e 3b 8c 27 64 f6 40 
 8f fd a4 5a 89 cf 5d 12 48 00 00 00 44 00 4f 00 4d 00 
 41 00 49 00 4e 00 20 00 53 00 59 00 53 00 54 00 45 00 
 4d 00 20 00 56 00 4f 00 4c 00 55 00 4d 00 45 00 20 00 
 28 00 53 00 59 00 53 00 56 00 4f 00 4c 00 20 00 53 00 
 48 00 41 00 52 00 45 00 29 00 00 00 

GUID: 8c3b3e0c-6427-40f6-8ffda45a89cf5d12; name: DOMAIN SYSTEM VOLUME (SYSVOL SHARE)

COMM_CXTION:

  
 08 00 62 00 00 00 10 00 00 00 fd f7 aa 2c 59 be d9 48  ..b..........,Y..H
 87 cf 5b e1 a9 23 16 ca 4a 00 00 00 38 00 30 00 38 00  ..[..#..J...8.0.8.
 42 00 39 00 38 00 46 00 45 00 2d 00 45 00 38 00 36 00  B.9.8.F.E.-.E.8.6.
 37 00 2d 00 34 00 46 00 33 00 36 00 2d 00 42 00 34 00  7.-.4.F.3.6.-.B.4.
 39 00 44 00 2d 00 44 00 44 00 36 00 36 00 36 00 39 00  9.D.-.D.D.6.6.6.9.
 38 00 36 00 36 00 42 00 44 00 33 00 00 00 

GUID: 2caaf7fd-be59-48d9-87cf5be1a92316ca; name: 808B98FE-E867-4F36-B49D-DD6669866BD3

COMM_JOIN_GUID:

  
 06 00 14 00 00 00 10 00 00 00 9b 2d 92 76 3d 3f 2a 62 
 8a 20 b2 da fe 56 80 ef 

GUID: 9b 2d 92 76 3d 3f 2a 62 8a 20 b2 da fe 56 80 ef

COMM_LAST_JOIN_TIME:

  
 12 00 08 00 00 00 9c 43 1d 03 ef 84 c6 01

LastJoinTime: 9c431d03ef84c601.

COMM_EOP:

  
 13 00 04 00 00 00 ff ff ff ff

Every packet ends with this.