mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
No description
script optimization Voice parameters: AddObject/DeleteObject Voice parameters: Vendor specific parameter Concerning what we did in the optimization task: 1) The main script (freecwmp) is loaded only 1 time during the session. the load is done just before the start of the session. the function scripts are loaded within the load of the main script (freecwmp) only one time. The old behaviour consist to load the main script (freecwmp) and the function scripts for each parameter treatment. Core code (C) and Scripts are changed 2) Optimize the preparing of inform message. old script take ~30s and now it takes ~2s. Core code (C) and Scripts are changed 3) Execute only the function related to the parameter. For example if the requested parameter is "InternetGatewayDevice.ManagementServer.URL" then the main script freecwmp will execute only the related function of this parameter which is get_management_server(). The old behaviour consist to execute all get functions: get_wan_device(), get_lan_device(), get_device_info()... 4) Minimize the size of the script files: Replace some blocks o othe source code by a functions |
||
|---|---|---|
| bin | ||
| config | ||
| inc | ||
| init | ||
| scripts | ||
| AUTHORS | ||
| backupSession.c | ||
| ChangeLog | ||
| config.c | ||
| configure.ac | ||
| COPYING | ||
| cwmp.c | ||
| digestauth.c | ||
| event.c | ||
| external.c | ||
| http.c | ||
| jshn.c | ||
| kcwmp.c | ||
| log.c | ||
| Makefile.am | ||
| md5.c | ||
| netlink.c | ||
| NEWS | ||
| README | ||
| time.c | ||
| ubus.c | ||
| xml.c | ||
configure autotools =================== $ autoreconf -if clean it all up =============== $ make distclean or $ git clean -df development environment ======================= Make sure you have all the packages installed from packages-arch-tr069 git repository. $ ln -sf `pwd`/scripts/defaults /usr/share/freecwmp/defaults $ ln -sf `pwd`/scripts/functions/common /usr/share/freecwmp/functions/common $ ln -sf `pwd`/scripts/functions/device_info /usr/share/freecwmp/functions/device_info $ ln -sf `pwd`/scripts/functions/lan_device /usr/share/freecwmp/functions/lan_device $ ln -sf `pwd`/scripts/functions/management_server /usr/share/freecwmp/functions/management_server $ ln -sf `pwd`/scripts/functions/voice_service /usr/share/freecwmp/functions/voice_service $ ln -sf `pwd`/scripts/functions/wan_device /usr/share/freecwmp/functions/wan_device $ ln -sf `pwd`/scripts/functions/x_freecwmp_org /usr/share/freecwmp/functions/x_freecwmp_org $ ln -sf `pwd`/scripts/functions/device_users /usr/share/freecwmp/functions/device_users $ ln -sf `pwd`/scripts/functions/device_hosts /usr/share/freecwmp/functions/device_hosts $ ln -sf `pwd`/scripts/functions/device_routing /usr/share/freecwmp/functions/device_routing $ ln -sf `pwd`/scripts/functions/device_ip /usr/share/freecwmp/functions/device_ip run cwmpd ============= $ export UCI_CONFIG_DIR="`pwd`/config/" $ export UBUS_SOCKET="/tmp/ubus.sock" $ ./bin/cwmpd -f