Skip to content

Commit

Permalink
Annotate and fix max for packet type list
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishcoleman committed Feb 25, 2024
1 parent 3386cb8 commit 41d418b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/n2n_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@

/* N2N packet header indicators. */
#define MSG_TYPE_REGISTER 1
#define MSG_TYPE_DEREGISTER 2
#define MSG_TYPE_DEREGISTER 2 // unused
#define MSG_TYPE_PACKET 3
#define MSG_TYPE_REGISTER_ACK 4
#define MSG_TYPE_REGISTER_SUPER 5
#define MSG_TYPE_UNREGISTER_SUPER 6
#define MSG_TYPE_REGISTER_SUPER_ACK 7
#define MSG_TYPE_REGISTER_SUPER_NAK 8
#define MSG_TYPE_FEDERATION 9
#define MSG_TYPE_FEDERATION 9 // unused
#define MSG_TYPE_PEER_INFO 10
#define MSG_TYPE_QUERY_PEER 11
#define MSG_TYPE_MAX_TYPE 11
#define MSG_TYPE_RE_REGISTER_SUPER 12
#define MSG_TYPE_MAX_TYPE 12

/* Max available space to add supernodes' informations (sockets and MACs) in REGISTER_SUPER_ACK
* Field sizes of REGISTER_SUPER_ACK as used in encode/decode fucntions in src/wire.c
Expand Down

0 comments on commit 41d418b

Please sign in to comment.