diff options
author | David Timber <mieabby@gmail.com> | 2021-09-11 11:11:40 +0800 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-09-11 11:11:40 +0800 |
commit | eb56a23613638ca705f5be707cacc1b0989a2a76 (patch) | |
tree | 09d8fe6e428608421c7062399d1821121d254af6 /src/protocol.h | |
parent | 8219894fcb3c4c89b55a0dd0afcbbda4ded5aea3 (diff) |
Use prne_htbt_gen_msgid() to unify msg_id gen algo
* Add PRNE_HTBT_MSG_ID_NOTIFY for protocol error w/o associated msg_id
* Remove PRNE_HTBT_MSG_ID_MAX(wrong value)
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol.h b/src/protocol.h index 72f39ca..da500b3 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -344,8 +344,8 @@ typedef prne_htbt_ser_rc_t(*prne_htbt_dser_ft)( #define PRNE_HTBT_TLS_ALP "prne-htbt" #define PRNE_HTBT_MSG_ID_MIN 1 -#define PRNE_HTBT_MSG_ID_MAX INT16_MAX -#define PRNE_HTBT_MSG_ID_DELTA INT16_MAX +#define PRNE_HTBT_MSG_ID_DELTA (INT16_MAX - 1) +#define PRNE_HTBT_MSG_ID_NOTIFY INT16_MAX #define PRNE_HTBT_PROTO_PORT 64420 // _POSIX_ARG_MAX equiv #define PRNE_HTBT_ARGS_MAX 255 |