]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2157] opcode is unsigned
authorYoshitaka Aharen <aharen@jprs.co.jp>
Mon, 19 Nov 2012 07:11:30 +0000 (16:11 +0900)
committerYoshitaka Aharen <aharen@jprs.co.jp>
Tue, 20 Nov 2012 02:12:35 +0000 (11:12 +0900)
src/bin/auth/statistics.h

index 14184e5aa08ab749bb50d2d6af9fc639b8add81d..5a5cb3ed00e5202f26e6ccada9875cec648ef6cd 100644 (file)
@@ -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;
     };