Re: Fix patch for SF bug 2833
Bart Van Assche <[email protected]>
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <[email protected]> |
On 03/22/18 10:37, Eric S. Raymond wrote: > Bart Van Assche <[email protected]>: >> This patch changes a data structure in a public header file and hence breaks >> the ABI. This is something we could do for Net-SNMP 5.8 since there has not >> yet been any 5.8 release but it's something we can't do for older Net-SNMP >> versions. > > I withdraw the suggestion. > > Procedurally, do you have an official queue of patches deferred to the next > major release, or a repository branch for them? Putting the patch there > would be a reasonable way to close 2833. Is changing the size of variable.magic the best solution for bug #2833? I think that variable.magic is only needed if the old MIB registration API is used (register_mib() etc.). That API was deprecated more than ten years ago. I think that we should tell users to move away from that API rather than helping them with fixing the shortcomings of that API. From include/net-snmp/net-snmp-config.h.in: /* ********* NETSNMP_MARK_BEGIN_LEGACY_DEFINITIONS *********/ /* * existing definitions prior to Net-SNMP 5.4 * * do not add anything new here * */ #ifndef NETSNMP_NO_LEGACY_DEFINITIONS [ ... ] #endif An example of how to use the new API is available at http://net-snmp.sourceforge.net/wiki/index.php/TUT:mib2c_scalar. Bart. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot