diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2015-10-08 08:29:22 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2015-10-08 08:29:22 +0000 |
commit | 49290b6e13a6fa419a4533b1c45549b8a218dee5 (patch) | |
tree | d464de0266c8ddcea55c93999ace9a867d697fd6 /usr.sbin/snmpd/mib.c | |
parent | fef1102873ebb259d823b07e16d1efe05083d0b1 (diff) |
add comment, suggested by reyk
Diffstat (limited to 'usr.sbin/snmpd/mib.c')
-rw-r--r-- | usr.sbin/snmpd/mib.c | 3 |
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); |