We have a SNMP running with Sub-agents and are using the "snmp_select_info" call to find the number of file descriptors and then perform a select call to get the data. However, when we run a OMAPI thread that communicates with a DHCP server over TCP connection to get lease information the "snmp_select_info" call doesn't provide the correct number of socket descriptors and so fails to communicate with our snmp manager.
As soon as we remove the OMAPI thread interface the "snmp_select_info" works fine. We have tried modifying the OMAPI default port from 7911 to some other value, this has had no effect. The snmp agentX and OMAPI run in separate threads, can see the "snmp_select_info" being called, but the select fails, yet the OMAPI is fine in getting the lease information from the DHCP server. The OMAPI is run as synchronous within its own thread. It seems the number of sockets is not being updated "numfds" and "fdset" in the call to "snmp_select_info". This e-mail, and any attachments to this e-mail, is intended only for use by the person or entity to which it is addressed and may contain confidential and/or legally privileged material. Any review, retransmission, dissemination, copying, or other use of, or taking of any action in reliance upon, this e-mail, and any attachments hereto, by persons or entities other than the intended recipient is strictly prohibited. If you received this in error, please contact the sender and permanently delete the original from any computer and destroy any printout thereof.
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders