Re: Unable to compile net-snmp due to netlink API change

2024-04-03 Thread Craig Small via Net-snmp-coders
On Wed, 3 Apr 2024 at 16:05, Bart Van Assche wrote: > Something else must be going on. This is the code from configure.ac that > checks for libnl-3: > > if test "x$ac_cv_header_netlink_netlink_h" = xyes; then > AC_EGREP_HEADER([nl_socket_free], [netlink/socket.h], >

Re: Getting listening port number while processing request

2024-04-03 Thread Bart Van Assche
On 4/3/24 02:35, Teus Benschop wrote: A snmpd was set to listen on 10 ports through multiple entries like “agentaddress tcp:” in the snmpd.conf file. It was verified through snmpget that the snmpd listens on all 10 ports. Function “netsnmp_callback_open” in file snmplib/transports/snmpCallba

Re: Getting listening port number while processing request

2024-04-03 Thread Teus Benschop
On Thu, 28 Mar 2024 at 00:13, Bart Van Assche wrote: > Thanks for the background information. I'm not sure the Net-SNMP API needs > to be modified to realize this. How about the following approach: > >- Use netsnmp_register_handler() in MIB implementations to associate >OIDs with callback