helpers/scalar's realloc() of rootoid vs. netsnmp_subtree_split copying just the known size

2022-11-09 Thread Bill Fenner
Hi, I have a MIB module that uses netsnmp_register_scalar() which realloc's the given root oid to have one more space in it, so that the netsnmp_scalar_helper_handler can use that space to store the ".0" instance during the handling of a request. This all works fine, until we register an instance

Re: helpers/scalar's realloc() of rootoid vs. netsnmp_subtree_split copying just the known size

2022-11-14 Thread Bill Fenner
I happened to get to talk to Wes about this, and his answer was basically that these things were not meant to be mixed in this way. I have since changed my code to use netsnmp_register_scalar when I want to shadow a scalar, and that works fine. Bill On Wed, Nov 9, 2022 at 8:36 AM Bill Fenner