[Bug 195445] bsnmpd returns wrong data in ipAddrTable

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 10 03:38:52 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195445

cb at severious.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cb at severious.net

--- Comment #2 from cb at severious.net ---
The regression was introduced in r228571, which was copied to the 10-STABLE
branch when it was created, but not merged to 9.

http://svnweb.freebsd.org/base/head/contrib/bsnmp/snmp_mibII/mibII.c?r1=228623&r2=228622&pathrev=228623

That change can't possibly work, because struct ifa_msghdr is just the header,
and does not include the payload of the message, which the IP addresses are
extracted from.

Reverting it fixes the problem for me on amd64 and i386. Presumably it may also
cause bsnmpd to fault on architectures with strict alignment requirements.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list