update to new key ID
Updates for BFD mibs.
Fix for FreeBSD9 losing mib-modules list because of missing NL in sed input.
Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  Updates for BFD mibs.
Handle duplicates in a binary_array container

The CONTAINER_KEY_ALLOW_DUPLICATES setting is fundamentally flawed;
it really effectively meant "I promise I won't insert duplicates
so don't check at insert time".  However, the ip-forward-mib
sets this flag but relies on the duplicate prevention at insert
time under certain scenarios (e.g., multiple attachments to the
same subnet on MacOS), resulting in a loop in ip-forward-mib
in these scenarios.  So, now it means "check for duplicates at
getnext time" - the binary search will find an arbitrary one
of the entries with the same key, and when we've incremented
we have to check whether or not we've actually incremented past
any duplicates.  This costs an extra key compare per getnext.

If there's a scenario in the future where a MIB implementation
can really guarantee that it isn't inserting duplicates, we
might want to add a "CONTAINER_KEY_I_PROMISE_I_WONT_INSERT_DUPLICATES",
that disables the insertion check but doesn't perform the getnext
check.
Add a scalar object containing the number of processors seen by the agent. Placed this in the systemStats group for lack of an obviously better location. Updated UCD-SNMP-MIB accordingly.

Signed-off-by: Niels Baggesen <nba@users.sourceforge.net>
Added checks for printing variables with wrong types.

When -OQ command line argument is used, variable formatter preffers the type
of the varible parsed from a MIB file instead of checking type of the variable
as parsed from SNMP message.

This can lead to crashes when incoming packets contains a variable with
NULL type, while the MIB says the variable should be non-NULL, like Integer.
The formatter then tries to interpret the NULL (from packet) as Integer (from
MIB file).
Added test for sprint_realloc_variable with -OQ cmdline argument.
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  Added checks for printing variables with wrong types.
Merge branch 'V5-5-patches' into V5-6-patches

* V5-5-patches:
  Added checks for printing variables with wrong types.
Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  Added test for sprint_realloc_variable with -OQ cmdline argument.
  Added checks for printing variables with wrong types.
Add a debug message when skipping a key
Merge remote-tracking branch 'origin/V5-7-patches' into V5-7-patches
Empty initializers are (sadly) not part of C.
Stop using them.
Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Merge branch 'V5-5-patches' into V5-6-patches

* V5-5-patches:
  Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Ensure that fdset structure is resized sufficiently
to accomodate the specified socket ID.
Problem reported by Shiyalei.

git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@19066 06827809-a52a-0410-b366-d66718629ded
Fixed a Solaris-specific compiler warning.

git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@18029 06827809-a52a-0410-b366-d66718629ded