[packages] net-snmp: Refresh patches

git-svn-id: svn://svn.openwrt.org/openwrt/packages@16593 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2009-06-27 21:50:05 +00:00
parent 392c95443d
commit 214b4277aa
7 changed files with 58 additions and 65 deletions

View File

@ -1,6 +1,6 @@
--- net-snmp-5.1.2.orig/agent/mibgroup/mibII/interfaces.c --- a/agent/mibgroup/mibII/interfaces.c
+++ net-snmp-5.1.2/agent/mibgroup/mibII/interfaces.c +++ b/agent/mibgroup/mibII/interfaces.c
@@ -1598,6 +1612,10 @@ @@ -1550,6 +1550,10 @@ Interface_Scan_Init(void)
struct ifnet *nnew; struct ifnet *nnew;
char *stats, *ifstart = line; char *stats, *ifstart = line;
@ -11,7 +11,7 @@
if (line[strlen(line) - 1] == '\n') if (line[strlen(line) - 1] == '\n')
line[strlen(line) - 1] = '\0'; line[strlen(line) - 1] = '\0';
@@ -1631,7 +1649,7 @@ @@ -1583,7 +1587,7 @@ Interface_Scan_Init(void)
&coll) != 5)) { &coll) != 5)) {
if ((scan_line_to_use == scan_line_2_2) if ((scan_line_to_use == scan_line_2_2)
&& !strstr(line, "No statistics available")) && !strstr(line, "No statistics available"))

View File

@ -1,6 +1,6 @@
--- net-snmp-5.1.2.orig/local/Makefile.in --- a/local/Makefile.in
+++ net-snmp-5.1.2/local/Makefile.in +++ b/local/Makefile.in
@@ -58,7 +58,7 @@ @@ -100,7 +100,7 @@ tkmib.made: $(srcdir)/tkmib
mib2c.made: $(srcdir)/mib2c mib2c.made: $(srcdir)/mib2c
if test "x$(PERL)" != "x" ; then \ if test "x$(PERL)" != "x" ; then \
@ -9,9 +9,9 @@
else \ else \
touch mib2c.made; \ touch mib2c.made; \
fi fi
--- net-snmp-5.1.2.orig/mibs/Makefile.in --- a/mibs/Makefile.in
+++ net-snmp-5.1.2/mibs/Makefile.in +++ b/mibs/Makefile.in
@@ -43,11 +43,15 @@ @@ -48,11 +48,15 @@ NETSNMPMIBS = NET-SNMP-TC.txt NET-SNMP-M
UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \ UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt
@ -28,13 +28,13 @@
all: standardall all: standardall
--- net-snmp-5.1.2.orig/Makefile.top --- a/Makefile.top
+++ net-snmp-5.1.2/Makefile.top +++ b/Makefile.top
@@ -27,6 +27,7 @@ @@ -26,6 +26,7 @@ man8dir = $(mandir)/man8
snmplibdir = $(datadir)/snmp snmplibdir = $(datadir)/snmp
mibdir = $(snmplibdir)/mibs mibdir = $(snmplibdir)/mibs
persistentdir = @PERSISTENT_DIRECTORY@ persistentdir = @PERSISTENT_DIRECTORY@
+sysconfdir = @sysconfdir@ +sysconfdir = @sysconfdir@
DESTDIR = @INSTALL_PREFIX@ DESTDIR = @INSTALL_PREFIX@
INSTALL_PREFIX = @INSTALL_PREFIX@ INSTALL_PREFIX = $(DESTDIR)

View File

@ -1,6 +1,6 @@
--- net-snmp-5.1.2.orig/local/mib2c --- a/local/mib2c
+++ net-snmp-5.1.2/local/mib2c +++ b/local/mib2c
@@ -60,8 +60,9 @@ @@ -60,8 +60,9 @@ $currentlevel = -1;
if($ENV{MIB2C_DIR}) { if($ENV{MIB2C_DIR}) {
push @def_search_dirs, split(/:/, $ENV{MIB2C_DIR}); push @def_search_dirs, split(/:/, $ENV{MIB2C_DIR});
} }

View File

@ -1,6 +1,5 @@
diff -ruN net-snmp-5.4.1.orig/mibs/BGP4-MIB.txt net-snmp-5.4.1/mibs/BGP4-MIB.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/BGP4-MIB.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/BGP4-MIB.txt
+++ net-snmp-5.4.1/mibs/BGP4-MIB.txt 2007-09-20 16:30:52.000000000 +0200
@@ -0,0 +1,929 @@ @@ -0,0 +1,929 @@
+ BGP4-MIB DEFINITIONS ::= BEGIN + BGP4-MIB DEFINITIONS ::= BEGIN
+ +
@ -931,9 +930,8 @@ diff -ruN net-snmp-5.4.1.orig/mibs/BGP4-MIB.txt net-snmp-5.4.1/mibs/BGP4-MIB.txt
+ ::= { bgpMIBGroups 5 } + ::= { bgpMIBGroups 5 }
+ +
+ END + END
diff -ruN net-snmp-5.4.1.orig/mibs/BRIDGE-MIB.txt net-snmp-5.4.1/mibs/BRIDGE-MIB.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/BRIDGE-MIB.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/BRIDGE-MIB.txt
+++ net-snmp-5.4.1/mibs/BRIDGE-MIB.txt 2007-09-20 16:30:52.000000000 +0200
@@ -0,0 +1,1075 @@ @@ -0,0 +1,1075 @@
+BRIDGE-MIB DEFINITIONS ::= BEGIN +BRIDGE-MIB DEFINITIONS ::= BEGIN
+ +
@ -2010,9 +2008,8 @@ diff -ruN net-snmp-5.4.1.orig/mibs/BRIDGE-MIB.txt net-snmp-5.4.1/mibs/BRIDGE-MIB
+ ::= 2 + ::= 2
+ +
+END +END
diff -ruN net-snmp-5.4.1.orig/mibs/GNOME-SMI.txt net-snmp-5.4.1/mibs/GNOME-SMI.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/GNOME-SMI.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/GNOME-SMI.txt
+++ net-snmp-5.4.1/mibs/GNOME-SMI.txt 2007-09-20 16:33:55.000000000 +0200
@@ -0,0 +1,88 @@ @@ -0,0 +1,88 @@
+GNOME-SMI DEFINITIONS ::= BEGIN +GNOME-SMI DEFINITIONS ::= BEGIN
+ +
@ -2102,9 +2099,8 @@ diff -ruN net-snmp-5.4.1.orig/mibs/GNOME-SMI.txt net-snmp-5.4.1/mibs/GNOME-SMI.t
+-- more to come if necessary. +-- more to come if necessary.
+ +
+END +END
diff -ruN net-snmp-5.4.1.orig/mibs/OSPF-MIB.txt net-snmp-5.4.1/mibs/OSPF-MIB.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/OSPF-MIB.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/OSPF-MIB.txt
+++ net-snmp-5.4.1/mibs/OSPF-MIB.txt 2007-09-20 16:30:52.000000000 +0200
@@ -0,0 +1,2723 @@ @@ -0,0 +1,2723 @@
+OSPF-MIB DEFINITIONS ::= BEGIN +OSPF-MIB DEFINITIONS ::= BEGIN
+ +
@ -4829,9 +4825,8 @@ diff -ruN net-snmp-5.4.1.orig/mibs/OSPF-MIB.txt net-snmp-5.4.1/mibs/OSPF-MIB.txt
+ ::= { ospfGroups 13 } + ::= { ospfGroups 13 }
+ +
+END +END
diff -ruN net-snmp-5.4.1.orig/mibs/OSPF-TRAP-MIB.txt net-snmp-5.4.1/mibs/OSPF-TRAP-MIB.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/OSPF-TRAP-MIB.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/OSPF-TRAP-MIB.txt
+++ net-snmp-5.4.1/mibs/OSPF-TRAP-MIB.txt 2007-09-20 16:30:52.000000000 +0200
@@ -0,0 +1,443 @@ @@ -0,0 +1,443 @@
+OSPF-TRAP-MIB DEFINITIONS ::= BEGIN +OSPF-TRAP-MIB DEFINITIONS ::= BEGIN
+ +
@ -5276,9 +5271,8 @@ diff -ruN net-snmp-5.4.1.orig/mibs/OSPF-TRAP-MIB.txt net-snmp-5.4.1/mibs/OSPF-TR
+ +
+ +
+END +END
diff -ruN net-snmp-5.4.1.orig/mibs/RIPv2-MIB.txt net-snmp-5.4.1/mibs/RIPv2-MIB.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/RIPv2-MIB.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/RIPv2-MIB.txt
+++ net-snmp-5.4.1/mibs/RIPv2-MIB.txt 2007-09-20 16:30:52.000000000 +0200
@@ -0,0 +1,530 @@ @@ -0,0 +1,530 @@
+ RIPv2-MIB DEFINITIONS ::= BEGIN + RIPv2-MIB DEFINITIONS ::= BEGIN
+ +
@ -5810,9 +5804,8 @@ diff -ruN net-snmp-5.4.1.orig/mibs/RIPv2-MIB.txt net-snmp-5.4.1/mibs/RIPv2-MIB.t
+ "This group defines peer information for RIP-II systems." + "This group defines peer information for RIP-II systems."
+ ::= { rip2Groups 4 } + ::= { rip2Groups 4 }
+END +END
diff -ruN net-snmp-5.4.1.orig/mibs/SOURCE-ROUTING-MIB.txt net-snmp-5.4.1/mibs/SOURCE-ROUTING-MIB.txt --- /dev/null
--- net-snmp-5.4.1.orig/mibs/SOURCE-ROUTING-MIB.txt 1970-01-01 01:00:00.000000000 +0100 +++ b/mibs/SOURCE-ROUTING-MIB.txt
+++ net-snmp-5.4.1/mibs/SOURCE-ROUTING-MIB.txt 2007-09-20 16:30:52.000000000 +0200
@@ -0,0 +1,452 @@ @@ -0,0 +1,452 @@
+SOURCE-ROUTING-MIB DEFINITIONS ::= BEGIN +SOURCE-ROUTING-MIB DEFINITIONS ::= BEGIN
+ +

View File

@ -1,6 +1,6 @@
--- net-snmp-5.4.orig/FAQ 2006-11-25 00:34:18.000000000 +0100 --- a/FAQ
+++ net-snmp-5.4/FAQ 2006-11-25 00:37:09.000000000 +0100 +++ b/FAQ
@@ -98,7 +98,7 @@ @@ -99,7 +99,7 @@ TABLE OF CONTENTS
I don't understand the new access control stuff - what does it mean? I don't understand the new access control stuff - what does it mean?
How do I configure SNMPv3 users? How do I configure SNMPv3 users?
The 'createUser' line disappears when I start the agent. Why? The 'createUser' line disappears when I start the agent. Why?
@ -9,7 +9,7 @@
My new agent is ignoring the old snmpd.conf file. Why? My new agent is ignoring the old snmpd.conf file. Why?
Why am I getting "Connection refused"? Why am I getting "Connection refused"?
Why can't I see values in the UCDavis 'extensible' or 'disk' trees? Why can't I see values in the UCDavis 'extensible' or 'disk' trees?
@@ -630,7 +630,7 @@ @@ -643,7 +643,7 @@ How do I add a MIB to the tools?
There are two steps required to add a new MIB file to the tools. There are two steps required to add a new MIB file to the tools.
Firstly, copy the MIB file into the appropiate location: Firstly, copy the MIB file into the appropiate location:
@ -18,7 +18,7 @@
(which makes it available to everyone on the system) (which makes it available to everyone on the system)
or or
@@ -1158,7 +1158,7 @@ @@ -1177,7 +1177,7 @@ My traphandler script doesn't work when
If this is the case, then you can specify this interpreter If this is the case, then you can specify this interpreter
explicitly as part of the trap handle directive: explicitly as part of the trap handle directive:
@ -27,7 +27,7 @@
In this case, it's almost certain that you'll also In this case, it's almost certain that you'll also
need to give the full path to the traphandle script (as shown) need to give the full path to the traphandle script (as shown)
@@ -1232,7 +1232,7 @@ @@ -1251,7 +1251,7 @@ OK, what should I put in snmp.conf?
string to use. string to use.
Some of these (such as the MIB file location), might be best put in Some of these (such as the MIB file location), might be best put in
@ -36,7 +36,7 @@
/etc/snmp/snmp.conf) to apply to all users of the system. Others /etc/snmp/snmp.conf) to apply to all users of the system. Others
(particularly the SNMPv3 security settings), are more likely to refer (particularly the SNMPv3 security settings), are more likely to refer
to a particular user, and should go in a personal snmp.conf file to a particular user, and should go in a personal snmp.conf file
@@ -1455,7 +1455,7 @@ @@ -1476,7 +1476,7 @@ Why aren't my mib files being read in?
Alternatively, the tools may be looking in the wrong place. Alternatively, the tools may be looking in the wrong place.
@ -45,7 +45,7 @@
Again, this is set when the suite is first configured and compiled. Again, this is set when the suite is first configured and compiled.
This can be changed using the environmental variable 'MIBDIRS' This can be changed using the environmental variable 'MIBDIRS'
or the snmp.conf directive 'mibdirs'. or the snmp.conf directive 'mibdirs'.
@@ -2409,7 +2409,7 @@ @@ -2430,7 +2430,7 @@ How do I configure SNMPv3 users?
There are three ways to configure SNMPv3 users: There are three ways to configure SNMPv3 users:
@ -54,7 +54,7 @@
containing the line containing the line
createUser {myUser} MD5 {myPassword} DES createUser {myUser} MD5 {myPassword} DES
@@ -2422,7 +2422,7 @@ @@ -2443,7 +2443,7 @@ How do I configure SNMPv3 users?
net-snmp-config --create-snmpv3-user net-snmp-config --create-snmpv3-user
and follow the instructions. This will create an entry and follow the instructions. This will create an entry
@ -63,7 +63,7 @@
Then re-start the snmpd agent. Then re-start the snmpd agent.
3) Make sure the agent is running, and will respond to a suitable 3) Make sure the agent is running, and will respond to a suitable
@@ -2455,16 +2455,16 @@ @@ -2476,16 +2476,16 @@ The 'createUser' line disappears when I
@ -84,7 +84,7 @@
@@ -2477,7 +2477,7 @@ @@ -2498,7 +2498,7 @@ My new agent is ignoring the old snmpd.c
distribution), with the current release installed from the source. distribution), with the current release installed from the source.
The default location for this file with the basic distribution is The default location for this file with the basic distribution is

