Hi,
Net-SNMP has implemented large fdsets in order to be able to work with
more than 64 (windows) or 1024 (linux) sockets in parallel. However,
there are several bugs in version 5.7.3 in file snmplib/large_fd_set.c
which are relevant only under windows (not cygwin) when more than 64
sockets are used.
We should use the pointer lfs_setptr in the structure
netsnmp_large_fd_set when setting, clearing or testing sockets in the
fdset, and the unix functions do so (and work well). However, the
windows functions use the "small fdset" structure lfs_set, and this can
crash and can cause wrong results.
For that reason, the bug is very easy to fix in replacing "lfs_set." by
"lfs_setptr->" in the three windows functions netsnmp_large_fd_setfd,
netsnmp_large_fd_clr and netsnmp_large_fd_is_set.
Best regards,
Andreas
--
Dr.-Ing. Andreas Rieke
Geschäftsführer
ISL Internet Sicherheitslösungen GmbH
Kaiserstrasse 78
D-58300 Wetter (Ruhr)
Tel.: +49 2335 96756-10
Fax: +49 2335 96756-50
Mobil: +49 177 4904469
E-Mail: andreas.ri...@isl.de
Website: www.isl.de <http://www.isl.de/>
Website: www.arp-guard.com <http://www.arp-guard.com/>
Geschäftsführer: Dr.-Ing. Andreas Rieke | Sitz: Wetter (Ruhr)
HRB 3816 | Amtsgericht Hagen | UStID-Nr. DE 201547313
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders