Package: net-snmp / 5.7.2.1+dfsg-1

Metadata

Package Version Patches format
net-snmp 5.7.2.1+dfsg-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
02_statistics.patch | (download)

agent/mibgroup/mibII/interfaces.c | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

---
03_makefiles.patch | (download)

Makefile.in | 4 2 + 2 - 0 !
Makefile.top | 1 1 + 0 - 0 !
local/Makefile.in | 2 1 + 1 - 0 !
mibs/Makefile.in | 6 3 + 3 - 0 !
4 files changed, 7 insertions(+), 6 deletions(-)

---
05_searchdirs.patch | (download)

local/mib2c | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

---
06_extramibs.patch | (download)

mibs/GNOME-SMI.txt | 88 88 + 0 - 0 !
1 file changed, 88 insertions(+)

---
07_docfiles.patch | (download)

EXAMPLE.conf.def | 2 1 + 1 - 0 !
FAQ | 22 11 + 11 - 0 !
2 files changed, 12 insertions(+), 12 deletions(-)

---
26_kfreebsd.patch | (download)

agent/mibgroup/hardware/cpu/cpu_sysctl.c | 10 5 + 5 - 0 !
1 file changed, 5 insertions(+), 5 deletions(-)

---
27_kfreebsd_bug625985.patch | (download)

agent/mibgroup/hardware/memory/memory_freebsd.c | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

---
60_libsensors_api.patch | (download)

agent/mibgroup/ucd-snmp/lmSensors.c | 162 78 + 84 - 0 !
1 file changed, 78 insertions(+), 84 deletions(-)

---
61_vacm_missing_dependency_check.patch | (download)

agent/agent_read_config.c | 3 3 + 0 - 0 !
apps/snmptrapd_auth.c | 1 1 + 0 - 0 !
2 files changed, 4 insertions(+)

---
62_add_lib_cflags.patch | (download)

net-snmp-config.in | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

---
64_missing_lib.patch | (download)

apps/Makefile.in | 6 4 + 2 - 0 !
configure.ac | 3 3 + 0 - 0 !
2 files changed, 7 insertions(+), 2 deletions(-)

---
fix_snmpcheck_perl_path.patch | (download)

local/snmpcheck.def | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix snmpcheck shebang
 Just don't use /usr/local/bin/perl...

fix_regular_expression.patch | (download)

python/setup.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix regular expression mismatching
 setup.py would find library via net-snmp-config, however, its result also 
 matches to "-L/usr/lib/x86_64-linux-gnu" and return "inux-gnu" as library
 in Debian/Ubuntu enabling Multi-Arch environtment as below.
>>> import os
>>> import re
>>> import string
>>> import sys
>>> netsnmp_libs="-Wl,-z,relro -Wl,-z,now -L/usr/lib/x86_64-linux-gnu -lnetsnmp -lcrypto -lm"
>>> print netsnmp_libs
-Wl,-z,relro -Wl,-z,now -L/usr/lib/x86_64-linux-gnu -lnetsnmp -lcrypto -lm
>>> re.findall(r"-l(\S+)", netsnmp_libs)
['inux-gnu', 'netsnmp', 'crypto', 'm']

 Just inserting space will fix this.
>>> re.findall(r" -l(\S+)", netsnmp_libs)
['netsnmp', 'crypto', 'm']

snmptranslate.1.patch | (download)

man/snmptranslate.1.def | 22 11 + 11 - 0 !
1 file changed, 11 insertions(+), 11 deletions(-)

 fix hyphen-used-as-minus-sign
 fix lintian "hyphen-used-as-minus-sign" warnings.

fix_spelling_error.patch | (download)

apps/encode_keychange.c | 2 1 + 1 - 0 !
apps/snmpnetstat/inet.c | 2 1 + 1 - 0 !
apps/snmpnetstat/inet6.c | 2 1 + 1 - 0 !
apps/snmpusm.c | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 fix spelling error
fix_logging_option.patch | (download)

