artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde52b2
)
use correct return value for IP-MIB::ipForwarding, tweak/ok uebayasi@
author
sthen
<sthen@openbsd.org>
Thu, 8 Oct 2015 07:26:34 +0000
(07:26 +0000)
committer
sthen
<sthen@openbsd.org>
Thu, 8 Oct 2015 07:26:34 +0000
(07:26 +0000)
usr.sbin/snmpd/mib.c
patch
|
blob
|
history
diff --git
a/usr.sbin/snmpd/mib.c
b/usr.sbin/snmpd/mib.c
index
80e1dcf
..
14cf306
100644
(file)
--- a/
usr.sbin/snmpd/mib.c
+++ b/
usr.sbin/snmpd/mib.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mib.c,v 1.7
7 2015/10/05 15:29:14 uebayasi Exp $
*/
+/* $OpenBSD: mib.c,v 1.7
8 2015/10/08 07:26:34 sthen Exp $
*/
/*
* Copyright (c) 2012 Joel Knight <joel@openbsd.org>
@@
-2984,7
+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);
- *elm = ber_add_integer(*elm,
v
);
+ *elm = ber_add_integer(*elm,
(v == 0) ? 2 : 1
);
return (0);
}