|
|
@ -16,14 +16,16 @@ proto_dhcpv6_init_config() { |
|
|
|
proto_config_add_string "iface_dslite" |
|
|
|
proto_config_add_string "iface_dslite" |
|
|
|
proto_config_add_string "ifaceid" |
|
|
|
proto_config_add_string "ifaceid" |
|
|
|
proto_config_add_string "sourcerouting" |
|
|
|
proto_config_add_string "sourcerouting" |
|
|
|
|
|
|
|
proto_config_add_string "userclass" |
|
|
|
|
|
|
|
proto_config_add_string "vendorclass" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
proto_dhcpv6_setup() { |
|
|
|
proto_dhcpv6_setup() { |
|
|
|
local config="$1" |
|
|
|
local config="$1" |
|
|
|
local iface="$2" |
|
|
|
local iface="$2" |
|
|
|
|
|
|
|
|
|
|
|
local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting |
|
|
|
local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass |
|
|
|
json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting |
|
|
|
json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure |
|
|
|
# Configure |
|
|
@ -43,6 +45,10 @@ proto_dhcpv6_setup() { |
|
|
|
|
|
|
|
|
|
|
|
[ -n "$ifaceid" ] && append opts "-i$ifaceid" |
|
|
|
[ -n "$ifaceid" ] && append opts "-i$ifaceid" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ -n "$vendorclass" ] && append opts "-V$vendorclass" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ -n "$userclass" ] && append opts "-u$userclass" |
|
|
|
|
|
|
|
|
|
|
|
for opt in $reqopts; do |
|
|
|
for opt in $reqopts; do |
|
|
|
append opts "-r$opt" |
|
|
|
append opts "-r$opt" |
|
|
|
done |
|
|
|
done |
|
|
|