man/snmpd.8.def | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix man description
fix_typo_in_snmpd.conf.patch | (download)

EXAMPLE.conf.def | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix typo
fix_man_error.patch | (download)

man/mib2c.conf.5.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix man error
 
 - mib2c.conf
   http://lintian.debian.org/tags/manpage-has-bad-whatis-entry.html


after_RFC5378 | (download)

mibs/rfclist | 30 0 + 30 - 0 !
1 file changed, 30 deletions(-)

 exclude under rfc5378 modules
fix_manpage has errors_break_line.patch | (download)

man/netsnmp_config_api.3.def | 2 1 + 1 - 0 !
man/netsnmp_mib_api.3.def | 2 1 + 1 - 0 !
man/snmpcmd.1.def | 2 1 + 1 - 0 !
3 files changed, 3 insertions(+), 3 deletions(-)

 fix manpage error

 see http://lintian.debian.org/tags/manpage-has-errors-from-man.html

add_rocommunity6.patch | (download)

EXAMPLE.conf.def | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

---
fix_manpage has errors from man.patch | (download)

man/variables.5.def | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 variables(5) lines over 80 width

$ LC_ALL=C MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z man/variables.5.def > /dev/null
 
 cause error.

agentx crash.patch | (download)

agent/mibgroup/agentx/master.c | 5 5 + 0 - 0 !
agent/mibgroup/agentx/master_admin.c | 9 7 + 2 - 0 !
2 files changed, 12 insertions(+), 2 deletions(-)

 fix snmpd crash via agentx connection
 
 taken from Fedora, net-snmp-5.7-agentx-crash.patch

bz729738 - net-snmp dumps core in netsnmp_oid_find_prefix
bz1038011 - net-snmp: snmpd crashes/hangs when AgentX subagent times-out

commit f9304c83f76202db0e684269ca1af32e43cd9db4
TrapReceiver.patch | (download)

perl/TrapReceiver/TrapReceiver.xs | 10 5 + 5 - 0 !
1 file changed, 5 insertions(+), 5 deletions(-)

 fixes perl trap handler segfault with old perl (e.g. perl 5.8.8) (cve-2014-2285)
ifmib.patch | (download)

agent/mibgroup/if-mib/data_access/interface_linux.c | 42 39 + 3 - 0 !
1 file changed, 39 insertions(+), 3 deletions(-)

---
Fix kfreebsd builds with kernel headers 10.patch | (download)

include/net-snmp/system/kfreebsd.h | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 [patch] fix kfreebsd builds with kernel headers >= 10

This fixes warnings like

In file included from ../../include/net-snmp/net-snmp-config.h:2085:0,
                 from host/data_access/swinst_apt.c:5:
../../include/net-snmp/system/kfreebsd.h:5:0: warning: "__FreeBSD_version" redefined [enabled by default]
 #define __FreeBSD_version __FreeBSD_kernel_version
 ^
In file included from /usr/include/sys/kern/param.h:1:0,
                 from /usr/include/osreldate.h:1,
                 from ../../include/net-snmp/system/kfreebsd.h:4,
                 from ../../include/net-snmp/net-snmp-config.h:2085,
                 from host/data_access/swinst_apt.c:5:
/usr/include/sys/kglue/sys/param.h:67:0: note: this is the location of the previous definition
 #define __FreeBSD_version 1000510 /* Master, propagated to newvers */

and makes agent/mibgroup/host/data_access/swrun_kinfo.c use the modern
kinfo_proc field names.

Bug-Debian: http://bugs.debian.org/753144

fix request id 0.patch | (download)

snmplib/snmp_api.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 snmp get requests with request id 0 triggered a memory leak that
 is fixed by this patch
CVE 2014 3565.patch | (download)

snmplib/mib.c | 270 135 + 135 - 0 !
1 file changed, 135 insertions(+), 135 deletions(-)

 patch for cve-2014-3565
 taken from http://sourceforge.net/p/net-snmp/official-patches/48/