artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0081bf8
)
add comment, suggested by reyk
author
sthen
<sthen@openbsd.org>
Thu, 8 Oct 2015 08:29:21 +0000
(08:29 +0000)
committer
sthen
<sthen@openbsd.org>
Thu, 8 Oct 2015 08:29:21 +0000
(08:29 +0000)
usr.sbin/snmpd/mib.c
patch
|
blob
|
history
diff --git
a/usr.sbin/snmpd/mib.c
b/usr.sbin/snmpd/mib.c
index
14cf306
..
7868f82
100644
(file)
--- a/
usr.sbin/snmpd/mib.c
+++ b/
usr.sbin/snmpd/mib.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mib.c,v 1.7
8 2015/10/08 07:26:34
sthen Exp $ */
+/* $OpenBSD: mib.c,v 1.7
9 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);