Re: Having problem with stirng index table

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/6/4 geri noorzaman <[email protected]>:
> and in the get_first_data_point and get_next_data_point, I set something
> like this:
>
> int idx=1;

That should probably be

   long idx=1;

for safety.

> unsigned char idx2 [65535];
>
> snmp_set_var_value(vptr,(u_char *)&idx,sizeof(idx));

You seem to be missing

    vptr = vptr->next_variable;

> strcpy(idx2,"ABCDEFGH");
> snmp_set_var_value(vptr,idx1,strlen(idx1));


Dave

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.