From: Vasilis Tsiligiannis Date: Sun, 6 Jan 2013 15:44:09 +0000 (+0000) Subject: net-snmp: Add support for IPv6 'com2sec6' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2420189f15f672f1372b38ade4d0b7bbf4bebaca;p=openwrt%2Fsvn-archive%2Fpackages.git net-snmp: Add support for IPv6 'com2sec6' SVN-Revision: 35024 --- diff --git a/net/net-snmp/files/snmpd.init b/net/net-snmp/files/snmpd.init index 770961e15..a89d0826b 100644 --- a/net/net-snmp/files/snmpd.init +++ b/net/net-snmp/files/snmpd.init @@ -41,6 +41,16 @@ snmpd_com2sec_add() { [ -n "$community" ] || return 0 echo "com2sec $secname $source $community" >> $RUN_C } +snmpd_com2sec6_add() { + local cfg="$1" + config_get secname "$cfg" secname + [ -n "$secname" ] || return 0 + config_get source "$cfg" source + [ -n "$source" ] || return 0 + config_get community "$cfg" community + [ -n "$community" ] || return 0 + echo "com2sec6 $secname $source $community" >> $RUN_C +} snmpd_group_add() { local cfg="$1" config_get group "$cfg" group @@ -120,6 +130,7 @@ start() { config_foreach snmpd_agent_add agent config_foreach snmpd_system_add system config_foreach snmpd_com2sec_add com2sec + config_foreach snmpd_com2sec6_add com2sec6 config_foreach snmpd_group_add group config_foreach snmpd_view_add view config_foreach snmpd_access_add access