View File

@ -1,5 +1,5 @@
--- net-snmp-5.1.2.orig/EXAMPLE.conf.def --- a/EXAMPLE.conf.def
+++ net-snmp-5.1.2/EXAMPLE.conf.def +++ b/EXAMPLE.conf.def
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
############################################################################### ###############################################################################
# #
@ -55,7 +55,7 @@
access MyROGroup "" any noauth exact all none none access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none access MyRWGroup "" any noauth exact all all none
@@ -100,8 +106,8 @@ @@ -100,8 +106,8 @@ access MyRWGroup "" any noaut
# value of an object whose value is given here will fail with an error # value of an object whose value is given here will fail with an error
# status of notWritable. # status of notWritable.
@ -66,7 +66,7 @@
# Example output of snmpwalk: # Example output of snmpwalk:
# % snmpwalk -v 1 -c public localhost system # % snmpwalk -v 1 -c public localhost system
@@ -135,13 +141,13 @@ @@ -135,13 +141,13 @@ syscontact Me <me@somewhere.org>
# #
# Make sure mountd is running # Make sure mountd is running
@ -83,7 +83,7 @@
# A snmpwalk of the prTable would look something like this: # A snmpwalk of the prTable would look something like this:
# #
@@ -199,7 +205,7 @@ @@ -199,7 +205,7 @@ proc sendmail 10 1
# ARGS: optional arguments to be passed to the program # ARGS: optional arguments to be passed to the program
# a simple hello world # a simple hello world
@ -92,7 +92,7 @@
# Run a shell script containing: # Run a shell script containing:
# #
@@ -250,7 +256,7 @@ @@ -250,7 +256,7 @@ exec echotest /bin/echo hello world
# Check the / partition and make sure it contains at least 10 megs. # Check the / partition and make sure it contains at least 10 megs.
@ -101,7 +101,7 @@
# % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.DISKMIBNUM
# enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0 # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
@@ -279,7 +285,7 @@ @@ -279,7 +285,7 @@ disk / 10000
# 15MAX: Similar, but for 15 min average. # 15MAX: Similar, but for 15 min average.
# Check for loads: # Check for loads:
@ -110,7 +110,7 @@
# % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.LOADAVEMIBNUM
# enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1
@@ -365,7 +371,7 @@ @@ -365,7 +371,7 @@ load 12 14 14
# (commented out here since it requires that you place the # (commented out here since it requires that you place the
# script in the right location. (its not installed by default)) # script in the right location. (its not installed by default))
@ -119,8 +119,8 @@
# % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255 # % snmpwalk -v 1 -c public localhost .EXTENSIBLEDOTMIB.255
# enterprises.ucdavis.255.1 = "life the universe and everything" # enterprises.ucdavis.255.1 = "life the universe and everything"
--- net-snmp-5.1.2.orig/EXAMPLE-trap.conf --- /dev/null
+++ net-snmp-5.1.2/EXAMPLE-trap.conf +++ b/EXAMPLE-trap.conf
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
+############################################################################### +###############################################################################
+# +#

View File

@ -1,5 +1,5 @@
--- net-snmp-5.1.2-orig/agent/mibgroup/ieee802dot11.c 1970-01-01 01:00:00.000000000 +0100 --- /dev/null
+++ net-snmp-5.1.2-5/agent/mibgroup/ieee802dot11.c 2005-03-13 16:17:21.000000000 +0100 +++ b/agent/mibgroup/ieee802dot11.c
@@ -0,0 +1,4915 @@ @@ -0,0 +1,4915 @@
+/**************************************************************************** +/****************************************************************************
+* * +* *
@ -4916,8 +4916,8 @@
+ return ( changed ); + return ( changed );
+} +}
+ +
--- net-snmp-5.1.2-orig/agent/mibgroup/ieee802dot11.h 1970-01-01 01:00:00.000000000 +0100 --- /dev/null
+++ net-snmp-5.1.2-5/agent/mibgroup/ieee802dot11.h 2005-03-13 16:17:21.000000000 +0100 +++ b/agent/mibgroup/ieee802dot11.h
@@ -0,0 +1,730 @@ @@ -0,0 +1,730 @@
+/**************************************************************************** +/****************************************************************************
+* * +* *
@ -5649,8 +5649,8 @@
+WriteMethod write_dot11DiversitySelectionRx; +WriteMethod write_dot11DiversitySelectionRx;
+ +
+#endif /* _MIBGROUP_IEEE802DOT11_H */ +#endif /* _MIBGROUP_IEEE802DOT11_H */
--- net-snmp-5.1.2-orig/agent/mibgroup/iwlib.h 1970-01-01 01:00:00.000000000 +0100 --- /dev/null
+++ net-snmp-5.1.2-5/agent/mibgroup/iwlib.h 2005-03-13 16:17:21.000000000 +0100 +++ b/agent/mibgroup/iwlib.h
@@ -0,0 +1,502 @@ @@ -0,0 +1,502 @@
+/* +/*
+ * Wireless Tools + * Wireless Tools