Re: Doubts Regarding SNMP Table Index

"Karthikeyan Ramasubramanian" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks Dave for your input. The problem got solved. Sorry for mailing you
privately.

On 7/19/07, Dave Shield <[email protected]> wrote:
>
>     [ First - *please* don't mail me privately, without copying
>      any responses to the mailing list.  I don't have the time
>      or inclination to offer private, unpaid, SNMP consultancy.
>      Keep discussions to the list, where others can both learn
>      and offer advice.  Thanks.   ]
>
>
>
> >  netsnmp_variable_list *
> >  netSnmpIETFWGTable_get_next_data_point(.....)
> >  {
>        :
> >          snmp_set_var_value(idx,(const u_char*) entry->nsIETFWGName,
> >                             sizeof(entry->nsIETFWGName));     <=====
>        :
> >  }
>
>
> That's where the problem lies.
> You should be using "strlen" to report the length of the index string.
> Not "sizeof"
>
> Dave
>



-- 
R.Karthikeyan

"Vision without action is a Daydream. Action without vision is a Nightmare"

-------------------------------------------------------------------------
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/

_______________________________________________
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.