Good to know,

I thought this morning that a better init implmenetation would be

    netsnmp_table_helper_add_indexes(table_info,
                                     ASN_PRIV_IMPLIED_OCTET_STR,  LENGTH1,
                                     ASN_PRIV_IMPLIED_OCTET_STR,  LENGTH2,
                                     ASN_UNSIGNED,                
                                     0);

but have not looked deeper into this solution

Thanks for the help,
Adam



-----Original Message-----
From: [email protected] on behalf of Dave Shield
Sent: Tue 3/3/2009 9:32 AM
To: Bell, Adam
Cc: [email protected]
Subject: Re: ASN_PRIV_IMPLIED_OCTET_STR (formerly SNMP verion...)
 
2009/3/3 Bell, Adam <[email protected]>:
>
> The new code does special handling for the ASN_PRIV_IMPLIED_OCTET_STRING
> when parsing through the index OID.
> IMPLIED would be handled as before (var->name_length == 0) but there was no
> IMPLIED case in the block I modified.
>
> I made no change for the implied OID case, but a similar solution would work
> I imagine.

Thanks for that patch.
However, it appears that a similar (though subtly different) patch has already
been applied to the 5.4.x line.

See
    http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=14012

I'm not sure why this wasn't back ported to the 5.3.x and 5.2.x lines as well.

Dave


The information contained in this electronic mail transmission 
may be privileged and confidential, and therefore, protected 
from disclosure. If you have received this communication in 
error, please notify us immediately by replying to this 
message and deleting it from your computer without copying 
or disclosing it.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to