Re: custom container implementation

2010-02-24 Thread Dave Shield
[Warning: Typical Shield Ramblings ahead] Before responding further, I think it's worth taking a step back, and thinking about exactly what is involved when processing a request for an object within a MIB table. There are basically two aspects to this: a) Locating the appropriate row of the

Re: custom container implementation

2010-02-23 Thread Robert Story
On Tue, 23 Feb 2010 15:27:33 +0100 Gerlando wrote: GF> How would I add the indexes to the snmp_container though (if, for GF> instance, rows are added from another thread)? I would have to make the GF> other threads SNMP-aware, which is not something I'd love to do. Well, you have two choices.

Re: custom container implementation

2010-02-23 Thread Gerlando Falauto
On 02/23/2010 03:47 AM, Robert Story wrote: > On Mon, 22 Feb 2010 23:02:54 +0100 Gerlando wrote: > GF> Or are you suggesting I don't even create a new container type (and use > GF> the standard container to keep just the indexes of the existing rows, > GF> and then use that information in my own

Re: custom container implementation

2010-02-22 Thread Robert Story
On Mon, 22 Feb 2010 23:02:54 +0100 Gerlando wrote: GF> Or are you suggesting I don't even create a new container type (and use GF> the standard container to keep just the indexes of the existing rows, GF> and then use that information in my own handler (i.e, the one is passed GF> to netsnmp_crea

Re: custom container implementation

2010-02-22 Thread Gerlando Falauto
Hi Dave, thanks for you quick reply! On 02/22/2010 05:40 PM, Dave Shield wrote: > On 22 February 2010 16:03, Gerlando Falauto > wrote: > >> The subagent is a thread within a multi-threaded application; the actual >> data is stored as shared data (dynamic data structures) within the >> appli

Re: custom container implementation

2010-02-22 Thread Dave Shield
On 22 February 2010 16:03, Gerlando Falauto wrote: > The subagent is a thread within a multi-threaded application; the actual > data is stored as shared data (dynamic data structures) within the > application itself. My first question would be - how dynamic is the structure of the table? I.e. how

custom container implementation

2010-02-22 Thread Gerlando Falauto
Hi folks, I am trying to optimize an SNMP subagent (connected to NET-SNMP 5.4.2.1 through AgentX) that is currently using code generated through mib2c.iterate_access.conf; of course this does *not* scale well, worsened by the fact that it runs on an extremely slow embedded processor. The subag