diff --git a/src/common/protocol.h b/src/common/protocol.h --- a/src/common/protocol.h +++ b/src/common/protocol.h @@ -190,13 +190,16 @@ struct distren_request uint32_t /* enum distren_request_type */ type; }; +#define DISTREN_REQUEST_VERSION_PACKAGE_STRING_LEN (32) /** * A DISTREN_REQUEST_VERSION is started with a bitmask specification * of the DISTREN_SERVERTYPE_* values. */ struct distren_request_version { - + uint32_t servertype; + /* + 1 is for terminating NULL */ + char package_string[DISTREN_REQUEST_VERSION_PACKAGE_STRING_LEN + 1]; }; /**