On Mon, 17 Jan 2005 13:47:09 -0100 (EDT) Ricardo wrote:
RLAA> I have two variables in my MIB definition, one is writable (represents
RLAA> the number of a link), and the other is read-only (represents the status
RLAA> of a link). In the handler's code for the link status variable (into the
RLAA> GET section) I need to access the other variable (link number) to know
RLAA> what link number the client is looking for (there's only one client doing
RLAA> this request - both SET and GET - at a given time). How can I do that? 

The easiest way is to implement both in the same file, and simply refer to the
C variable from one in the other. If they aren't in the same C file, then
import the variable ('extern' decl) or provide a simple function to get the
value.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to