2.2.2.1 AUTH_INFO

AUTH_INFO is the first message sent by the connection initiator when establishing a connection. Because this message is sent before the graph security provider negotiation, it is always sent in the clear.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Message Size

Version

Message Type

Reserved1

Connection Type

Reserved2

Graph ID Offset

Source Peer ID Offset

Destination Peer ID Offset

Graph ID Data (variable)

...

Source Peer ID Data (variable)

...

Destination Peer ID Data (variable)

...

Message Size (4 bytes): The total number of bytes in the message.

Version (1 byte): The Peer-to-Peer Graphing Protocol version number. This MUST be set to 0x10 to signify version 1.0.

Message Type (1 byte): MUST be set to 0x01.

Reserved1 (2 bytes): MUST be set to zero and ignored on receipt.

Connection Type (1 byte): MUST be one of the following values.

Value

Meaning

CONNECTION_TYPE_NEIGHBOR

0x01

This is for a neighbor connection.

CONNECTION_TYPE_DIRECT

0x02

This is a direct connection.

Reserved2 (1 byte): MUST be set to zero and MUST be ignored on receipt.

Graph ID Offset (2 bytes): The offset, in bytes, from the beginning of the message to the graph ID.

Source Peer ID Offset (2 bytes): The offset, in bytes, from the beginning of the message to the source Peer ID.

Destination Peer ID Offset (2 bytes): The offset, in bytes, from the beginning of the message to the destination Peer ID.

Graph ID Data (variable): A null-terminated UTF-8 string representing the graph ID.

Source Peer ID Data (variable): A null-terminated UTF-8 string representing the Peer ID of the node that is initiating the connection.

Destination Peer ID Data (variable): A null-terminated UTF-8 string representing the Peer ID of the node that the connection is intended for. If the Destination Peer ID Offset is equal to Message Size, this field MUST NOT be present.