Add copyright to src/metrics.h

This commit is contained in:
Simon Kelley
2018-07-29 22:31:02 +01:00
parent 1dfed16071
commit c16d966ad3

View File

@@ -1,27 +1,43 @@
// If you modify this list, please keep the labels in metrics.c in sync. /* dnsmasq is Copyright (c) 2000-2018 Simon Kelley
enum {
METRIC_DNS_CACHE_INSERTED, This program is free software; you can redistribute it and/or modify
METRIC_DNS_CACHE_LIVE_FREED, it under the terms of the GNU General Public License as published by
METRIC_DNS_QUERIES_FORWARDED, the Free Software Foundation; version 2 dated June, 1991, or
METRIC_DNS_AUTH_ANSWERED, (at your option) version 3 dated 29 June, 2007.
METRIC_DNS_LOCAL_ANSWERED,
METRIC_BOOTP, This program is distributed in the hope that it will be useful,
METRIC_PXE, but WITHOUT ANY WARRANTY; without even the implied warranty of
METRIC_DHCPACK, MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
METRIC_DHCPDECLINE, GNU General Public License for more details.
METRIC_DHCPDISCOVER,
METRIC_DHCPINFORM, You should have received a copy of the GNU General Public License
METRIC_DHCPNAK, along with this program. If not, see <http://www.gnu.org/licenses/>.
METRIC_DHCPOFFER, */
METRIC_DHCPRELEASE,
METRIC_DHCPREQUEST,
METRIC_NOANSWER,
METRIC_LEASES_ALLOCATED_4,
METRIC_LEASES_PRUNED_4,
METRIC_LEASES_ALLOCATED_6,
METRIC_LEASES_PRUNED_6,
__METRIC_MAX, /* If you modify this list, please keep the labels in metrics.c in sync. */
enum {
METRIC_DNS_CACHE_INSERTED,
METRIC_DNS_CACHE_LIVE_FREED,
METRIC_DNS_QUERIES_FORWARDED,
METRIC_DNS_AUTH_ANSWERED,
METRIC_DNS_LOCAL_ANSWERED,
METRIC_BOOTP,
METRIC_PXE,
METRIC_DHCPACK,
METRIC_DHCPDECLINE,
METRIC_DHCPDISCOVER,
METRIC_DHCPINFORM,
METRIC_DHCPNAK,
METRIC_DHCPOFFER,
METRIC_DHCPRELEASE,
METRIC_DHCPREQUEST,
METRIC_NOANSWER,
METRIC_LEASES_ALLOCATED_4,
METRIC_LEASES_PRUNED_4,
METRIC_LEASES_ALLOCATED_6,
METRIC_LEASES_PRUNED_6,
__METRIC_MAX,
}; };
const char* get_metric_name(int); const char* get_metric_name(int);