On Thu, May 26, 2005 at 09:00:08AM +0100, Dave Shield wrote:
}
} netsnmp_table_request_info *ti =
} netsnmp_extract_table_info( request );
}
} The field 'ti->indexes' holds a varbind list containing
} the index values from the incoming request.
}
} So if the table was indexed by a single integer value,
} you could retrieve this using
}
} long intIndex = *ti->indexes->val.integer;
}
} (but don't forget to check for null pointers first!)
If the request made it into my table_data handler wouldn't it
have to have ti->indexes set? It couldn't be NULL could it?
Same goes for ti->indexes->val doesn't it? It couldn't be NULL could it?
I'm also assuming that if the request had come in using
ti->indexes->val.string (instead of ti->indexes->val.integer)
that the helper would have handled it too.
And if any of these could be NULL how would I handle that situation?
-Vance
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders