| 1 |
/* dnsmasq is Copyright (c) 2000-2026 Simon Kelley |
| 2 |
|
| 3 |
This program is free software; you can redistribute it and/or modify |
| 4 |
it under the terms of the GNU General Public License as published by |
| 5 |
the Free Software Foundation; version 2 dated June, 1991, or |
| 6 |
(at your option) version 3 dated 29 June, 2007. |
| 7 |
|
| 8 |
This program is distributed in the hope that it will be useful, |
| 9 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
GNU General Public License for more details. |
| 12 |
|
| 13 |
You should have received a copy of the GNU General Public License |
| 14 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
/* If you modify this list, please keep the labels in metrics.c in sync. */ |
| 18 |
enum { |
| 19 |
METRIC_DNS_CACHE_INSERTED, |
| 20 |
METRIC_DNS_CACHE_LIVE_FREED, |
| 21 |
METRIC_DNS_QUERIES_FORWARDED, |
| 22 |
METRIC_DNS_AUTH_ANSWERED, |
| 23 |
METRIC_DNS_LOCAL_ANSWERED, |
| 24 |
METRIC_DNS_STALE_ANSWERED, |
| 25 |
METRIC_DNS_UNANSWERED_QUERY, |
| 26 |
METRIC_CRYPTO_HWM, |
| 27 |
METRIC_SIG_FAIL_HWM, |
| 28 |
METRIC_WORK_HWM, |
| 29 |
METRIC_BOOTP, |
| 30 |
METRIC_PXE, |
| 31 |
METRIC_DHCPACK, |
| 32 |
METRIC_DHCPDECLINE, |
| 33 |
METRIC_DHCPDISCOVER, |
| 34 |
METRIC_DHCPINFORM, |
| 35 |
METRIC_DHCPNAK, |
| 36 |
METRIC_DHCPOFFER, |
| 37 |
METRIC_DHCPRELEASE, |
| 38 |
METRIC_DHCPREQUEST, |
| 39 |
METRIC_NOANSWER, |
| 40 |
METRIC_LEASES_ALLOCATED_4, |
| 41 |
METRIC_LEASES_PRUNED_4, |
| 42 |
METRIC_LEASES_ALLOCATED_6, |
| 43 |
METRIC_LEASES_PRUNED_6, |
| 44 |
METRIC_TCP_CONNECTIONS, |
| 45 |
METRIC_DHCPLEASEQUERY, |
| 46 |
METRIC_DHCPLEASEUNASSIGNED, |
| 47 |
METRIC_DHCPLEASEACTIVE, |
| 48 |
METRIC_DHCPLEASEUNKNOWN, |
| 49 |
|
| 50 |
__METRIC_MAX, |
| 51 |
}; |
| 52 |
|
| 53 |
const char* get_metric_name(int); |
| 54 |
void clear_metrics(void); |