return;
}
+ if (msgh.msg_flags & MSG_TRUNC) {
+ g_stats.truncatedDrops++;
+ if (!g_quiet) {
+ g_log<<Logger::Error<<"Ignoring truncated query from "<<fromaddr.toString()<<endl;
+ }
+ return;
+ }
+
if(t_remotes)
t_remotes->push_back(fromaddr);
static const oid policyResultTruncateOID[] = { RECURSOR_STATS_OID, 90 };
static const oid policyResultCustomOID[] = { RECURSOR_STATS_OID, 91 };
static const oid queryPipeFullDropsOID[] = { RECURSOR_STATS_OID, 92 };
+static const oid truncatedDropsOID[] = { RECURSOR_STATS_OID, 93 };
static std::unordered_map<oid, std::string> s_statsMap;
registerCounter64Stat("server-parse-errors", serverParseErrorsOID, OID_LENGTH(serverParseErrorsOID));
registerCounter64Stat("too-old-drops", tooOldDropsOID, OID_LENGTH(tooOldDropsOID));
registerCounter64Stat("query-pipe-full-drops", queryPipeFullDropsOID, OID_LENGTH(queryPipeFullDropsOID));
+ registerCounter64Stat("truncated-drops", truncatedDropsOID, OID_LENGTH(truncatedDropsOID));
registerCounter64Stat("answers0-1", answers01OID, OID_LENGTH(answers01OID));
registerCounter64Stat("answers1-10", answers110OID, OID_LENGTH(answers110OID));
registerCounter64Stat("answers10-100", answers10100OID, OID_LENGTH(answers10100OID));
addGetStat("client-parse-errors", &g_stats.clientParseError);
addGetStat("server-parse-errors", &g_stats.serverParseError);
addGetStat("too-old-drops", &g_stats.tooOldDrops);
+ addGetStat("truncated-drops", &g_stats.truncatedDrops);
addGetStat("query-pipe-full-drops", &g_stats.queryPipeFullDrops);
addGetStat("answers0-1", &g_stats.answers0_1);
"Number of queries dropped because the query distribution pipe was full"
::= { stats 92 }
+truncatedDrops OBJECT-TYPE
+ SYNTAX Counter64
+ MAX-ACCESS read-only
+ STATUS current
+ DESCRIPTION
+ "Number of queries dropped because they were larger than 1500 bytes"
+ ::= { stats 93 }
+
---
--- Traps / Notifications
---
policyResultTruncate,
policyResultCustom,
queryPipeFullDrops,
+ truncatedDrops,
trapReason
}
STATUS current
^^^^^^^^^^^^^
questions dropped that were too old
+truncated-drops
+^^^^^^^^^^^^^^^
+.. versionadded:: 4.2
+
+questions dropped because they were larger than 1500 bytes
+
unauthorized-tcp
^^^^^^^^^^^^^^^^
number of TCP questions denied because of allow-from restrictions
std::atomic<uint64_t> clientParseError;
std::atomic<uint64_t> serverParseError;
std::atomic<uint64_t> tooOldDrops;
+ std::atomic<uint64_t> truncatedDrops;
std::atomic<uint64_t> queryPipeFullDrops;
std::atomic<uint64_t> unexpectedCount;
std::atomic<uint64_t> caseMismatchCount;