proto_config_add_string "clientid"
proto_config_add_string "reqopts"
proto_config_add_string "noslaaconly"
+ proto_config_add_string "ip6prefix"
}
proto_dhcpv6_setup() {
local config="$1"
local iface="$2"
- local reqaddress reqprefix clientid reqopts noslaaconly
- json_get_vars reqaddress reqprefix clientid reqopts noslaaconly
+ local reqaddress reqprefix clientid reqopts noslaaconly ip6prefix
+ json_get_vars reqaddress reqprefix clientid reqopts noslaaconly ip6prefix
# Configure
append opts "-r$opt"
done
+ [ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix"
proto_export "INTERFACE=$config"
proto_run_command "$config" odhcp6c \