Changeset 16812


Ignore:
Timestamp:
2009-07-12T17:37:48+02:00 (7 years ago)
Author:
acinonyx
Message:

[packages] net-snmp: Enable UDP IPv6 transport (closes #5338)

Location:
packages/libs/net-snmp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/net-snmp/Makefile

    r16625 r16812  
    142142        utilities \ 
    143143 
    144 SNMP_TRANSPORTS_INCLUDED = Callback UDP 
    145  
    146 SNMP_TRANSPORTS_EXCLUDED = TCP TCPv6 UDPv6 Unix 
     144SNMP_TRANSPORTS_INCLUDED = Callback UDP UDPIPv6 
     145 
     146SNMP_TRANSPORTS_EXCLUDED = TCP TCPIPv6 Unix 
    147147 
    148148TARGET_CFLAGS += $(FPIC) 
     
    151151        --enable-shared \ 
    152152        --enable-static \ 
     153        --enable-ipv6 \ 
    153154        --with-endianness=little \ 
    154155        --with-logfile=/var/log/snmpd.log \ 
     
    159160        --enable-applications \ 
    160161        --disable-debugging \ 
    161         --disable-ipv6 \ 
    162162        --disable-manuals \ 
    163163        --disable-mibs \ 
  • packages/libs/net-snmp/files/snmpd.conf

    r16649 r16812  
     1config agent 
     2        option agentaddress UDP:161 
     3 
    14config com2sec public 
    25        option secname ro 
  • packages/libs/net-snmp/files/snmpd.init

    r16649 r16812  
    1010RUN_C=$RUN_D/snmpd.conf 
    1111 
     12snmpd_agent_add() { 
     13        local cfg="$1" 
     14 
     15        config_get agentaddress "$cfg" agentaddress 
     16        [ -n "$agentaddress" ] || return 0 
     17        echo "agentaddress $agentaddress" >> $RUN_C 
     18} 
    1219snmpd_system_add() { 
    1320        local cfg="$1" 
     
    111118        config_load snmpd 
    112119 
     120        config_foreach snmpd_agent_add agent 
    113121        config_foreach snmpd_system_add system 
    114122        config_foreach snmpd_com2sec_add com2sec 
Note: See TracChangeset for help on using the changeset viewer.