Changeset 26826


Ignore:
Timestamp:
2011-05-04T21:07:17+02:00 (7 years ago)
Author:
jow
Message:

[packages] mini-snmpd: make IPv4 / IPv6 mode switchable when daemon is built with IPv6 support, previously it was hardcoded to v6

Location:
packages/net/mini_snmpd
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • packages/net/mini_snmpd/Makefile

    r23765 r26826  
    11# 
    2 # Copyright (C) 2009-2010 OpenWrt.org 
     2# Copyright (C) 2009-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=mini_snmpd 
    1111PKG_VERSION:=1.2b 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/mini_snmpd/files/mini_snmpd.config

    r16774 r26826  
    11config mini_snmpd 
    22        option enabled 1 
     3        option ipv6 0 
    34        option community public 
    45        option location '' 
  • packages/net/mini_snmpd/files/mini_snmpd.init

    r16774 r26826  
    2424        append_string "$cfg" disks "-d" 
    2525        append_string "$cfg" interfaces "-i" 
    26          
    27         config_get_bool enabled "$cfg" "enabled" '1'c 
     26 
     27        config_get_bool ipv6 "$cfg" "ipv6" '0' 
     28        [ "$ipv6" -gt 0 ] && append args "-6" 
     29 
     30        config_get_bool enabled "$cfg" "enabled" '1' 
    2831        [ "$enabled" -gt 0 ] && $PROG $args & 
    2932} 
  • packages/net/mini_snmpd/patches/103-mib_encode_snmp_element_oid_fix.patch

    r15469 r26826  
    1111        length = 1; 
    1212        for (i = 2; i < oid_value->subid_list_length; i++) { 
    13 @@ -293,6 +296,8 @@ static int mib_build_entry(const oid_t * 
     13@@ -307,6 +310,8 @@ static int mib_build_entry(const oid_t * 
    1414                        value->data.encoded_length = 0; 
    1515                        value->data.buffer = malloc(value->data.max_length); 
Note: See TracChangeset for help on using the changeset viewer.