head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.50 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.48 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.46 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.44 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.42 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.40 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.38 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.36 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.34 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.32 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.30 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.28 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.26 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.24 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.22 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.20 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.18 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.16 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.14 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.12 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.10 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.8 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.6 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.4 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.2 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.5.0.12 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.10 pkgsrc-2003Q4-base:1.5 netbsd-1-6-1:1.5.0.6 netbsd-1-6-1-base:1.5 netbsd-1-6:1.5.0.8 netbsd-1-6-RELEASE-base:1.5 pkgviews:1.5.0.4 pkgviews-base:1.5 buildlink2:1.5.0.2 buildlink2-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH001:1.3 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.6 date 2004.03.29.16.30.24; author cube; state dead; branches; next 1.5; 1.5 date 2002.04.09.09.53.55; author itojun; state Exp; branches; next 1.4; 1.4 date 2002.02.13.16.41.42; author tron; state Exp; branches; next 1.3; 1.3 date 2000.10.13.17.55.36; author kim; state Exp; branches; next 1.2; 1.2 date 2000.01.23.10.41.10; author itojun; state Exp; branches; next 1.1; 1.1 date 99.08.15.11.07.14; author tron; state Exp; branches; next ; desc @@ 1.6 log @Remove ucd-snmp package, which is outdated, insecure, and now unused in pkgsrc since gkrellm1-snmp conversion to net-snmp. @ text @$NetBSD: patch-af,v 1.5 2002/04/09 09:53:55 itojun Exp $ --- agent/mibgroup/mibII/interfaces.c.orig Fri Mar 29 16:44:18 2002 +++ agent/mibgroup/mibII/interfaces.c Tue Apr 9 18:26:59 2002 @@@@ -167,7 +167,7 @@@@ #if defined(freebsd3) || defined(freebsd4) || defined(freebsd5) # define USE_SYSCTL_IFLIST #else -# if defined(CTL_NET) && !defined(freebsd2) +# if defined(CTL_NET) && !defined(freebsd2) && !defined(netbsd1) # ifdef PF_ROUTE # ifdef NET_RT_IFLIST # ifndef netbsd1 @@@@ -1776,19 +1776,34 @@@@ cp = strchr(saveName, '\0'); string_append_int (cp, ifnet.if_unit); #endif - if (1 || strcmp(saveName,"lo0") != 0) { /* XXX */ + if (1 ) { /* XXX */ /* * Try to find an address for this interface */ auto_nlist(IFADDR_SYMBOL, (char *)&ia, sizeof(ia)); +#ifdef netbsd1 + ia=(struct in_ifaddr *)ifnet.if_addrlist.tqh_first; +#endif while (ia) { klookup((unsigned long)ia , (char *)&in_ifaddr, sizeof(in_ifaddr)); +#ifdef netbsd1 +#define CP(x) ((char *)(x)) +{ char *cp; struct sockaddr * sa; + cp = (CP(in_ifaddr.ia_ifa.ifa_addr) - CP(ia)) + + CP(&in_ifaddr); sa = (struct sockaddr *)cp; +if (sa->sa_family==AF_INET) +#endif if (in_ifaddr.ia_ifp == ifnetaddr) { has_ipaddr = 1; /* this IF has IP-address */ break; } +} +#ifdef netbsd1 + ia=(struct in_ifaddr *)in_ifaddr.ia_ifa.ifa_list.tqe_next; +#else ia = in_ifaddr.ia_next; +#endif } #if !defined(netbsd1) && !defined(freebsd2) && !defined(openbsd2) && !defined(STRUCT_IFNET_HAS_IF_ADDRLIST) @ 1.5 log @upgrade to 4.2.4. release note: http://sourceforge.net/project/shownotes.php?release_id=83551 @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update "ucd-snmp" package to version 4.2.3nb1: - Replace with contents of "ucd-snmp-current" package to fix various security problems. - Add patch sent to "bugtraq" by Juan M. de la Torre to fix buffer overflow in "snmpnetstat" client. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.5 2001/09/11 01:46:31 wrstuden Exp $ d3 4 a6 4 --- agent/mibgroup/mibII/interfaces.c.orig Tue Jan 30 15:36:04 2001 +++ agent/mibgroup/mibII/interfaces.c Tue Jan 30 15:42:42 2001 @@@@ -132,7 +132,7 @@@@ #ifdef freebsd3 d14 1 a14 1 @@@@ -1549,19 +1549,34 @@@@ @ 1.3 log @Update to 4.1.2: *4.1.2* Fixes: - Host resources fixes for FreeBSD and NetBSD - ucd-snmp memory/vmstat fixes for FreeBSD-3 - configure --enable-ipv6 fixes - AIX fix (use knlist) - fix init_master_agent calling exit - bad free in subagent.c - dont let a agentx subagent be a smux master - ucd-snmp/loadave fix for AIX - fix doing a set on a pass variable - snmptable fixes - snmpnetstat fixes for v2c exceptions - man page fixes Features: - Some UnixWare 5 configuration support - configure --enable-mini-agent --without-openssl - snmptrapd -n - snmp_log callbacks - noTokenWarnings and noRangeCheck in snmp.conf - using a counter type in snmpset/snmptrap *4.1.1* Fixes: - Better agent handling of unauthorized requests. - Better "make test" support. - Misc bug fixes. *4.1* New: - Many new command line flags have been added for input/output flexibility. (see the snmpcmd(1) manual page on the -O flag and -I flag) - The tools support regex matching of oids on the command line. (see the snmpcmd(1) manual page on the -Ib option) - A ucd-snmp usage tutorial has been placed on the main web page. (see http://ucd-snmp.ucdavis.edu/tutorial) - snmptable is much smarter and handles sparse tables better. - tkmib supports snmpv3. - New agent libraries to embed SNMP and AgentX agents into other programs. (see the snmp_agent_api(3) manual page and the tutorial) - SNMP over TCP is supported. (-T TCP on the command lines) - OpenSSL has replaced KMT for SHA authentication and DES encryption. (Get OpenSSL from http://www.openssl.org/). - Some easier-to-use access-control snmpd.conf directives for simple setups. (see the snmpd.conf(5) manual page) - Easier setup of SNMPv3 support for the agent. (see the README.snmpv3 file). - Command line argument parsing has been reworked for getopt() use. (currently backwards compatible; see the snmpcmd(1) manual page) - Table rows with embedded strings are dealt with for both input and output. (see the snmpcmd(1) manual on the -Ob flag) - Many more snmp.conf directives supported. (see the snmp.conf(5) manual page) - Many AgentX improvements. - All of our distributed mibs have been updated to be SMIv2 compliant. - Trap support in the agent has been cleaned up and an API created. Perl: - Joe Marzot's perl module is now included with the ucd-snmp source. (this should help people trying to synchronize the two packages) Fixes: - SMUX support has been reintegrated into the agent in a better way. - Many many others. @ text @d1 1 a1 1 $NetBSD$ d3 5 a7 3 --- agent/mibgroup/mibII/interfaces.c.orig Tue Mar 14 06:26:21 2000 +++ agent/mibgroup/mibII/interfaces.c Wed Oct 11 19:03:17 2000 @@@@ -134,3 +134,3 @@@@ d12 5 a16 1 @@@@ -1562,3 +1562,3 @@@@ d19 1 a19 1 + if (1) { /* XXX */ d21 3 a23 1 @@@@ -1568,6 +1568,21 @@@@ d26 1 a26 1 + ia=(struct in_ifaddr *)ifnet.if_addrlist.tqh_first; d33 3 a35 3 + cp = (CP(in_ifaddr.ia_ifa.ifa_addr) - CP(ia)) + + CP(&in_ifaddr); sa = (struct sockaddr *)cp; +if (sa->sa_family==AF_INET) d37 4 a40 1 if (in_ifaddr.ia_ifp == ifnetaddr) break; d43 1 a43 1 + ia=(struct in_ifaddr *)in_ifaddr.ia_ifa.ifa_list.tqe_next; d48 2 @ 1.2 log @upgrade ucd-snmp to 4.0.1. include IPv6 MIB support patch into compilation. @ text @d2 4 a5 5 --- agent/mibgroup/mibII/interfaces.c.orig Fri Jan 21 05:33:12 2000 +++ agent/mibgroup/mibII/interfaces.c Fri Jan 21 05:46:58 2000 @@@@ -121,7 +121,7 @@@@ #if defined(freebsd3) # define USE_SYSCTL_IFLIST d10 1 a10 5 # ifdef NET_RT_IFLIST # define USE_SYSCTL_IFLIST @@@@ -1549,16 +1549,31 @@@@ cp = strchr(saveName, '\0'); string_append_int (cp, ifnet.if_unit); d15 1 a15 3 * Try to find an address for this interface */ a36 2 #if !defined(netbsd1) && !defined(freebsd2) && !defined(openbsd2) && !defined(STRUCT_IFNET_HAS_IF_ADDRLIST) @ 1.1 log @Fix "ucd-snmpd" to return "mib-2.ip.ipAddrTable" and make sure "netbsd1" preprocessor symbol gets defined on NetBSD systems. Patches supplied by Zdenek Salvet in PR pkg/7799. @ text @d2 6 a7 7 --- agent/mibgroup/mibII/interfaces.c.orig Tue Mar 16 00:46:12 1999 +++ agent/mibgroup/mibII/interfaces.c Thu Jun 17 10:21:06 1999 @@@@ -114,7 +114,7 @@@@ #if HAVE_SYS_SYSCTL_H #include d13 1 a13 1 @@@@ -1462,16 +1462,31 @@@@ @