diff options
author | Bill Fumerola <billf@FreeBSD.org> | 2001-01-18 09:58:30 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 2001-01-18 09:58:30 +0000 |
commit | 22667fa9252f40344bdf036bcab63a61873ab2f3 (patch) | |
tree | 7c90355d8f91e5774f64714e2bec9cf3019b4b4b /net-mgmt/net-snmp-devel/files/patch-ad | |
parent | f8697247530f6a86fed7bb22b443fe7c2693be95 (diff) |
Upgrade to version 4.2
Some of the shared library magic is very hackish, however the net-snmp
library building make-fu is hackish as well, so I don't feel bad about it.
This commit also (re-)enables the host module for much more information.
It also fixes a long standing bug where 'snmpwalk localhost public' would
hang.
Notes
Notes:
svn path=/head/; revision=37290
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-ad')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-ad | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-ad b/net-mgmt/net-snmp-devel/files/patch-ad index 6f28af0a528f..bd85f7453919 100644 --- a/net-mgmt/net-snmp-devel/files/patch-ad +++ b/net-mgmt/net-snmp-devel/files/patch-ad @@ -1,6 +1,15 @@ ---- agent/mibgroup/mibII/interfaces.c~ Tue Mar 16 08:46:12 1999 -+++ agent/mibgroup/mibII/interfaces.c Sat Apr 3 13:49:28 1999 -@@ -1745,10 +1745,18 @@ +--- agent/mibgroup/mibII/interfaces.c.orig Fri Dec 1 14:17:21 2000 ++++ agent/mibgroup/mibII/interfaces.c Thu Jan 18 00:04:42 2001 +@@ -129,7 +129,7 @@ + #if HAVE_SYS_SYSCTL_H + #include <sys/sysctl.h> + +-#ifdef freebsd3 ++#if defined(freebsd3) || defined(freebsd4) || defined(freebsd5) + # define USE_SYSCTL_IFLIST + #else + # if defined(CTL_NET) && !defined(freebsd2) +@@ -1842,10 +1842,18 @@ physaddrbuf = 0; } ifm = (struct if_msghdr *)rtm; @@ -19,7 +28,7 @@ int is_alias = 0; ifam = (struct ifa_msghdr *)rtm; ilen -= sizeof(*ifam); -@@ -1771,6 +1779,7 @@ +@@ -1868,6 +1876,7 @@ } sa = (struct sockaddr *)cp; } @@ -27,3 +36,12 @@ rtm = (struct rt_msghdr *)cp; } } +@@ -1982,7 +1991,7 @@ + if (ifmd.ifmd_data.ifi_lastchange.tv_sec == 0 && + ifmd.ifmd_data.ifi_lastchange.tv_usec == 0) { + long_return = 0; +- else if (ifmd.ifmd_data.ifi_lastchange.tv_sec < starttime.tv_sec) ++ } else if (ifmd.ifmd_data.ifi_lastchange.tv_sec < starttime.tv_sec) { + long_return = 0; + } else { + long_return = (u_long) |