Commit graph

56 commits

Author SHA1 Message Date
adam
2d283a77ce Changes 5.4.3:
snmpd:
  - Change default AgentX target from 0.0.0.0:705 to localhost:705
  - Fix CVE-2008-4309 (GETBULK issue reported by Oscar Mira-Sanchez)
  - Fix handling of multiple matching VACM entries
    (Use the "best" match, rather than the first one).
        Note that this could potentially affect the behaviour of
        existing access control configurations.
  - Latch large-disk statistics at 2Tb (rather than wrapping)

Linux:
  - Fix build on modern distributions (using rpm-4.6)

Windows:
  - Fix various builds (recent MSVC, MinGW, IPv6, winExtDLL)
2010-07-20 08:33:44 +00:00
adam
eb31036b84 Added patches, courtesy of Mike Bowie:
* Address changes in sysctl() storage, which has yielded values such as
  IP-MIB::ipForwarding.0 invalid.
* RAM reporting on 64-bit systems.
2010-05-11 04:39:54 +00:00
apb
8fd517ac26 regen distinfo after editing comments in a patch file 2009-03-10 18:36:33 +00:00
apb
efb717e3a2 Some systems define ifnet.if_lastchange as struct timespec (with
a tv_nsec field measured in nanoseconds), while other systems
define it as struct timeval (with a tv_usec field measured in
microseconds).  Add a configure test and conditional code in
agent/mibgroup/mibII/interfaces.c.orig.  This should fix PR 40990.
Bump PKGREVISION to 2.
2009-03-10 18:30:44 +00:00
tron
72d6df58f2 Add a patch from the "net-snmp" repository to close the vulnerability
reported in SA33884/CVE-2008-6123.
2009-02-15 11:31:51 +00:00
adam
c57017f418 Changes 5.4.2.1:
snmpd:
- SECURITY ISSUE: A bug in the getbulk handling code could let
  anyone with even minimal access crash the agent.
2008-11-02 08:30:07 +00:00
joerg
b35ef6ce2f Fix build on DragonFly. From PR 39566. 2008-09-18 13:40:10 +00:00
adam
d872659bfa Changes 5.4.2:
snmplib:
- [PATCH 1921861]: Avoid endless loop after truncating 64bit int
- Better handling of CONTAINER_INSERT failures with multiple indices

snmpd:
- [PATCH 2023633]: add SCTP-MIB implementation (Linux only)
- suppress annoying "registration != duplicate" warning for root oids

build:
- [BUG 2023803]: Compilation problems on HP-UX 11.31
- Update to libtool 1.5.26

AIX:
- Add support for AIX 6.x.
2008-09-08 12:58:09 +00:00
adam
af49cad5c1 Changes 5.4.1.2:
* An increment only in the version number that was failing to be
  reported properly by the tools.

Changes 5.4.1.1:
* SECURITY BUG: A portion of SNMPv3 code had significantly weakened
  authentication cryptography and unauthenticated access to a system
  is a possibility.
* It is critical that all users update their installations bases
  IMMEDIATELY.
* If you were only using SNMPv1 or SNMPv2c you were already insecure
  beyond a level that this vulnerability affects.
2008-07-15 09:14:01 +00:00
christos
75ccb77fe3 bump version for new tcp stats 2008-06-28 16:07:08 +00:00
tron
fce576957b Add patch for CVE-2008-0960 from the Net-SNMP project page on Sourceforge. 2008-06-12 13:32:23 +00:00
tron
ca02394a17 Combine the to patches for "agent/mibgroup/mibII/ip.c" to make this
actually build.
2008-06-06 16:18:03 +00:00
christos
8f06e2a229 PR/36978: Hasso Tepper: Make net-snmp work on dragonfly.
While I am here make it run again on NetBSD (hi clown boy)
2008-06-05 19:09:41 +00:00
tron
4c741e3b2e Add patch from the Net-SNMP SVN repository to fix a buffer overflow in
the Perl SNMP module reported in SA30187.
2008-05-18 11:59:54 +00:00
seb
b068169142 Fix floating point exception on NetBSD/sparc64 by applying the same
fix (and error checking) on
agent/mibgroup/hardware/memory/memory_netbsd.c:netsnmp_mem_arch_load()
via new patch file patch-ah as the one applied on
agent/mibgroup/ucd-snmp/memory_netbsd1.c:var_extensible_mem() by
patch file patch-es. Sorry I missed this in november 2006...

