Changeset 46408


Ignore:
Timestamp:
2015-07-18T07:44:50+02:00 (3 years ago)
Author:
cyrus
Message:

odhcp6c: add option "sourcefilter" to disable source filter

Signed-off-by: Steven Barth <steven@…>

Location:
trunk/package/network/ipv6/odhcp6c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/ipv6/odhcp6c/Makefile

    r46317 r46408  
    99 
    1010PKG_NAME:=odhcp6c 
    11 PKG_VERSION:=2015-07-13 
     11PKG_VERSION:=2015-07-18 
    1212PKG_RELEASE=$(PKG_SOURCE_VERSION) 
    1313 
  • trunk/package/network/ipv6/odhcp6c/files/dhcpv6.script

    r46335 r46408  
    7777 
    7878        for entry in $RA_ROUTES; do 
    79                 local duplicate=0 
     79                local duplicate=$NOSOURCEFILTER 
    8080                local addr="${entry%%/*}" 
    8181                entry="${entry#*/}" 
  • trunk/package/network/ipv6/odhcp6c/files/dhcpv6.sh

    r45700 r46408  
    2929        proto_config_add_int "soltimeout" 
    3030        proto_config_add_boolean fakeroutes 
     31        proto_config_add_boolean sourcefilter 
    3132} 
    3233 
     
    3536        local iface="$2" 
    3637 
    37         local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map iface_464xlat ifaceid userclass vendorclass delegate zone_dslite zone_map zone_464xlat zone soltimeout fakeroutes 
    38         json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map iface_464xlat ifaceid userclass vendorclass delegate zone_dslite zone_map zone_464xlat zone soltimeout fakeroutes 
     38        local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map iface_464xlat ifaceid userclass vendorclass delegate zone_dslite zone_map zone_464xlat zone soltimeout fakeroutes sourcefilter 
     39        json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite iface_map iface_464xlat ifaceid userclass vendorclass delegate zone_dslite zone_map zone_464xlat zone soltimeout fakeroutes sourcefilter 
    3940 
    4041 
     
    7778        [ -n "$zone" ] && proto_export "ZONE=$zone" 
    7879        [ "$fakeroutes" != "0" ] && proto_export "FAKE_ROUTES=1" 
     80        [ "$sourcefilter" = "0" ] && proto_export "NOSOURCEFILTER=1" 
    7981 
    8082        proto_export "INTERFACE=$config" 
Note: See TracChangeset for help on using the changeset viewer.