add an Inform Message Type

This commit is contained in:
lilly 2026-05-20 12:53:09 +02:00
commit cb9625b337
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -76,6 +76,8 @@ The following special netids are defined:
This message is the introductory message that a new node sends to any node of the network it can reach and which identifies the new one. This message is the introductory message that a new node sends to any node of the network it can reach and which identifies the new one.
It has no payload. It has no payload.
Any node which receives a *Hello* message SHOULD add the sending node to it's local neighbor table and associate the src IP address of the packet with that sending node.
#### Message Type *Goodbye* #### Message Type *Goodbye*
- Message Type: `0x02` - Message Type: `0x02`
@ -98,6 +100,34 @@ It has no payload.
A message which MUST ONLY be originated by a node in response to a previous *Ping* message. A message which MUST ONLY be originated by a node in response to a previous *Ping* message.
It has no payload. It has no payload.
#### Message Type *Inform*
- Message Type `0x05`
This message may be sent by a node to inform it's neighbors about other neighbors.
For example, if Node A is a local neighbor of Node B, Node B could use this message to signal a third Node C that Node A exists.
Node C could then try to reach Node A on it's own and/or add it to it's remote neighbor table.
It has the following payload:
```
0 7 8 15 16 23 24 31
+-----------+-----------+-----------+------------+
| subject netid |
| |
+-----------+-----------+-----------+------------+
| subject ip address |
| |
+-----------+-----------+-----------+------------+
| subject port |
| |
+-----------+-----------+
```
- *subject netid*: The netid of the third node which is being informed about (Node A in the example above).
- *subject ip address*: The IP Address at which the third node was reachable for the node which originated this message.
- *subject port*: The port at which the third node was reachable for the node with originated this message.
#### Message Type *Data* #### Message Type *Data*
- Message Type `0x10` - Message Type `0x10`