#985 Inconsistent data can be reported on Solaris 10U4+

closed
None
5
2012-11-09
2009-04-11
No

Due to an interface change, there is a size mismatch between the statistics returned from the kernel and what's expected by net-snmp.

Discussion

  • Wes Hardaker

    Wes Hardaker - 2009-04-22

    tanders has apparently applied this patch already, though he didn't say so here. So I'm saying it and closing it :-)

     
  • Thomas Anders

    Thomas Anders - 2009-04-23

    No, I didn't apply this patch yet. Instead, SVN trunk (5.5-to-be) has a different fix for this issue from 2007 (r16436). It uses SOLARIS_HAVE_RFC4293_SUPPORT instead of LEGACY_MIB_SIZE to decide whether to set req->len=1.

    5.4.x and earlier have no such fix at all.

    @apersson: What define is more appropriate? I'll make sure we use that in all branches, then.

     
  • Anders Persson

    Anders Persson - 2009-04-23

    LEGACY_MIB is more appropriate, as it is only defined on S10U4+, which is the only time we
    need to set req->len = 1. Using SOLARIS_HAVE_RFC4293_SUPPORT would set the value on
    OpenSolaris systems (which is harmless, but still).

     
  • Thomas Anders

    Thomas Anders - 2009-04-23

    SVN Rev. 17554.

     
  • Thomas Anders

    Thomas Anders - 2009-04-23

    Thanks for the patch! It has been applied to the 5.2.x, 5.3.x and 5.4.x code branches and the main development tree, and will appear in future releases of the Net-SNMP package.

     

Log in to post a comment.