Bump PKGREVISION to 1.
2008-01-03 19:10:09 +00:00
joerg
fa8a956e56 Remove dragonfly.h, it is included upstream now.
Restore patch-dt (MIB_SYSTEM_LIBS), still needed for DragonFly.
2007-08-12 13:36:36 +00:00
adam
d695e6ce90 Chagesn 5.4.1:
snmplib:
  - [BUG 1619827]: link libraries against needed external libraries
  - [PATCH 1616912]: fix memory leak in UDP transport code
  - [PATCH 1592706]: fix memory leak when cloning varbinds
  - Change snmp_sess_add_ex to consistently close and delete the
    transport argument on failure, earlier the liveness of the
    transport argument was undecided.
snmpd:
  - [BUG 1558823]: fix ipAddressTable memory leak
  - [BUG 1596638]: fix memory leak in ipCidrRouteTable, inetCidrRouteTable
  - [BUG 1611524]: fix tcp connection table file descriptor leak
  - handle row deletion issues in dataset tables
  - [BUG 1712988]: default and configurable maximum number of
    varbinds returnable to a GETBULK request.
  - [PATCH 1666737]: include ipv6 counts in
    udpInDatagrams, udpNoPorts, udpInErrors, udpOutDatagrams
  - [PATCH 1700157]: fixes ordering of exec tokens in the resulting mib tree
  - [PATCH 1719253]: fix skipNFSInHostResources so it does not break on the
    second walk of the table.
perl:
  - link Perl modules against the exact set of libraries needed
  - [BUG 1619827]: properly link against libperl when configured with --enable-as-needed
  - [PATCH 1725049]: fix bulkwalk in cases of non-repeater
python:
  - [PATCH 1716114]: Let python build in the Net-SNMP source tree
MacOSX:
  - [PATCH 1600522]: CPU Hardware Abstraction Layer (HAL)
    implementation for mach/darwin
  - IF-MIB rewrite now enabled by default
Win32:
  - fix AES support
  - [PATCH 1706344]: fix compilation with cygwin
IRIX:
  - [PATCH 1709748]: Optimized IRIX cpu stats
AIX:
  - Fix default shared library building instead of forcing static use
FreeBSD:
  - [BUG 1633483]: Support CPU HAL on FreeBSD4.x
2007-08-11 11:05:56 +00:00
seb
22ed3ea8ad Fix build on NetBSD-current which dropped MFSNAMELEN: pretend this CPP macro
is still there.

Bump PKGREVISION to 2.
2007-08-10 23:37:02 +00:00
seb
183e36fad8 Fix build on recent NetBSD current:
net/route.h needs to be included before netinet6/in6_pcb.h.h and
net/if.h needs to be included before netinet6/in6_var.h.

While here add a patch file on the source of the configure script
which IMHO should have been added earlier.

Bump PKGREVISION to 1.

Note: I supposed the libdes related hunk in patches/patch-af had
been generated by an older than 2.59 autoconf script and carried
over from one net-snmp version update to the next.  This would
explain the slight differences about this hunk between the revision
I'm committing and the previous one.
2007-05-20 13:55:28 +00:00
joerg
c39b7c9cca Fix DragonFly build changes. I have no clue to add an optional file
into the build system, so override cpu_nlist on DragonFly.
2007-02-05 19:18:37 +00:00
adam
daec5add6c Changes 5.4:
- The default configuration now enables embedded Perl and the Perl
  modules by default when possible unless explicitly disabled. You
  may use the --disable-embedded-perl and --without-perl-modules
  configure options, respectively, to revert to the former default
  configuration.
2007-02-05 12:06:16 +00:00
seb
a3d047d839 Apply patch from net-snmp CVS repository to fix Perl module SNMP's bulkwalk
function.

- patch from
http://net-snmp.cvs.sourceforge.net/net-snmp/net-snmp/perl/SNMP/SNMP.xs?r1=5.50.2.6&r2=5.50.2.7&view=patch&pathrev=V5-3-patches
- revision log
http://net-snmp.cvs.sourceforge.net/net-snmp/net-snmp/perl/SNMP/SNMP.xs?view=log&pathrev=V5-3-patches#rev5.50.2.7
- bug reference
http://sourceforge.net/tracker/?func=detail&atid=112694&aid=1533078&group_id=12694

