This is a discussion on table handler-2 within the SNMP Users forums, part of the Networking and Network Related category; --===============0919950112== Content-Type: multipart/alternative; boundary="0-1820830725-1179585004=:90113" Content-Transfer-Encoding: 8bit --0-1820830725-1179585004=:90113 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0919950112==
Content-Type: multipart/alternative; boundary="0-1820830725-1179585004=:90113" Content-Transfer-Encoding: 8bit --0-1820830725-1179585004=:90113 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit i creat a table by the name of table set,after that i register it with: netsnmp_register_table_data_set(netsnmp_create_han dler_registration ("set", handle_set_update, my_registration_oid, OID_LENGTH(my_registration_oid), HANDLER_CAN_RWRITE), table_set, NULL); then in my handler how i can get the pointer to my table(table_set). this is my handler: i nt handle_set_update(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) { am i registering the table correctly? i cant get the pointer to my table form any of the data come through the handler(reqinfo,reginfo,requests,requests->parent_data); --------------------------------- Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. --0-1820830725-1179585004=:90113 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <div>i creat a table by the name of table set,after that i register it with:</div> <div> </div> <div> </div> <div> netsnmp_register_table_data_set(netsnmp _create_handler_registration<BR> &n bsp; &nbs p; ("set", handle_set_update,<BR> &nbs p; &n bsp; &nbs p; my_registration_oid,<BR> &n bsp; &nbs p; &n bsp; OID_LENGTH(my_registration_oid),<BR> &n bsp; &nbs p; &n bsp; &nbs p; HANDLER_CAN_RWRITE), table_set, NULL);</div> <div> </div> <div> </div> <div>then in my handler how i can get the pointer to my table(table_set).</div> <div> </div> <div>this is my handler:</div> <div> i</div> <div>nt</div> <div> &nb sp; handle_set_update(netsnmp_mib_handler *handler,<BR> & nbsp; &nb sp;   ; netsnmp_handler_registration *reginfo,<BR> & nbsp; &nb sp;   ; netsnmp_agent_request_info *reqinfo,<BR> & nbsp; &nb sp;   ; netsnmp_request_info *requests)</div> <div> &nb sp; {</div> <div><BR>am i registering the table correctly?</div> <div> </div> <div>i cant get the pointer to my table form any of the data come through the handler(reqinfo,reginfo,requests,requests->parent_data);</div> <div> </div><p> <hr size=1><a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Never miss an email again!<br>Yahoo! Toolbar</a> alerts you the instant new Mail arrives.<a href=" http://us.rd.yahoo.com/evt=49937/*http://tools.search.yahoo.com/toolbar/features/mail/"> Check it out.</a> --0-1820830725-1179585004=:90113-- --===============0919950112== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============0919950112== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============0919950112==-- |