// Increase the statistics of parse failures and dropped packets.
StatsMgr::instance().addValue("pkt4-parse-failed", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
-
-
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
if (!services_->get()->inScope(query4)) {
LOG_DEBUG(ha_logger, DBGLVL_TRACE_BASIC, HA_BUFFER4_RECEIVE_NOT_FOR_US)
.arg(query4->getLabel());
+ StatsMgr::instance().addValue("pkt4-not-for-us", static_cast<int64_t>(1));
+ StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
} else {
// logs the subnet selection failure.
LOG_DEBUG(ha_logger, DBGLVL_TRACE_BASIC, HA_SUBNET4_SELECT_NO_SUBNET_SELECTED)
.arg(query4->getLabel());
- callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ // We even do not know what is the server handling it...
+ StatsMgr::instance().addValue("pkt4-not-for-us", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
+ callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
LOG_ERROR(ha_logger, HA_SUBNET4_SELECT_NO_RELATIONSHIP_SELECTOR_FOR_SUBNET)
.arg(query4->getLabel())
.arg(subnet4->toText());
- callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ // We even do not know what is the server handling it...
+ StatsMgr::instance().addValue("pkt4-not-for-us", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
+ callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
LOG_ERROR(ha_logger, HA_SUBNET4_SELECT_INVALID_HA_SERVER_NAME)
.arg(query4->getLabel())
.arg(subnet4->toText());
- callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ StatsMgr::instance().addValue("pkt4-processing-failed", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
+ callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
.arg(query4->getLabel())
.arg(server_name);
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ StatsMgr::instance().addValue("pkt4-not-for-us", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
return;
}
LOG_DEBUG(ha_logger, DBGLVL_TRACE_BASIC, HA_SUBNET4_SELECT_NOT_FOR_US)
.arg(query4->getLabel())
.arg(server_name);
+ StatsMgr::instance().addValue("pkt4-not-for-us", static_cast<int64_t>(1));
+ StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
LOG_ERROR(ha_logger, HA_LEASES4_COMMITTED_NO_RELATIONSHIP)
.arg(query4->getLabel())
.arg(ex.what());
+ StatsMgr::instance().addValue("pkt4-not-for-us", static_cast<int64_t>(1));
+ StatsMgr::instance().addValue("pkt4-receive-drop", static_cast<int64_t>(1));
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
if (!services_->get()->inScope(query6)) {
LOG_DEBUG(ha_logger, DBGLVL_TRACE_BASIC, HA_BUFFER6_RECEIVE_NOT_FOR_US)
.arg(query6->getLabel());
+ StatsMgr::instance().addValue("pkt6-not-for-us", static_cast<int64_t>(1));
+ StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
} else {
LOG_DEBUG(ha_logger, DBGLVL_TRACE_BASIC, HA_SUBNET6_SELECT_NO_SUBNET_SELECTED)
.arg(query6->getLabel());
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ // We even do not know what is the server handling it...
+ StatsMgr::instance().addValue("pkt6-not-for-us", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
return;
}
.arg(query6->getLabel())
.arg(subnet6->toText());
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ // We even do not know what is the server handling it...
+ StatsMgr::instance().addValue("pkt6-not-for-us", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
return;
}
.arg(query6->getLabel())
.arg(subnet6->toText());
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ StatsMgr::instance().addValue("pkt6-processing-failed", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
return;
}
.arg(query6->getLabel())
.arg(server_name);
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
+ StatsMgr::instance().addValue("pkt6-not-for-us", static_cast<int64_t>(1));
StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
return;
}
LOG_DEBUG(ha_logger, DBGLVL_TRACE_BASIC, HA_SUBNET6_SELECT_NOT_FOR_US)
.arg(query6->getLabel())
.arg(server_name);
+ StatsMgr::instance().addValue("pkt6-not-for-us", static_cast<int64_t>(1));
+ StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
LOG_ERROR(ha_logger, HA_LEASES6_COMMITTED_NO_RELATIONSHIP)
.arg(query6->getLabel())
.arg(ex.what());
+ StatsMgr::instance().addValue("pkt6-not-for-us", static_cast<int64_t>(1));
+ StatsMgr::instance().addValue("pkt6-receive-drop", static_cast<int64_t>(1));
callout_handle.setStatus(CalloutHandle::NEXT_STEP_DROP);
return;
}
return (service->shouldReclaim(lease6));
}
-
} // end of namespace isc::ha
} // end of namespace isc