From: Jan S. <jsa...@re...> - 2010-06-23 08:03:03
|
I've stumbled upon struct range_list being too small for some MIBs. E.g. snmptranslate -Td NET-SNMP-AGENT-MIB::nsTransactionID: ... SYNTAX Unsigned32 (0..-1) Correct is (0..4294967295), but struct range_list uses signed int to store range boundaries and 4294967295 won't fit there. The fix is simple, just use long instead of int. But wouldn't it be ABI breaker? Changing sizes of structures in public headers is bad! Jan |