Hi,

  I've been doing some work lately with using the mib2c perl support and
  Support.pm and have hit a bit of a problem. The getnext table handling
  breaks if the index is variable length (e.g. and oid or string index).

  The code expects to be able to zero out all the index oid components
  and eventually match against something in the built up table of
  handled oids, but if the length of the index has changed then the
  additional zeroes will never match anything.

  As far as I can tell, a reasonable fix would be for mib2c to populate
  the table with the base oid (rather than the base oid appended with a
  zero per index), and then for the check for a handler to do a proper
  parentage check).

  I'm not going to get a chance to work on this for a while but thought
  I'd raise it here in-case anyone already has a fix.

  [I know variable length indexes are nasty, but we don't all get
  to design our mibs :)]

-- 
Tristan Colgate-McFarlane
Senior Network Administrator
Sporting Index Ltd

Telephone:  +44 (0)20 7840 4022
Mobile:     +44 (0)7900690912
Fax:        +44 (0)20 7840 4101
email:      tcolg...@sportingindex.com
web:        www.sportingindex.com
MSN:        tcolg...@sportingindex.com


**********************************************************************
This email and any attachments are confidential, protected by copyright and may 
be legally privileged.  If you are not the intended recipient, then the 
dissemination or copying of this email is prohibited. If you have received this 
in error, please notify the sender by replying by email and then delete the 
email completely from your system.  Neither Sporting Index nor the sender 
accepts responsibility for any virus, or any other defect which might affect 
any computer or IT system into which the email is received and/or opened.  It 
is the responsibility of the recipient to scan the email and no responsibility 
is accepted for any loss or damage arising in any way from receipt or use of 
this email.  Sporting Index Ltd is a company registered in England and Wales 
with company number 2636842, whose registered office is at Brookfield House, 
Green Lane, Ivinghoe, Leighton Buzzard, LU7 9ES.  Sporting Index Ltd is 
authorised and regulated by the UK Financial Services Authority (reg. no. 
150404). Any financial promotion contained herein has been issued 
and approved by Sporting Index Ltd.

Outbound email has been scanned for viruses and SPAM


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to