On Wed, 2006-03-08 at 06:50 -0800, Wes Hardaker wrote: > >>>>> On Wed, 8 Mar 2006 13:56:14 +0200, "Makavy, Erez (Erez)" <[EMAIL > >>>>> PROTECTED]> said: > > Erez> It looks like the ASN_PRIV_IMPLIED_OCTET_STR switch case, assumes that > Erez> the rest of the instance is the fixed length string (and it does not > Erez> look for a preceeding string length component). > > Erez> But what if the instance includes some other index type after this > Erez> fix-length string? > > If you set var->val_len as well it'll assume that this is the length > of the data you want to pull out. That should just remove a fixed > size of data.
But Wes - Erez is talking about *registering* the table, not user-helper processing. There doesn't seem to be the option within the netsnmp_table_helper_add_indexes call to indicate the length of a fixed-length index string. So how can the automatic index processing (in the table helper) parse the incoming OID correctly? Dave ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ 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