No description
Find a file
Mohamed Kallel 27b73d5af7 PIVA::DELIVERY 8
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
2013-07-24 16:05:32 +01:00
bin more freecwmp move 2013-07-17 16:23:54 +02:00
config PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
inc PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
init PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
scripts PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
AUTHORS more freecwmp move 2013-07-17 16:23:54 +02:00
backupSession.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
ChangeLog more freecwmp move 2013-07-17 16:23:54 +02:00
config.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
configure.ac more freecwmp move 2013-07-17 16:23:54 +02:00
COPYING more freecwmp move 2013-07-17 16:23:54 +02:00
cwmp.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
digestauth.c more freecwmp move 2013-07-17 16:23:54 +02:00
event.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
external.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
http.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
jshn.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
kcwmp.c more freecwmp move 2013-07-17 16:23:54 +02:00
log.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
Makefile.am more freecwmp move 2013-07-17 16:23:54 +02:00
md5.c more freecwmp move 2013-07-17 16:23:54 +02:00
netlink.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
NEWS more freecwmp move 2013-07-17 16:23:54 +02:00
README more freecwmp move 2013-07-17 16:23:54 +02:00
time.c more freecwmp move 2013-07-17 16:23:54 +02:00
ubus.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00
xml.c PIVA::DELIVERY 8 2013-07-24 16:05:32 +01:00

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