head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.54 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.52 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.50 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.48 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.46 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.44 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.42 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.40 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.38 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.36 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.34 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.32 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.30 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.28 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.26 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.24 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 buildlink2-base:1.6 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 netbsd-1-4-PATCH002:1.1.1.1 comdex-fall-1999:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2002.02.13.16.43.39; author tron; state dead; branches; next 1.5; 1.5 date 2001.09.11.01.46.31; author wrstuden; state Exp; branches; next 1.4; 1.4 date 2001.09.11.01.44.40; author wrstuden; state dead; branches; next 1.3; 1.3 date 2001.08.30.23.31.30; author wrstuden; state Exp; branches; next 1.2; 1.2 date 2001.05.09.19.05.43; author wiz; state dead; branches; next 1.1; 1.1 date 99.09.22.21.11.39; author kim; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.09.22.21.11.39; author kim; state Exp; branches; next ; desc @@ 1.6 log @Remove "ucd-snmp-current" package because "ucd-snmp" package was updated to the same version but has an extra security fixe. @ text @$NetBSD: patch-af,v 1.5 2001/09/11 01:46:31 wrstuden Exp $ --- 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 # 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 @@@@ -1549,19 +1549,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 @Properly bring ucd-snmp-current back to life. Eventually ucd-snmp should be updated to this version too. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.3 2001/08/30 23:31:30 wrstuden Exp $ @ 1.4 log @Kill the zombies. The moral of the story is that cvs 1.11 doesn't like: cvs update Modify files cvs update after someone else has deleted them but with enough local changes that they don't disapear cvs ci The checkin succeeds, but the ,v file stays in the attic. @ text @@ 1.3 log @Bring ucd-snmp-current back to life. This is a package of ucd-snmp 4.2.1, the latest release of the net-snmp project (the name change is still in progress). @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.2 2001/05/09 19:05:43 wiz dead $ @ 1.2 log @Remove ucd-snmp-current, since ucd-snmp is newer. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.1 1999/09/22 21:11:39 kim Exp $ d3 20 a22 4 --- apps/snmpnetstat/Makefile.in.orig Mon Jul 26 12:04:09 1999 +++ apps/snmpnetstat/Makefile.in Wed Sep 22 09:57:19 1999 @@@@ -24,7 +24,7 @@@@ CC = @@CC@@ $(CPPFLAGS) d24 24 a47 5 USELIBS=../../snmplib/libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) -LIBS= -L../../snmplib $(CC_RUNTIME_ARG) -lsnmp @@LIBS@@ +LIBS= -L../../snmplib -lsnmp $(CC_RUNTIME_ARG) @@LIBS@@ all: $(TARG) d49 1 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Current ucd-snmp package, version 4.0.1 with patch 12 applied. @ text @@