- Add patch that fix problem with return of version of sysoid with command snmpwalk.

- BUMP PORTREVISION

Submitted by:	william@cobradevil.org (mail private)
This commit is contained in:
Sylvio Cesar Teixeira 2010-08-31 11:00:14 +00:00
parent cc1e730e87
commit b502e422a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260267
2 changed files with 37 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= snmp
PORTVERSION= 5.5
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net-mgmt ipv6
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= net-

View file

@ -0,0 +1,36 @@
--- agent/mibgroup/mibII/system_mib.c.orig 2010-06-11 13:43:01.000000000 +0200
+++ agent/mibgroup/mibII/system_mib.c 2010-06-11 13:45:21.000000000 +0200
@@ -61,6 +61,7 @@
static char sysLocation[SYS_STRING_LEN] = NETSNMP_SYS_LOC;
static oid sysObjectID[MAX_OID_LEN];
static size_t sysObjectIDLength;
+static size_t sysObjectID_sizeof;
extern oid version_sysoid[];
extern int version_sysoid_len;
@@ -178,6 +179,7 @@
memcpy(sysObjectID, version_sysoid, version_sysoid_len * sizeof(oid));
sysObjectIDLength = version_sysoid_len;
}
+ sysObjectID_sizeof = sysObjectIDLength * sizeof(oid);
}
@@ -319,6 +321,7 @@
/* default sysObjectID */
memcpy(sysObjectID, version_sysoid, version_sysoid_len * sizeof(oid));
sysObjectIDLength = version_sysoid_len;
+ sysObjectID_sizeof = sysObjectIDLength * sizeof(oid);
{
const oid sysDescr_oid[] = { 1, 3, 6, 1, 2, 1, 1, 1 };
@@ -341,7 +344,7 @@
netsnmp_init_watcher_info6(
&sysObjectID_winfo, sysObjectID, 0, ASN_OBJECT_ID,
WATCHER_MAX_SIZE | WATCHER_SIZE_IS_PTR,
- MAX_OID_LEN, &sysObjectIDLength));
+ MAX_OID_LEN, &sysObjectID_sizeof));
}
{
const oid sysUpTime_oid[] = { 1, 3, 6, 1, 2, 1, 1, 3 };