summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/mib.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-10-08 08:29:22 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-10-08 08:29:22 +0000
commit49290b6e13a6fa419a4533b1c45549b8a218dee5 (patch)
treed464de0266c8ddcea55c93999ace9a867d697fd6 /usr.sbin/snmpd/mib.c
parentfef1102873ebb259d823b07e16d1efe05083d0b1 (diff)
add comment, suggested by reyk
Diffstat (limited to 'usr.sbin/snmpd/mib.c')
-rw-r--r--usr.sbin/snmpd/mib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c
index 14cf3060a79..7868f8238e8 100644
--- a/usr.sbin/snmpd/mib.c
+++ b/usr.sbin/snmpd/mib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.c,v 1.78 2015/10/08 07:26:34 sthen Exp $ */
+/* $OpenBSD: mib.c,v 1.79 2015/10/08 08:29:21 sthen Exp $ */
/*
* Copyright (c) 2012 Joel Knight <joel@openbsd.org>
@@ -2984,6 +2984,7 @@ mib_ipforwarding(struct oid *oid, struct ber_oid *o, struct ber_element **elm)
if (sysctl(mib, sizeofa(mib), &v, &len, NULL, 0) == -1)
return (-1);
+ /* ipForwarding: forwarding(1), notForwarding(2) */
*elm = ber_add_integer(*elm, (v == 0) ? 2 : 1);
return (0);