RE: Return type

This is a discussion on RE: Return type within the SNMP Coders forums, part of the Networking and Network Related category; Hi! Thank You for giving reply. I understood it, but my question is when I execute snmpset command example "...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-02-2008
Siva Prakash Reddy G
 
Posts: n/a
Default RE: Return type


Hi!
Thank You for giving reply. I understood it, but my question is
when I execute snmpset command example "snmpset -v2c -c private
sysName.0 s "net-snmp" ", how var_system function will know that it is
set request for the variable sysName, off course using vp->magic it goes
to the case SYSTEMNAME but how it will know it is a set request and how
it will execute the *write_method = writeSystem; if it is get request
then writeSystem function won't be called How this is can be happened.
Hope understood my question. If any body knows how set operation takes
place please explain me.

With Regards,
G. Siva Prakash Reddy.

-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Wednesday, January 02, 2008 3:43 PM
To: Siva Prakash Reddy G
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: Return type

On 02/01/2008, Siva Prakash Reddy G <sivag@aztecsoft.com> wrote:
> What is the return type of WriteMethod function?


Integer - it's the SNMP error code for processing that SET request
(typically SNMP_ERR_NOERROR or SNMP_ERR_{something})

See the routine 'writeSystem' in the file 'mibgroup/mibII/system_mib.c'
for examples.

Dave


The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.

www.aztecsoft.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0