2009/6/5 geri noorzaman <noorzaman...@yahoo.com>: > unsigned char idx1[65535]; > strcpy(idx1,data->wmanIfBsSsMacAddress); > snmp_set_var_value(vptr,idx1,strlen(idx1));
What value does 'data->wmanIfBsSsMacAddress' have? Given that this is presumably a binary string, it would be more sensible to use a fixed size, rather than "strlen" (which assumes null-terminated printable strings) It might be helpful to include some debugging code (in both your get_{first,next} routines, and the main handler) so that you can see exactly what values are actually being worked with. 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users