|
|
|
@ -15,14 +15,15 @@ proto_dhcpv6_init_config() { |
|
|
|
|
proto_config_add_string "ip6prefix" |
|
|
|
|
proto_config_add_string "iface_dslite" |
|
|
|
|
proto_config_add_string "ifaceid" |
|
|
|
|
proto_config_add_string "sourcerouting" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
proto_dhcpv6_setup() { |
|
|
|
|
local config="$1" |
|
|
|
|
local iface="$2" |
|
|
|
|
|
|
|
|
|
local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid |
|
|
|
|
json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid |
|
|
|
|
local 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure |
|
|
|
@ -48,6 +49,7 @@ proto_dhcpv6_setup() { |
|
|
|
|
|
|
|
|
|
[ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix" |
|
|
|
|
[ -n "$iface_dslite" ] && proto_export "IFACE_DSLITE=$iface_dslite" |
|
|
|
|
[ "$sourcerouting" = "1" ] && proto_export "SOURCE_ROUTING=1" |
|
|
|
|
|
|
|
|
|
proto_export "INTERFACE=$config" |
|
|
|
|
proto_run_command "$config" odhcp6c \ |
|
|
|
|