summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Siegert <bsiegert@gmail.com>2016-03-26 21:40:07 +0100
committerBenny Siegert <bsiegert@gmail.com>2016-03-26 21:40:07 +0100
commitfa6abf3a80eeafe9b70ffd3c5d0541963b21b9c4 (patch)
treec2036106603fbf38683826544c24696a5c7baade
parent0103671f1f3dae63dc9d17ce5cb18183871fef9c (diff)
NetBSD does not have send or receive quotas.
-rw-r--r--src/in_sysctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/in_sysctl.c b/src/in_sysctl.c
index ff71b4d..595e4f4 100644
--- a/src/in_sysctl.c
+++ b/src/in_sysctl.c
@@ -232,11 +232,13 @@ sysctl_read(void)
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_metric);
element_update_info(e, "Metric", info_buf);
+#ifndef __NetBSD__
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_recvquota);
element_update_info(e, "RX-Quota", info_buf);
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_xmitquota);
element_update_info(e, "TX-Quota", info_buf);
+#endif
element_notify_update(e, NULL);
element_lifesign(e, 1);