I needed to add an fd to the select loop in a snmp agent which is connected
to the master agent using AgentX, and found the register_readfd entry point,
but couldn't get it to work. This patch fixes it for me.
Patch is on top of git v5.7.3-1553-g29c7ae4
Cheers,
Peter
Ok, here's an update that works even better. The original version invoked the timeout code more or less every time there were an external event (since netsnmp_dispatch_external_events2 decrements the count variable to zero on more or less every external events).
Cheers,
Peter
This looks great, thanks, Peter. This was on my "get around to this eventually" list, thanks for getting to it first :-)
Great, I have a follow-up question though. It's probably me not understanding the work flow... Anyway, I expected the patch to show up in the git://git.code.sf.net/p/net-snmp/code repo, but it has not yet done so. When is it going to show up there? How do I "follow the patch" on its way into the main repo? Is that even the main repo?
Sorry for being snmp-illiterate...
Cheers,
Peter
Peter,
I apologize - this is me being overloaded. I wanted to write up a formal test of the code before committing it, and also test it in the context in which I needed it myself, and I haven't gotten to it yet.
Bill