Re: ifXtable implementation

2005-06-15 Thread Robert Story
On Wed, 15 Jun 2005 08:24:29 -0700 (PDT) Surya wrote: SP> What kind of problems? Could you please elaborate or SP> point to? Sure. The net-snmp libraries have not been made thread safe, with the exception of the snmp_session client APIs. None of the agent code has even been evaluated for thread-sa

Re: ifXtable implementation

2005-06-15 Thread Surya Prakash
What kind of problems? Could you please elaborate or point to? I could receive messages and send traps from the new thread. I don't share data in my code. Probably the send_easy_traps or other Trap APIs might share data. I haven't looked in detail yet as I didn't notice any 'major' problems. I cal

Re: ifXtable implementation

2005-06-15 Thread Robert Story
On Tue, 14 Jun 2005 17:47:41 -0700 (PDT) Surya wrote: SP> I fork a thread from snmpd.c and in that thread I SP> listen on a message queue and thus generate SP> traps..Sound OK?? actually, no. using the snmp library in different threads is very likely to cause problems. what you should do is keep a

Re: ifXtable implementation

2005-06-14 Thread Surya Prakash
I fork a thread from snmpd.c and in that thread I listen on a message queue and thus generate traps..Sound OK?? --- Robert Story <[EMAIL PROTECTED]> wrote: > On Tue, 14 Jun 2005 12:42:31 -0700 (PDT) Surya > wrote: > SP> Thanks. If I have an external event sent to SNMP > SP> through the pipe or th

Re: ifXtable implementation

2005-06-14 Thread Robert Story
On Tue, 14 Jun 2005 12:42:31 -0700 (PDT) Surya wrote: SP> Thanks. If I have an external event sent to SNMP SP> through the pipe or the message queue I added, once I SP> get the this event, I can call send_easy_trap() API SP> with a fixed OID and it should work right? Yep. for a message queue, you'

Re: ifXtable implementation

2005-06-14 Thread Surya Prakash
Thanks. If I have an external event sent to SNMP through the pipe or the message queue I added, once I get the this event, I can call send_easy_trap() API with a fixed OID and it should work right? I tried configuring the DISMAN MIB but it triggers the following errors. My copy of ipv6.h gives eve

Re: ifXtable implementation

2005-06-14 Thread Robert Story
On Tue, 14 Jun 2005 10:01:22 +0100 Dave wrote: DS> On Tue, 2005-06-14 at 04:28, Surya Prakash wrote: DS> > Also, where are the linkUp & Down traps implemented? DS> DS> They're not implemented directly. DS> (Except possibly in the if-mib code, I haven't checked). Nope, the disman route is the way

Re: ifXtable implementation

2005-06-14 Thread Dave Shield
On Tue, 2005-06-14 at 04:28, Surya Prakash wrote: > Could some one please tell me if there is an old > implementation of ifXtable stuff like ifHighSpeed, > ifCounterDiscontinuityTime, ifLinkUpDownTrapEnable? No - there isn't. Just the if-mib/ifXTable code. > Also, where are the linkUp & Down tra