From: Yoshitaka Aharen Date: Wed, 30 Jan 2013 09:41:34 +0000 (+0900) Subject: [2157] update docs for getRequestIPVersion() X-Git-Tag: bind10-1.1.0beta1-release~85^2~5^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d28f0a9b596bd3a4580372c93408904d8f2d8a5;p=thirdparty%2Fkea.git [2157] update docs for getRequestIPVersion() --- diff --git a/src/bin/auth/statistics.h b/src/bin/auth/statistics.h index 81b41717f0..18d2f83f09 100644 --- a/src/bin/auth/statistics.h +++ b/src/bin/auth/statistics.h @@ -60,7 +60,7 @@ public: }; private: // request attributes - int req_ip_version_; // IP version + int req_address_family_; // IP version int req_transport_protocol_; // Transport layer protocol boost::optional req_opcode_; // OpCode enum BitAttributes { @@ -77,7 +77,7 @@ public: /// \brief The constructor. /// /// \throw None - MessageAttributes() : req_ip_version_(0), req_transport_protocol_(0) + MessageAttributes() : req_address_family_(0), req_transport_protocol_(0) {} /// \brief Return opcode of the request. @@ -99,21 +99,21 @@ public: /// \brief Get IP version carrying a request. /// - /// \return IP version carrying a request (AF_INET or AF_INET6) + /// \return IP address family carrying a request (AF_INET or AF_INET6) /// \throw None int getRequestIPVersion() const { - return (req_ip_version_); + return (req_address_family_); } - /// \brief Set IP version carrying a request. + /// \brief Set IP address family carrying a request. /// - /// \param ip_version AF_INET or AF_INET6 + /// \param address_family AF_INET or AF_INET6 /// \throw None - void setRequestIPVersion(const int ip_version) { - if (ip_version != AF_INET && ip_version != AF_INET6) { + void setRequestIPVersion(const int address_family) { + if (address_family != AF_INET && address_family != AF_INET6) { isc_throw(isc::InvalidParameter, "Unknown address family"); } - req_ip_version_ = ip_version; + req_address_family_ = address_family; } /// \brief Get transport protocol carrying a request.