Bump PKGREVISION to 2
2006-10-18 22:37:46 +00:00
rillig
45acd6da92 Removed an RCS Id. 2006-10-11 19:22:02 +00:00
rillig
5ade40731f Fixed "test ==". 2006-10-11 19:15:19 +00:00
seb
66cee1c2f5 Fix a NetBSD/sparc64 bug: give sysctl() a pointer on a size_t not on an int!
While here check for sysctl() return value.
Now snmpd on NetBSD/sparc64 should report more meaningful values
for OIDs like UCD-SNMP-MIB::memAvailReal.0.

Bump PKGREVISION.
2006-10-02 00:09:55 +00:00
seb
0e100bca2b Split LP64 related patch file (patch-ea) from christos@ so that there is
one patched file per patch file.
2006-10-01 20:08:29 +00:00
joerg
091bb3e133 Don't use bmake feature in Makefile, use MAKE_ENV instead. 2006-09-24 15:04:35 +00:00
christos
419f650d42 Fix a crapload of 64 bit inconsistencies (int <-> ptr, int * <-> size_t *)
This now has a chance to work on sparc64.
2006-09-15 20:13:53 +00:00
joerg
2002ad978d Revive patch-dt for the sake of DragonFly. 2006-08-22 14:06:32 +00:00
adam
9740c2ae4e DiskIO fix, courtesy of Jan Andres 2006-08-11 20:40:36 +00:00
adam
da3267e55c Fix building on Darwin (and some other platforms?) 2006-07-30 06:38:10 +00:00
adam
f0c239fe26 Changes 5.3.1:
snmpd:
   - fix trap processing from SMUX peers
   - fix disman/event monitoring crashes
   - fix bug 1399369: ifNumber broken
   - fix re-init of daemons after SIGHUP
 snmptrapd:
   - fix bug 1420758/1458815: snmptrapd aborts/loops in select()
   - fix re-init of daemons after SIGHUP
 snmplib:
   - fix OID lookups for fully qualified object names (eg .iso.org)
 snmpusm:
   - performance improvement when changing localized keys
 perl:
   - The perl modules now check to make sure they're building
     against the proper Net-SNMP version.
 misc:
   - Coverity fixes
2006-07-29 16:48:27 +00:00
christos
c39f292a69 regen 2006-06-19 13:46:36 +00:00
christos
8faf9c8aba - don't use getfsstat, use getvfsstat.
- add code to do disk i/o statistics for NetBSD and enable it.
2006-06-17 17:20:56 +00:00
joerg
fd121328ce Add DragonFly support. Bump revision due to PLIST changes. 2006-03-19 22:03:29 +00:00
rillig
e592da2716 Removed the unconditional dependency to bash. Also removed the bashisms
from the mib2c-update program. Bumped PKGREVISION.
2006-03-11 16:59:54 +00:00
minskim
f5825cacf3 Remove a duplicate case value on Darwin 8.x. 2006-03-08 02:47:13 +00:00
adam
a4dca0bf59 Changes 5.3.0.1:
*** Security Fix ***

Changes 5.3:
*** Important Notes ***

    Several very significant changes have been made in Net-SNMP for this
    release that warrant special attention.

    - shared library version number no longer matches the release number. We
      now follow the versioning scheme recommended by libtool. For the 5.3
      release this means that the libraries now have a SONAME ending with
      ".so.10", e.g. libnetsnmp.so.10.

    - snmpd has not been truncating log files at startup, as documented in
      the man pages, for a while now. This default behaviour has been restored.
      Please use the '-A' flag if you want to continue appending to your log
      files at startup.

    - snmptrapd will no longer accept all traps by default. It must be
      configured with authorized SNMPv1/v2c community strings and/or SNMPv3
      users. Non-authorized traps/informs will be dropped.

    - Due to a copyright statement that didn't allow modifications,
      snmpnetstat has been completely rewritten.  The new version now
      accepts the same command-line options as the other tools, which
      has introduced a number of incompatible changes.  However, it
      does now finally support SNMPv3.
