Menu

#1306 Allow external events in standalone sub-agents.

backport-needed
closed
None
5
2015-10-05
2015-08-06
Peter Rosin
No

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

1 Attachments

Discussion

  • Peter Rosin

    Peter Rosin - 2015-08-07

    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

     
  • Bill Fenner

    Bill Fenner - 2015-08-11

    This looks great, thanks, Peter. This was on my "get around to this eventually" list, thanks for getting to it first :-)

     
  • Bill Fenner

    Bill Fenner - 2015-08-11
    • status: open --> accepted
    • assigned_to: Bill Fenner
     
  • Peter Rosin

    Peter Rosin - 2015-09-04

    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

     
    • Bill Fenner

      Bill Fenner - 2015-09-08

      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

       
  • Bill Fenner

    Bill Fenner - 2015-10-05
    • status: accepted --> closed
     

Log in to post a comment.