--===============1591120087==
Content-Type: multipart/alternative;
boundary="----=_Part_74042_3851263.1184850155941"

------=_Part_74042_3851263.1184850155941
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks Dave for your input. The problem got solved. Sorry for mailing you
privately.

On 7/19/07, Dave Shield 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"

------=_Part_74042_3851263.1184850155941
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanks Dave for your input. The problem got solved. Sorry for mailing you privately.

On 7/19/07, Dave Shield <.T.Shield@csc.liv.ac.uk">
D.T.Shield@csc.liv.ac.uk> 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"

------=_Part_74042_3851263.1184850155941--


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

--===============1591120087==--