diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-02-27 16:45:17 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-02-27 16:45:17 +0000 |
commit | 292751be1d3ce7146285b2115a56bd64e1ecf5c8 (patch) | |
tree | 5dde1633df9a61f773e435851921381b826ca614 | |
parent | fbd8631cbd38ad9478411670b3c45af3c89414bb (diff) |
Use correct Counter32 type for following MIBs. They only return dummy data
but we should use the correct type anyway.
BRIDGE-MIB::dot1dBasePortDelayExceededDiscards
BRIDGE-MIB::dot1dBasePortMtuExceededDiscards
OK joel@
-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 ec04873b914..dff05cf285a 100644 --- a/usr.sbin/snmpd/mib.c +++ b/usr.sbin/snmpd/mib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mib.c,v 1.50 2012/02/23 03:54:38 joel Exp $ */ +/* $OpenBSD: mib.c,v 1.51 2012/02/27 16:45:16 sthen Exp $ */ /* * Copyright (c) 2012 Joel Knight <joel@openbsd.org> @@ -3308,6 +3308,7 @@ mib_dot1dtable(struct oid *oid, struct ber_oid *o, struct ber_element **elm) case 4: case 5: ber = ber_add_integer(ber, 0); + ber_set_header(ber, BER_CLASS_APPLICATION, SNMP_T_COUNTER32); break; } |