diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-02-05 14:56:37 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-02-05 14:56:37 +0000 |
commit | 05c9507cd3a8847ae45b63cd29f75d6c44e18bc6 (patch) | |
tree | 65af8da0389e2792009efccb94196ebc5d571d45 /package/network/ipv6/odhcp6c/files | |
parent | e65614064231bd19306b2402f1a732ed8a96016e (diff) | |
download | upstream-05c9507cd3a8847ae45b63cd29f75d6c44e18bc6.tar.gz upstream-05c9507cd3a8847ae45b63cd29f75d6c44e18bc6.tar.bz2 upstream-05c9507cd3a8847ae45b63cd29f75d6c44e18bc6.zip |
odhcp6c: Add support for userclass and vendorclass
SVN-Revision: 39478
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh index cffb3ec22a..387fa300cc 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh @@ -16,14 +16,16 @@ proto_dhcpv6_init_config() { proto_config_add_string "iface_dslite" proto_config_add_string "ifaceid" proto_config_add_string "sourcerouting" + proto_config_add_string "userclass" + proto_config_add_string "vendorclass" } proto_dhcpv6_setup() { local config="$1" local iface="$2" - 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 + 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 userclass vendorclass # Configure @@ -43,6 +45,10 @@ proto_dhcpv6_setup() { [ -n "$ifaceid" ] && append opts "-i$ifaceid" + [ -n "$vendorclass" ] && append opts "-V$vendorclass" + + [ -n "$userclass" ] && append opts "-u$userclass" + for opt in $reqopts; do append opts "-r$opt" done |