On Tue, 31 Oct 2017 20:57:04 +0100 Ján wrote: JG> is there any way how to programmatically (from our app loaded JG> as a dlmod module) set destination host for traps (trap2sink JG> config option)? I'm able to create new trap session via JG> function create_trap_session(). The problem is that I want to JG> update host IP address later (also programmatically) and I JG> don't know how. I tried to clean old trap sinks via JG> snmpd_free_trapsinks() function, but it only frees the internal JG> trap sink structure and not all the remaining things (for JG> example snmpTargetAddrTable) that were added via callback.
Unfortunately there isn't an API for this in any current releaes. There are some new APIs in the upcoming 5.8 release which may help. I haven't looked to see how easy it might be to backport them to 5.7.x. Regards, Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders