}
// request TSIG
- if (msgattrs.getRequestSigTSIG()) {
+ if (msgattrs.requestHasTSIG()) {
server_msg_counter_.inc(MSG_REQUEST_TSIG);
}
- if (msgattrs.getRequestSigBadSig()) {
+ if (msgattrs.requestHasBadSig()) {
server_msg_counter_.inc(MSG_REQUEST_BADSIG);
// If signature validation is failed, no other query attributes are
// reliable. Skip processing of the rest of query counters.
}
// request EDNS
- if (msgattrs.getRequestEDNS0()) {
+ if (msgattrs.requestHasEDNS0()) {
server_msg_counter_.inc(MSG_REQUEST_EDNS0);
}
// request DNSSEC
- if (msgattrs.getRequestDO()) {
+ if (msgattrs.requestHasDO()) {
server_msg_counter_.inc(MSG_REQUEST_DNSSEC_OK);
}
server_msg_counter_.inc(MSG_RESPONSE);
// response truncated
- if (msgattrs.getResponseTruncated()) {
+ if (msgattrs.responseIsTruncated()) {
server_msg_counter_.inc(MSG_RESPONSE_TRUNCATED);
}
}
// response TSIG
- if (msgattrs.getResponseTSIG()) {
+ if (msgattrs.responseHasTSIG()) {
server_msg_counter_.inc(MSG_RESPONSE_TSIG);
}
isc_throw(isc::Unexpected, "Opcode of the request is empty while it is"
" responded");
}
- if (!msgattrs.getRequestSigBadSig() &&
+ if (!msgattrs.requestHasBadSig() &&
opcode.get() == Opcode::QUERY())
{
// compound attributes
};
private:
// request attributes
- int req_address_family_; // IP version
+ int req_address_family_; // IP version
int req_transport_protocol_; // Transport layer protocol
boost::optional<isc::dns::Opcode> req_opcode_; // OpCode
enum BitAttributes {
///
/// \return true if EDNS version of the request is 0
/// \throw None
- bool getRequestEDNS0() const {
+ bool requestHasEDNS0() const {
return (bit_attributes_[REQ_WITH_EDNS_0]);
}
///
/// \return true if DNSSEC OK (DO) bit of the request is set
/// \throw None
- bool getRequestDO() const {
+ bool requestHasDO() const {
return (bit_attributes_[REQ_WITH_DNSSEC_OK]);
}
///
/// \return true if the request is TSIG signed
/// \throw None
- bool getRequestSigTSIG() const {
+ bool requestHasTSIG() const {
return (bit_attributes_[REQ_TSIG_SIGNED]);
}
///
/// \return true if the signature of the request is bad
/// \throw None
- bool getRequestSigBadSig() const {
+ bool requestHasBadSig() const {
return (bit_attributes_[REQ_BADSIG]);
}
///
/// \return true if the response is truncated
/// \throw None
- bool getResponseTruncated() const {
+ bool responseIsTruncated() const {
return (bit_attributes_[RES_IS_TRUNCATED]);
}
///
/// \return true if the response is signed with TSIG
/// \throw None
- bool getResponseTSIG() const {
+ bool responseHasTSIG() const {
return (bit_attributes_[RES_TSIG_SIGNED]);
}