On Fri, 2005-05-20 at 00:24, W Raul S wrote: > the only fn to create > entries using the snmp lib is netsnmp_set_row_column() which only > takes a string when setting the value of the column
Not quite. It takes an arbitrary pointer to the data (which just happens to be defined using 'u_char'). Think of this as (void *), rather than (u_char *). So if you've got an integer value to insert, simply cast it appropriately: netsnmp_set_row_column( row, COLUMN_MY_INT_VALUE, ASN_INTEGER, ===> (u_char *)&my_int, sizeof(my_int)); Dave ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ 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