Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46780
json_add_string name "${PPP_IPPARAM}_6"
json_add_string ifname "@$PPP_IPPARAM"
json_add_string proto "dhcpv6"
json_add_string name "${PPP_IPPARAM}_6"
json_add_string ifname "@$PPP_IPPARAM"
json_add_string proto "dhcpv6"
+ [ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
json_close_object
ubus call network add_dynamic "$(json_dump)"
fi
json_close_object
ubus call network add_dynamic "$(json_dump)"
fi
+ # Enable RFC 7278
+ proto_export "EXTENDPREFIX=1"
+
connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
ppp_generic_setup "$interface" \
noaccomp \
connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
ppp_generic_setup "$interface" \
noaccomp \
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
+ json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)"
return 0
ubus call network add_dynamic "$(json_dump)"
return 0
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
+ json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)"
}
ubus call network add_dynamic "$(json_dump)"
}
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
+ json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)"
}
ubus call network add_dynamic "$(json_dump)"
}
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
+ json_add_string extendprefix 1
json_close_object
ubus call network add_dynamic "$(json_dump)"
}
json_close_object
ubus call network add_dynamic "$(json_dump)"
}