License of mib2c output

2014-05-20 Thread Christopher Nelson
We've recently used mib2c to create a subagent for another open source project (hostapd). We'd like to give that subagent to the other project but can't find a clear statement of license for the mib2c output. Can anyone on this list provide an authoritative statement about what license we need to

Looking for a MIB pretty printer

2010-02-05 Thread Christopher Nelson
I *swear* I've done this with Net-SNMP tools before but I can't find the right program or options now. I have a MIB description and I want to print a OID tree from it without having a device to reference/access with snmpwalk or whatever. If there a Net-SNMP tool for that? If not, can you recomme

Re: Precise time in traps

2009-12-16 Thread Christopher Nelson
>> If I have two systems running PTP (precision time protocol) which send >> traps to a third system, should I expect that the times in the traps >> when the server sees them are fairly accurate and coordinated and >> allows me to tell which trapped event happened first?  Or is the time >> in the t

Precise time in traps

2009-12-16 Thread Christopher Nelson
If I have two systems running PTP (precision time protocol) which send traps to a third system, should I expect that the times in the traps when the server sees them are fairly accurate and coordinated and allows me to tell which trapped event happened first? Or is the time in the traps SNMPd upti

Re: GCC warnings compiling mib2c output

2009-09-16 Thread Christopher Nelson
>>> I suppose you could consider tweaking the call to use 'void' rather >>> than 'char' pointers.   In retrospect, that would have been a better >>> choice, and might keep your compiler happy.   But note that this >>> change would have to be applied throughout the whole codebase. >> >> I'm running

Re: GCC warnings compiling mib2c output

2009-09-16 Thread Christopher Nelson
>> Recently, we upgraded compilers and we're seeing a lot of >> warnings about "dereferencing type-punned pointer will break >> strict-aliasing rules" > > Well, the warning is technically correct. > The memdup call *does* re-cast these pointers in a potentially > non-safe manner.   But memdup is wo

Re: GCC warnings compiling mib2c output

2009-09-15 Thread Christopher Nelson
> CN> if (retval) { > CN> ui = SNMP_MALLOC_STRUCT(undoInfo); > ui-> len = retval_len; > CN> memdup((u_char **) & ui->ptr, > CN> (u_char *) retval, ui->len); > CN> } > > CN> which I believe is mib2c output, not something we added to the > CN> skeleton.  Has this warning been addressed in later versi

GCC warnings compiling mib2c output

2009-09-14 Thread Christopher Nelson
We're using Net-SNMP 5.2.2. Some time ago, we generated MIB code with mib2c. Recently, we upgraded compilers and we're seeing a lot of warnings about "dereferencing type-punned pointer will break strict-aliasing rules" in code like: if (retval) { ui =

Re: MSTP MIB?

2009-05-13 Thread Christopher Nelson
> I found a draft MSTP MIB from 2005 and some discussion on the 802.1WG > mailing list in 2008 but can't find any current, official documents. > Does anyone know if there is such a MIB?  How can there not be?! > Doesn't anyone with an MSTP switch monitor it? I found 802.1ap-2008 which specifies th

Re: snmp_open() problem in 5.2.rc1

2004-10-28 Thread Christopher Nelson
"Robert Story (Users)" wrote: > > On Thu, 28 Oct 2004 10:13:02 -0400 [EMAIL PROTECTED] wrote: > CRC> I edited snmp_open() to start: > CRC> > CRC> struct session_list *slp; > CRC> snmp_log(LOG_INFO, > CRC> "%d:session->community=%s\n", > CRC> __LINE__, session->co

Re: Looking for an idiom for expensive table access

2004-09-29 Thread Christopher Nelson
"Robert Story (Users)" wrote: > ... > CRC> It's fairly easy and cheap for me to get _one_ record for one MAC address > > Is it easy to know if the external data has changed (eg data added or deleted)? > If so, then you would only have to rebuild your cache when rows were > added/deleted. No, unfo

Re: Update Re: Multiple connections to sub-agent?

2004-07-27 Thread Christopher Nelson
Wes Hardaker wrote: > > > On Tue, 27 Jul 2004 12:08:22 -0400, [EMAIL PROTECTED] said: > > cnelson> AgentX master agent failed to respond to ping. Attempting to > cnelson> re-register. > > cnelson> Does that suggest that snmpd is too busy to respond and my > cnelson> sub-agent is OK? > > It

Re: snmpd dies silently

2004-06-02 Thread Christopher Nelson
Wes Hardaker wrote: > > > On Wed, 02 Jun 2004 07:58:43 -0400, [EMAIL PROTECTED] said: > > cnelson> snmpd dies silently without calling any of the functions in > cnelson> the subagent. There's nothing in snmpd.log after the startup > cnelson> messages. Any thoughts...? TIA. > > Thoughts?

Re: Building net-snmp stripped

2004-06-02 Thread Christopher Nelson
Wes Hardaker wrote: > > > On Mon, 17 May 2004 09:28:06 -0400, [EMAIL PROTECTED] said: > > cnelson> It seems to me that there are no inputs to the configure process that will > produce a make file that builds net-snmp stripped and without debugging. Without > specifying any CFLAGS when I in