This is the mail archive of the
ecos-cvs@sourceware.org
mailing list for the ecos project.
ecos-opt/snmp/agent/current ChangeLog src/mibg ...
- From: jld at sourceware dot org
- To: ecos-cvs at ecos dot sourceware dot org
- Date: 21 May 2009 15:06:03 -0000
- Subject: ecos-opt/snmp/agent/current ChangeLog src/mibg ...
CVSROOT: /cvs/ecos
Module name: ecos-opt
Changes by: jld@sourceware.org 2009-05-21 15:06:03
Modified files:
snmp/agent/current: ChangeLog
snmp/agent/current/src/mibgroup/mibII: helpers.c
Log message:
* src/mibgroup/mibII/helpers.c (cyg_snmp_get_if): Rewrite it so that
when passed if_num<=0 it will no longer go into a 2^32 iteration
loop that walks through all of memory and then returns a rogue
pointer
* src/mibgroup/mibII/helpers.c (cyg_snmp_num_interfaces): Rewrite
it to to use the same (simpler, more obviously correct) loop
structure that cyg_snmp_get_if() now uses.