From: sthen Date: Thu, 8 Oct 2015 08:29:21 +0000 (+0000) Subject: add comment, suggested by reyk X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f070ea00eb1baa0f4aa4ed6dc8361ceee587f93f;p=openbsd add comment, suggested by reyk --- 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 @@ -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);