#1617 IP address in ipAddrTable may have wrong length

64-bit
closed
nobody
agent (1105)
5
2012-11-08
2006-06-11
No

When SNMP-agent built for 64-bit arch, it reply PDUs
for IP-MIB::ipAddrEndty.ipAdEntAddr with OCTET STRING
length equal to 8 instead of correct 4.

In details, it is caused by assignment:

*var_len = sizeof(long_return);

in function 'var_ipAddrEntry()' in module
mibgroup/mibII/ipAddr.c

'long_return' has type 'long' and has size 8.

Discussion

  • Thomas Anders

    Thomas Anders - 2006-06-11

    Logged In: YES
    user_id=848638

    What net-snmp version? Can you reproduce this with 5.3.1.pre3?

     
  • Konstantin Abramenko

    Logged In: YES
    user_id=1149016

    I see it with 5.3.0.1.
    I'm sorry, there is respecive fix in current CVS.
    this bug seems out of date.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks