On 27 July 2010 22:24, Iverson, Joshua <[email protected]> wrote: > So my question is, is there a way I can _replace_ the current ro and rw > community strings programmatically (i.e. without reloading a config file)?
No. The 'r[ow]community' directives are really just wrappers round the 'com2sec' directive. The code that implements this is to be found in 'snmplib/transport/snmpUDPDomain.c' (at least in the most recent code) - look for netsnmp_udp_parse_security. This sets up entries in a linked list 'com2SecList', and the *only* other code that manipulates this is 'netsnmp_udp_com2SecList_free', which clears the whole list. There's no clean way to remove individual entries from the list. [There should be, but there isn't] Sorry to be the bearer of bad tidings. Dave ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
