Skip to content
Snippets Groups Projects
Commit 995bcec1 authored by Omar Kallel's avatar Omar Kallel
Browse files

icwmp: dual stack

parent e0534180
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ PKG_VERSION:=9.1.21 ...@@ -12,7 +12,7 @@ PKG_VERSION:=9.1.21
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
PKG_SOURCE_VERSION:=6cee3b2fde788bafa286f556fd58d0265ec342e2 PKG_SOURCE_VERSION:=39513ff90b1a0f0750819b1b72e472ae9f4ce979
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip PKG_MIRROR_HASH:=skip
......
...@@ -11,12 +11,11 @@ config acs 'acs' ...@@ -11,12 +11,11 @@ config acs 'acs'
option retry_min_wait_interval '5' option retry_min_wait_interval '5'
#­ possible configs interval :[1000:65535] #­ possible configs interval :[1000:65535]
option retry_interval_multiplier '2000' option retry_interval_multiplier '2000'
option ipv6_enable '0'
option ip_version '4'
config cpe 'cpe' config cpe 'cpe'
option enable '1' option enable '1'
option default_wan_interface 'wan' option default_wan_interface 'wan'
option default_wan6_interface 'wan6'
option default_lan_interface 'lan' option default_lan_interface 'lan'
option log_to_console 'disable' option log_to_console 'disable'
option log_to_file 'disable' option log_to_file 'disable'
......
...@@ -320,7 +320,6 @@ validate_acs_section() ...@@ -320,7 +320,6 @@ validate_acs_section()
'compression:or("GZIP","Deflate","Disabled")' \ 'compression:or("GZIP","Deflate","Disabled")' \
'retry_min_wait_interval:range(1, 65535)' \ 'retry_min_wait_interval:range(1, 65535)' \
'retry_interval_multiplier:range(1000, 65535)' \ 'retry_interval_multiplier:range(1000, 65535)' \
'ipv6_enable:bool' \
'ssl_capath:string' 'ssl_capath:string'
} }
...@@ -330,6 +329,7 @@ validate_cpe_section() ...@@ -330,6 +329,7 @@ validate_cpe_section()
uci_validate_section cwmp cpe "cpe" \ uci_validate_section cwmp cpe "cpe" \
'interface:string' \ 'interface:string' \
'default_wan_interface:string' \ 'default_wan_interface:string' \
'default_wan6_interface:string' \
'log_to_console:or("enable","disable")' \ 'log_to_console:or("enable","disable")' \
'log_to_file:or("enable","disable")' \ 'log_to_file:or("enable","disable")' \
'log_severity:or("EMERG", "ALERT", "CRITIC" ,"ERROR", "WARNING", "NOTICE", "INFO", "DEBUG")' \ 'log_severity:or("EMERG", "ALERT", "CRITIC" ,"ERROR", "WARNING", "NOTICE", "INFO", "DEBUG")' \
...@@ -382,12 +382,15 @@ boot() { ...@@ -382,12 +382,15 @@ boot() {
config_load cwmp config_load cwmp
config_get_bool enable_cwmp cpe enable 1 config_get_bool enable_cwmp cpe enable 1
local wan_interface=""
config_get wan_interface cpe default_wan_interface "wan"
if [ "$enable_cwmp" = "0" ]; then if [ "$enable_cwmp" = "0" ]; then
return 0 return 0
fi fi
config_get dhcp_discovery acs dhcp_discovery "0" config_get dhcp_discovery acs dhcp_discovery "0"
config_get wan_interface cpe default_wan_interface "wan"
if [ "${dhcp_discovery}" = "enable" ] || [ "${dhcp_discovery}" = "1" ]; then if [ "${dhcp_discovery}" = "enable" ] || [ "${dhcp_discovery}" = "1" ]; then
# Set dhcp option 43 if not already configured # Set dhcp option 43 if not already configured
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment