From: Yoshitaka Aharen Date: Mon, 19 Nov 2012 07:11:30 +0000 (+0900) Subject: [2157] opcode is unsigned X-Git-Tag: bind10-1.1.0beta1-release~85^2~5^2~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab7f77f9ea18ce289ccc7484c4a40dc73548bca0;p=thirdparty%2Fkea.git [2157] opcode is unsigned --- diff --git a/src/bin/auth/statistics.h b/src/bin/auth/statistics.h index 14184e5aa0..5a5cb3ed00 100644 --- a/src/bin/auth/statistics.h +++ b/src/bin/auth/statistics.h @@ -42,7 +42,7 @@ private: // request attributes int req_ip_version_; // IP version int req_transport_protocol_; // Transport layer protocol - int req_opcode_; // OpCode + uint8_t req_opcode_; // OpCode enum BitAttributes { REQ_IS_EDNS_0, // EDNS ver.0 REQ_IS_EDNS_BADVER, // EDNS version other than 0 @@ -67,13 +67,13 @@ public: /// \brief Get request opcode. /// \return opcode of a request /// \throw None - int getRequestOpCode() const { + uint8_t getRequestOpCode() const { return (req_opcode_); }; /// \brief Set request opcode. /// \throw None - void setRequestOpCode(const int opcode) { + void setRequestOpCode(const uint8_t opcode) { req_opcode_ = opcode; };