summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e44ff91)
raw | patch | inline | side by side (parent: e44ff91)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Mar 2016 17:06:23 +0000 (18:06 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Mar 2016 17:06:23 +0000 (18:06 +0100) |
src/utils_dns.c | patch | blob | history | |
src/utils_dns.h | patch | blob | history |
diff --git a/src/utils_dns.c b/src/utils_dns.c
index 71a14d87ddc7fe75f2326165e11b86cdaf4ce139..2c7a59d343fb938ea7017c162317791830dbf646 100644 (file)
--- a/src/utils_dns.c
+++ b/src/utils_dns.c
/*
* Global variables
*/
-int qtype_counts[T_MAX];
-int opcode_counts[OP_MAX];
-int qclass_counts[C_MAX];
#if HAVE_PCAP_H
static pcap_t *pcap_obj = NULL;
qh.length = (uint16_t) len;
- /* gather stats */
- qtype_counts[qh.qtype]++;
- qclass_counts[qh.qclass]++;
- opcode_counts[qh.opcode]++;
-
if (Callback != NULL)
Callback (&qh);
diff --git a/src/utils_dns.h b/src/utils_dns.h
index 83f0ea403e9809ab68c9261299119aa1537278d1..ef7de0a6ec8469b251d70d4664dc0d1b2cde784e 100644 (file)
--- a/src/utils_dns.h
+++ b/src/utils_dns.h
#define DNS_MSG_HDR_SZ 12
#define T_MAX 65536
-#define OP_MAX 16
-#define C_MAX 65536
#define MAX_QNAME_SZ 512
struct rfc1035_header_s {
};
typedef struct rfc1035_header_s rfc1035_header_t;
-extern int qtype_counts[T_MAX];
-extern int opcode_counts[OP_MAX];
-extern int qclass_counts[C_MAX];
-
#if HAVE_PCAP_H
void dnstop_set_pcap_obj (pcap_t *po);
#endif