Hi Robert,
Robert Story
<[EMAIL PROTECTED]
com> To
[EMAIL PROTECTED]
01/22/2007 12:03 cc
PM [EMAIL PROTECTED]
et
Subject
Re: RowStatus type mib2c template
problem
Did you at least recompile the subagent against the new headers and
libraries?
(EY) Yes, of course I recompiled the subagent against 5.3.1.
Ok... assuming you did at least recompile/relink the subagent against the
5.3
headers and libraries and it still crashes, there are 2 options: a) try
updating your subagent with newly generated code, or b) try and chase down
the
incompatibility between 5.2 generated code and 5.3. Let me know, and I can
tell you how to proceed from here...
(EY) a) I think Net-SNMP should support backward mib2c template
compatibility when upgrading to new versions. I have over hundreds of
objects supported in my 5.2.1 subagent, it's not practical to regenerate
their templates and updating the subagent every time I upgrading to new
Net-SNMP versions. Anyway, in this particular segmentation fault, I have
worked around it by modifying _mfd_dot1qVlanStaticTable_get_values() to
return SNMP_NOSUCHINSTANCE if rowreq_ctx is NULL.
(EY) b) The original problem was, setting RowStatus to Destroy(6) or
attempting to get a none existing row will cause segmentation fault because
the rowreq_ctx is NULL in _mfd_xxxTable_get_values() and _xxxTable
_get_column(). This happens in 5.2.1 subagent recompiled with 5.3.1. I
don't know if this is also a problem in 5.3.1 generated template. Could you
confirm this?
Thanks for your support.
Emi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders