X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.h;h=ef7de0a6ec8469b251d70d4664dc0d1b2cde784e;hb=7bd40e39de0841948dde75f95767c90ab3fff7ac;hp=efc790319cebea5e3253cad748de71d4e8923aaa;hpb=619f112a584fcd89d2e8df7781a0a01341188189;p=collectd.git diff --git a/src/utils_dns.h b/src/utils_dns.h index efc79031..ef7de0a6 100644 --- a/src/utils_dns.h +++ b/src/utils_dns.h @@ -1,8 +1,7 @@ -#ifndef COLLECTD_UTILS_DNS_H -#define COLLECTD_UTILS_DNS_H 1 /* * collectd - src/utils_dns.h - * Copyright (C) 2006 Florian octo Forster + * Copyright (C) 2006 Florian octo Forster + * Copyright (C) 2002 The Measurement Factory, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -30,9 +29,13 @@ * POSSIBILITY OF SUCH DAMAGE. * * Authors: - * Florian octo Forster + * The Measurement Factory, Inc. + * Florian octo Forster */ +#ifndef COLLECTD_UTILS_DNS_H +#define COLLECTD_UTILS_DNS_H 1 + #include "config.h" #include @@ -42,9 +45,9 @@ # include #endif +#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 { @@ -70,10 +73,6 @@ 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