2006-01-24 22:16:55 +00:00
grant
938e7f9843 fix a couple of broken #ifdefs, making this build on Solaris. 2005-10-18 04:48:51 +00:00
rtr
40763894f0 make net-snmp build on darwin 8.2.0.
these patches shouldn't break netbsd.
2005-07-31 02:30:17 +00:00
adam
6c55478735 Changes 5.2.1.2:
* Security fix: denial of serivce when stream sockets are used
2005-07-08 07:49:27 +00:00
tron
e125f51d8f Replace "fixproc" script with version from "net-snmp" CVS respository.
This fixes the security problem documented in SA15471. Bump package
revision because of this change.
2005-05-25 13:49:10 +00:00
adam
be7d50fb4d Changes 5.2.1:
Fixes:
  Building:
    - configure --disable-snmpv2c now works
    - fix make test tests for rfc1213
    - bug 1049607: net-snmp-config --compile-subagent broken

  library:
    - bug 1084413: Can't disable file logging
    - bug 1072406: invalid operator precedence in opendir()

  agent library:
    - disconnected AgentX subagents now reconnect with correct context
    - fix table_array row insert/delete during set processing

  agent:
    - don't override clientAddr setting for local trapsinks
    - bug 1088765: Agent fails to send traps to remote target
    - bug 1034008: memory leak using SET for table_dataset
    - patch 1052460: fix agent deadlock on exec
    - bug 1055781: get-next fails to step into interfaces group correctly
    - bug 1056760: agent ignores ifspeed, type settings in snmpd.conf
    - bug 1062986: pass and pass_persist fail and crash snmpd
    - fix snmpd.conf table token to handle augments tables

  snmptrapd:
    - bug 1085981: snmptrapd complains about logging and access control
    - bug 1040711: snmptrapd: SIGHUP duplicates traphandlers (repeatedly)

  MFD:
    - Misc updates to MFD templates
    - add auto-handling of cache update for row insert/delete

Ports:
  - Win32
     - fixes for compiling without the Microsoft PSDK installed
     - fix Win32 getenv crash
  - Mac OS X compile error fix
  - HP-UX configure now detects and won't use unavailable function
  - Linux
     - patch 1055036: if-mib init order fix
     - patch 1057057: ipSystemStatsTable index fix, add ipv6
     - patch 1073897: fix if-mib data access 64bit counter wrap detection

MIBs:
  - update IP-FORWARD-MIB from an ID set to become an RFC
2005-03-30 12:10:58 +00:00
agc
b12d62efb5 Add RMD160 digests. 2005-02-24 12:13:41 +00:00
adam
7f93dee00c Changes 5.1.2:
* Minor improvements to snmpdelta
* Minor improvements to snmpnetstat (IPv6 output)
* Fixes
2004-08-13 11:28:49 +00:00
thorpej
5325c7699c In snmp_vars.h, use in_addr_t rather than uint32_t for ipaddr_return; the
former is provided by system or private header files, and the latter may
not be.
2004-07-10 17:59:17 +00:00
adam
2cb098d8f0 Changes 5.1.1:
New:
  - test suite supports testing over other transports (tcp, udp6, unix, ...)
    (see the -P switch to the testing/RUNTESTS script)
  - Solaris supports the use of it's PKCS#11 library for supporting
    cryptographic functions (OpenSSL isn't required if PKCS#11 is available)
    (see configure's --with-pkcs flag)
Fixes:
  - Improvements on 64 bit architectures.
  - A few minor memory leaks fixed.
  - An extremely large number of minor bug fixes.
  - Many perl module specific bug fixes.
  - snmpd will safely handle more signals.
Ports:
  - Many many significant Windows improvements.
    - A win32 build script in win32/build.pl
    - Support for the MinGW compiler
    - (see the README.win32 file for details on new ports)
    - Various helpful win32/*.bat files for installation, etc.
  - Some linux 2.6 support improvements
2004-05-14 13:30:34 +00:00
tron
6f8880c048 Make this build under NetBSD 2.0D and above with statvfs(2). 2004-04-26 17:39:00 +00:00
christos
31a9fe10a0 Fix configure to look for des_cbc_encrypt in -ldes.
I did not commit all 7K lines of diff that autoconf produced because
of the changed line numbers, just the relevant ones.
2004-04-22 16:50:02 +00:00
danw
c074d6d70a Make this build on Darwin. pkg/23325 2004-04-14 21:48:49 +00:00