Package: net-snmp / 5.7.3+dfsg-5

Metadata

Package Version Patches format
net-snmp 5.7.3+dfsg-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
pingmib_perl_path | (download)

perl/SNMP/examples/pingmib.pl | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use perl path directly
 Original script used /usr/bin/env perl to find the interpreter. This is
 against Debian policy 10.4
02_statistics.patch | (download)

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

 _statistics

This patch ignores interfaces without statistics.

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(-)

 _makefiles

Makefile patch to include libwrap and libsensors libraries and install extra
MIB files.

05_searchdirs.patch | (download)

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

 _searchdirs

Makefile patch to include libwrap and libsensors libraries and install extra
MIB files.

06_extramibs.patch | (download)

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

 _extramibs

Extra MIB files shipped with Debian.

07_docfiles.patch | (download)

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

 _docfiles

Patch documentation files to change paths to Debian specific locations.

26_kfreebsd.patch | (download)

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

 _kfreebsd

Preliminary support for kfreebsd.

27_kfreebsd.patch | (download)

agent/mibgroup/mibII/icmp.h | 1 1 + 0 - 0 !
agent/mibgroup/mibII/kernel_sysctl.c | 6 6 + 0 - 0 !
2 files changed, 7 insertions(+)

 _kfreebsd


60_libsensors_api.patch | (download)

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

 _libsensors_api

Patch from Jonathan Nieder <jrnieder@gmail.com> to update lmsensors API to libsensors4.

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(+)

 _vacm_missing_dependency_check

Do not call vacm_standard_views() if the corresponding module was not compiled.
(applied upstream in changeset 19116)

62_add_lib_cflags.patch | (download)

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

 _add_lib_cflags

Patch to add option "--base-lib-cflags" to net-snmp-config. This flag returns options needed to link
against libnetsnmp. In particular, no perl specific options are provided.

It was reported in
"libsnmp-base: forcing perl headers in net-snmp-config --cflags breaks perl builds"
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502806

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(-)

 _missing_lib


fix_snmpcheck_perl_path.patch | (download)

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

 fix_snmpcheck_perl_path

fix_regular_expression.patch | (download)

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

 fix_regular_expression

>>> 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(-)

 snmptranslate.1

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_logging_option


fix_typo_in_snmpd.conf.patch | (download)

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

 fix_typo_in_snmpd.conf


fix_man_error.patch | (download)

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

 fix_man_error

after_RFC5378 | (download)

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

 after_rfc5378


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-has-errors_break_line

 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(+)

 add_rocommunity6


fix_manpage has errors from man.patch | (download)

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

 fix_manpage-has-errors-from-man

$ 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(-)

 agentx-crash

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

commit f9304c83f76202db0e684269ca1af32e43cd9db4
fix request id 0.patch | (download)

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

 fix-request-id-0


0025 Bug 788964 net snmp snmp_pdu_parse DoS.patch | (download)

snmplib/snmp_api.c | 55 28 + 27 - 0 !
1 file changed, 28 insertions(+), 27 deletions(-)

 bug#788964: net-snmp snmp_pdu_parse() dos

taken patch from https://sourceforge.net/p/net-snmp/code/ci/f23bcd3ac6ddee5d0a48f9703007ccc738914791/

0026 fix Bug 785380 incorrect date format.patch | (download)

local/traptoemail | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 fix bug#785380 incorrect date format


0027 fix 455707 traptoemail use FQDN.patch | (download)

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

 fix #455707 traptoemail use fqdn


let_perl_access_engineid.diff | (download)

perl/SNMP/SNMP.pm | 21 21 + 0 - 0 !
perl/SNMP/SNMP.xs | 44 44 + 0 - 0 !
2 files changed, 65 insertions(+)

 let_perl_access_engineid

===================================================================

fix_perl_bulk_gets.diff | (download)

perl/SNMP/SNMP.pm | 53 24 + 29 - 0 !
1 file changed, 24 insertions(+), 29 deletions(-)

 fix_perl_bulk_gets

===================================================================

do_not_callback_for_failed_reports.diff | (download)

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

 do_not_callback_for_failed_reports

===================================================================

callback_print.diff | (download)

perl/SNMP/SNMP.xs | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 callback_print


fix_engineid_reprobe.diff | (download)

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

 fix_engineid_reprobe

===================================================================

0001 Remove U64 typedef.patch | (download)

agent/mibgroup/if-mib/ifXTable/ifXTable.c | 16 8 + 8 - 0 !
agent/mibgroup/if-mib/ifXTable/ifXTable.h | 48 24 + 24 - 0 !
agent/mibgroup/if-mib/ifXTable/ifXTable_interface.c | 32 16 + 16 - 0 !
agent/mibgroup/ip-mib/data_access/systemstats_common.c | 2 1 + 1 - 0 !
agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.c | 28 14 + 14 - 0 !
agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_data_get.h | 28 14 + 14 - 0 !
agent/mibgroup/ip-mib/ipIfStatsTable/ipIfStatsTable_interface.c | 56 28 + 28 - 0 !
agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.c | 28 14 + 14 - 0 !
agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable.h | 921 63 + 858 - 0 !
agent/mibgroup/ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface.c | 56 28 + 28 - 0 !
include/net-snmp/data_access/ipstats.h | 42 21 + 21 - 0 !
include/net-snmp/library/int64.h | 34 16 + 18 - 0 !
snmplib/int64.c | 38 19 + 19 - 0 !
snmplib/read_config.c | 6 3 + 3 - 0 !
testing/fulltests/unit-tests/T015int64_clib.c | 10 5 + 5 - 0 !
15 files changed, 274 insertions(+), 1071 deletions(-)

 [patch] remove u64 typedef

The U64 typedef conflicts with a typedef in a Perl header file. Hence
remove the U64 typedef from the Net-SNMP header files. This patch does
not modify the Net-SNMP ABI.

0001 CHANGES BUG 2712 Fix Perl module compilation.patch | (download)

perl/ASN/Makefile.PL | 4 1 + 3 - 0 !
perl/Makefile.PL | 4 1 + 3 - 0 !
perl/OID/Makefile.PL | 5 1 + 4 - 0 !
perl/SNMP/Makefile.PL | 5 1 + 4 - 0 !
perl/TrapReceiver/Makefile.PL | 5 1 + 4 - 0 !
perl/agent/Makefile.PL | 5 1 + 4 - 0 !
perl/agent/Support/Makefile.PL | 5 1 + 4 - 0 !
perl/agent/default_store/Makefile.PL | 5 1 + 4 - 0 !
perl/default_store/Makefile.PL | 6 1 + 5 - 0 !
9 files changed, 9 insertions(+), 35 deletions(-)

 [patch] changes: bug: 2712: fix perl module compilation

Avoid that building the Net-SNMP Perl modules fails as follows:

ERROR from evaluation of /sources/net-snmp-5.7.3/perl/ASN/Makefile.PL: Bizarre \ copy of HASH in list assignment at /usr/lib/perl5/site_perl/5.24.0/Carp.pm line\ 229.

See also https://sourceforge.net/p/net-snmp/bugs/2712/.

Port OpenSSL 1.1.0 with support for 1.0.2.patch | (download)

apps/snmpusm.c | 43 36 + 7 - 0 !
configure.d/config_os_libs2 | 6 0 + 6 - 0 !
snmplib/keytools.c | 13 6 + 7 - 0 !
snmplib/scapi.c | 17 5 + 12 - 0 !
4 files changed, 47 insertions(+), 32 deletions(-)

 [patch] port openssl 1.1.0 with support for 1.0.2

Initial support for OpenSSL 1.1.0

Changes by sebastian@breakpoint.cc:
- added OpenSSL 1.0.2 glue layer for backwarts compatibility
- dropped HAVE_EVP_MD_CTX_CREATE + DESTROY and added a check for OpenSSL
  version instead (and currently 1.0.2 is the only one supported).

BTS: https://bugs.debian.org/828449
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

perl parallel build.patch | (download)

Makefile.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 makefile: compile perl after library

During a parallel build the perl module is made without linking
to the non-completed library which makes a useless perl module.

This minor change to the Makefile means the perl module is made
after the library is made.

Closes: #894626
Thanks to Gregor Herrmann for the patch.

snmpwalk_args_in_snmpcheck | (download)

local/snmpcheck.def | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 correct snmpwalk args in snmpcheck

snmpcheck used the old command line arguments for snmpwalk giving an
error and no data.

Closes: #898197

References:
 https://bugs.kali.org/view.php?id=4655

CVE 2018 18065.patch | (download)

agent/helpers/table.c | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 changes: bug: 2743: snmpd crashes when receiving a getnext pdu with
 multiple Varbinds
snmptrapd_mysql_init | (download)

apps/snmptrapd_sql.c | 7 7 + 0 - 0 !
configure.d/config_os_libs2 | 4 2 + 2 - 0 !
2 files changed, 9 insertions(+), 2 deletions(-)

 snmptrapd: compile against mariadb 10.2+
 MariaDB 10.2 and above broke the init API