Dear:

 I have a question about snmpget&snmpset.


 In the program:

      

u_char         *var_sgcc (struct variable *vp,
                                        oid * name,
                                        size_t * length,
                        int exact, size_t * var_len, WriteMethod ** 
write_method)
{


 if (header_generic(vp, name, length, exact, var_len, write_method) ==
        MATCH_FAILED)
        return NULL;


 switch (vp->magic) {

       case SOCKETNUM:
              return(u_char *) ret_func(name,isgetset); 
        
      case PPCIP:
        *var_len = sizeof(g_ppc. ppc_para_info.ppcip);
        *write_method = write_ppcipstr; 

         return(u_char *) ret_func(name,isgetset);
        

          ……

         }

}



    When I snmpget & snmpset  the value of PPCIP,how can I know whether  it's  
get or set  in the program? Is there something to identify that?


    When I set the value of PPCIP,I want to  run  write_ppcipstr() first,and 
then return the value of  ret_func(),What should I do ?


    Looking forward for your help!Thanks!




------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to