[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-ports
Subject: ports/8908: ucd-snmp-3.5.3 on FreeBSD-current
From: marcel () scc ! nl
Date: 1998-11-30 20:13:21
[Download RAW message or body]
>Number: 8908
>Category: ports
>Synopsis: snmpd does not return ifPhysAddress on GET
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 30 12:20:01 PST 1998
>Last-Modified:
>Originator: Marcel Moolenaar
>Organization:
SCC vof
>Release: FreeBSD 3.0-CURRENT i386
>Environment:
FreeBSD scones.sup.scc.nl 3.0-CURRENT FreeBSD 3.0-CURRENT #9:
Fri Nov 27 00:08:21 CET 1998
marcel@scones.sup.scc.nl:/usr/src/sys/compile/SCONES i386
>Description:
snmpd does not return OID
"system.interfaces.ifNumber.ifTable.ifEntry.ifPhysAddress"
when requested by a SNMP manager.
Cause: sysctl(3) semantics has been changed for the interfaces
in -current.
>How-To-Repeat:
n/a
>Fix:
Apply the following patch.
*** agent/mibgroup/mibII/interfaces.c.orig Mon Sep 28 22:09:06 1998
--- agent/mibgroup/mibII/interfaces.c Mon Nov 30 20:16:01 1998
***************
*** 1676,1685 ****
--- 1676,1693 ----
physaddrbuf = 0;
}
ifm = (struct if_msghdr *)rtm;
+ #ifdef freebsd3
+ if (physaddrs != 0) physaddrs[naddrs] = (void*)(ifm + 1);
+ naddrs++;
+ #endif
ilen -= ifm->ifm_msglen;
cp += ifm->ifm_msglen;
rtm = (struct rt_msghdr *)cp;
while (ilen > 0 && rtm->rtm_type == RTM_NEWADDR) {
+ #ifdef freebsd3
+ ilen -= rtm->rtm_msglen;
+ cp += rtm->rtm_msglen;
+ #else
int is_alias = 0;
ifam = (struct ifa_msghdr *)rtm;
ilen -= sizeof(*ifam);
***************
*** 1702,1707 ****
--- 1710,1716 ----
}
sa = (struct sockaddr *)cp;
}
+ #endif
rtm = (struct rt_msghdr *)cp;
}
}
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic