From be37d025b801865e95e4b616aef31a1645309c58 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Jun 2016 10:46:29 -0700 Subject: [PATCH] Make flags 64-bit in both network request and config. --- node/NetworkConfig.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index a7ed77b9c..056660fab 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -359,8 +359,8 @@ public: b.append((uint64_t)timestamp); b.append((uint64_t)revision); issuedTo.appendTo(b); + b.append((uint64_t)flags); b.append((uint32_t)multicastLimit); - b.append((uint32_t)flags); b.append((uint8_t)type); unsigned int nl = (unsigned int)strlen(name); @@ -488,8 +488,8 @@ public: timestamp = b.template at(p); p += 8; revision = b.template at(p); p += 8; issuedTo.setTo(b.field(p,ZT_ADDRESS_LENGTH),ZT_ADDRESS_LENGTH); p += ZT_ADDRESS_LENGTH; + flags = b.template at(p); p += 4; multicastLimit = (unsigned int)b.template at(p); p += 4; - flags = (unsigned int)b.template at(p); p += 4; type = (ZT_VirtualNetworkType)b[p++]; unsigned int nl = (unsigned int)b[p++]; @@ -660,16 +660,16 @@ public: */ Address issuedTo; + /** + * Flags (64-bit) + */ + uint64_t flags; + /** * Maximum number of recipients per multicast (not including active bridges) */ unsigned int multicastLimit; - /** - * Flags (32-bit) - */ - unsigned int flags; - /** * Number of specialists */