Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
net-snmp.9067
net-snmp-5.7.2-fix-mib-representation-of-timeou...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File net-snmp-5.7.2-fix-mib-representation-of-timeout-values.patch of Package net-snmp.9067
commit 78dac6e37943d1ad99841898806ea60b0eede636 Author: Wes Hardaker <hardaker@users.sourceforge.net> Date: Mon Jul 22 12:39:00 2013 -0700 fix bug number #a2478: fix mib representation of timeout values commit 390303059fbd98b1ee7621ddd4ad4c11d100fff9 Author: Magnus Fromreide <magfr@lysator.liu.se> Date: Sun Jul 28 21:28:14 2013 +0200 Revert 78dac6e37943d1ad99841898806ea60b0eede636 and resolve a2478 in a way that avoids truncating snmpTargetAddrTimeout. commit 96302af7fc3108c208227432f0f0b75f3e7b906d Author: Magnus Fromreide <magfr@lysator.liu.se> Date: Wed Aug 28 10:59:05 2013 +0200 Correct conversion factor from microseconds to centiseconds. Index: net-snmp-5.7.2/agent/mibgroup/target/snmpTargetAddrEntry.h =================================================================== --- net-snmp-5.7.2.orig/agent/mibgroup/target/snmpTargetAddrEntry.h +++ net-snmp-5.7.2/agent/mibgroup/target/snmpTargetAddrEntry.h @@ -51,7 +51,7 @@ config_add_mib(SNMPv2-TM) int tDomainLen; unsigned char *tAddress; size_t tAddressLen; - int timeout; + int timeout; /* Timeout in centiseconds */ int retryCount; char *tagList; char *params; Index: net-snmp-5.7.2/agent/mibgroup/target/target.c =================================================================== --- net-snmp-5.7.2.orig/agent/mibgroup/target/target.c +++ net-snmp-5.7.2/agent/mibgroup/target/target.c @@ -240,7 +240,7 @@ get_target_sessions(char *taglist, Targe } #endif memset(&thissess, 0, sizeof(thissess)); - thissess.timeout = (targaddrs->timeout) * 1000; + thissess.timeout = (targaddrs->timeout) * 10000; thissess.retries = targaddrs->retryCount; DEBUGMSGTL(("target_sessions", "timeout: %d -> %ld\n", Index: net-snmp-5.7.2/agent/mibgroup/notification/snmpNotifyTable.c =================================================================== --- net-snmp-5.7.2.orig/agent/mibgroup/notification/snmpNotifyTable.c +++ net-snmp-5.7.2/agent/mibgroup/notification/snmpNotifyTable.c @@ -331,7 +331,7 @@ notifyTable_register_notifications(int m ptr->tAddressLen = t->remote_length; ptr->tAddress = t->remote; - ptr->timeout = ss->timeout / 1000; + ptr->timeout = ss->timeout / 10000; ptr->retryCount = ss->retries; SNMP_FREE(ptr->tagList); ptr->tagList = strdup(ptr->name);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor