From 2420189f15f672f1372b38ade4d0b7bbf4bebaca Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Sun, 6 Jan 2013 15:44:09 +0000 Subject: [PATCH] net-snmp: Add support for IPv6 'com2sec6' SVN-Revision: 35024 --- net/net-snmp/files/snmpd.init | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.30.2