7 proto_dhcpv6_init_config
() {
8 proto_config_add_string
"reqaddress"
9 proto_config_add_string
"reqprefix"
10 proto_config_add_string
"clientid"
11 proto_config_add_string
"reqopts"
12 proto_config_add_string
"noslaaconly"
15 proto_dhcpv6_setup
() {
19 local reqaddress reqprefix clientid reqopts noslaaconly
20 json_get_vars reqaddress reqprefix clientid reqopts noslaaconly
25 [ -n "$reqaddress" ] && append opts
"-N$reqaddress"
27 [ -z "$reqprefix" -o "$reqprefix" = "auto" ] && reqprefix
=0
28 [ "$reqprefix" != "no" ] && append opts
"-P$reqprefix"
30 [ -n "$clientid" ] && append opts
"-c$clientid"
32 [ "$noslaaconly" = "1" ] && append opts
"-S"
34 for opt
in $reqopts; do
39 proto_export
"INTERFACE=$config"
40 proto_run_command
"$config" odhcp6c \
41 -s /lib
/netifd
/dhcpv6.
script \
45 proto_dhcpv6_teardown
() {
47 proto_kill_command
"$interface"