framework/connectivity/connman.git
14 years agoDestroy timer of DHCP test program
Marcel Holtmann [Wed, 28 Jul 2010 17:32:53 +0000 (10:32 -0700)]
Destroy timer of DHCP test program

14 years agoFix result status handling with resolver library callback
Marcel Holtmann [Wed, 28 Jul 2010 02:06:42 +0000 (19:06 -0700)]
Fix result status handling with resolver library callback

14 years agoRemove udhcp plugin
Marcel Holtmann [Wed, 28 Jul 2010 01:40:18 +0000 (18:40 -0700)]
Remove udhcp plugin

14 years agoRemove resolvconf plugin
Marcel Holtmann [Wed, 28 Jul 2010 01:36:05 +0000 (18:36 -0700)]
Remove resolvconf plugin

14 years agoAdd debug option to resolver test tool
Marcel Holtmann [Wed, 28 Jul 2010 01:29:32 +0000 (18:29 -0700)]
Add debug option to resolver test tool

14 years agoFix issue with missing query id return value of resolver library
Marcel Holtmann [Wed, 28 Jul 2010 01:21:41 +0000 (18:21 -0700)]
Fix issue with missing query id return value of resolver library

14 years agoAdd function to cancel requests from resolver library
Marcel Holtmann [Wed, 28 Jul 2010 01:21:09 +0000 (18:21 -0700)]
Add function to cancel requests from resolver library

14 years agoAdd simple timeout handling for resolver lookups
Marcel Holtmann [Tue, 27 Jul 2010 07:03:15 +0000 (00:03 -0700)]
Add simple timeout handling for resolver lookups

14 years agoFix return value of nameserver functions of resolver library
Marcel Holtmann [Tue, 27 Jul 2010 06:45:14 +0000 (23:45 -0700)]
Fix return value of nameserver functions of resolver library

14 years agoFix user data for resolver library debug function prototype
Marcel Holtmann [Tue, 27 Jul 2010 06:43:51 +0000 (23:43 -0700)]
Fix user data for resolver library debug function prototype

14 years agoFix resolver test script to show lookup results
Marcel Holtmann [Tue, 27 Jul 2010 06:42:53 +0000 (23:42 -0700)]
Fix resolver test script to show lookup results

14 years agoAdd better result callback handling for resolver library
Marcel Holtmann [Tue, 27 Jul 2010 06:40:53 +0000 (23:40 -0700)]
Add better result callback handling for resolver library

14 years agoMake resolver test tool use internal resolver library
Marcel Holtmann [Mon, 26 Jul 2010 22:21:56 +0000 (15:21 -0700)]
Make resolver test tool use internal resolver library

14 years agoFix build issues with internal resolver library
Marcel Holtmann [Mon, 26 Jul 2010 22:21:12 +0000 (15:21 -0700)]
Fix build issues with internal resolver library

14 years agoAdd initial support for hostname lookup via resolver
Marcel Holtmann [Mon, 26 Jul 2010 22:20:20 +0000 (15:20 -0700)]
Add initial support for hostname lookup via resolver

14 years agoAdd functions for adding and flushing nameservers with resolver
Marcel Holtmann [Mon, 26 Jul 2010 18:37:21 +0000 (11:37 -0700)]
Add functions for adding and flushing nameservers with resolver

14 years agoUse top-level include directory for internal DHCP library
Marcel Holtmann [Mon, 26 Jul 2010 17:14:58 +0000 (10:14 -0700)]
Use top-level include directory for internal DHCP library

14 years agoAdd skeleton for internal resolver library
Marcel Holtmann [Mon, 26 Jul 2010 17:13:22 +0000 (10:13 -0700)]
Add skeleton for internal resolver library

14 years agoTry all technologies from start-scanning test script
Samuel Ortiz [Mon, 26 Jul 2010 16:09:17 +0000 (18:09 +0200)]
Try all technologies from start-scanning test script

14 years agoReturn html fetching error when recv returns 0
Samuel Ortiz [Mon, 26 Jul 2010 15:36:07 +0000 (17:36 +0200)]
Return html fetching error when recv returns 0

14 years agoStart ondemand connection when getting a DNS request while disconnected
Samuel Ortiz [Mon, 26 Jul 2010 10:17:41 +0000 (12:17 +0200)]
Start ondemand connection when getting a DNS request while disconnected

14 years agoHave ondemand_connected always return TRUE
Samuel Ortiz [Sat, 24 Jul 2010 09:51:28 +0000 (11:51 +0200)]
Have ondemand_connected always return TRUE

For now ondemand_connected() always return TRUE as the ondemand feature
is not complete yet.

14 years agoDon't try to connect when service list is empty
Samuel Ortiz [Sat, 24 Jul 2010 09:49:26 +0000 (11:49 +0200)]
Don't try to connect when service list is empty

14 years agodnsproxy flush method implementation
Samuel Ortiz [Mon, 26 Jul 2010 10:13:41 +0000 (12:13 +0200)]
dnsproxy flush method implementation

14 years agoAdd a resolver flush method
Samuel Ortiz [Fri, 23 Jul 2010 15:47:24 +0000 (17:47 +0200)]
Add a resolver flush method

The flush method sends any pending resolving requests. A resolver can
queue requests to some pending list when e.g. it knows ConnMan is offline.

14 years agoInitial on-demand connection implementation
Samuel Ortiz [Fri, 23 Jul 2010 15:09:50 +0000 (17:09 +0200)]
Initial on-demand connection implementation

This first implementation tracks the connection status, and provides
a simple API for starting the on-demand session.

14 years agoFree service data in service_reply
Zhenhua Zhang [Mon, 26 Jul 2010 01:11:36 +0000 (09:11 +0800)]
Free service data in service_reply

Avoid the memory leak of server_data.

14 years agoRelease 0.55
Marcel Holtmann [Sun, 25 Jul 2010 19:26:49 +0000 (12:26 -0700)]
Release 0.55

14 years agoFix script for testing counter interface
Marcel Holtmann [Sun, 25 Jul 2010 19:04:33 +0000 (12:04 -0700)]
Fix script for testing counter interface

14 years agoFix wrong prototype for DHCP client library reference counting
Marcel Holtmann [Sun, 25 Jul 2010 18:56:38 +0000 (11:56 -0700)]
Fix wrong prototype for DHCP client library reference counting

14 years agoAdd more debug output to DHCP client plugin
Marcel Holtmann [Sun, 25 Jul 2010 18:50:26 +0000 (11:50 -0700)]
Add more debug output to DHCP client plugin

14 years agoUpdate RegisterCounter method parameters
Marcel Holtmann [Sat, 24 Jul 2010 03:01:49 +0000 (20:01 -0700)]
Update RegisterCounter method parameters

14 years agoFix PATH of adapter_watch in bluetooth plugin
Yingan Deng [Fri, 23 Jul 2010 02:28:56 +0000 (10:28 +0800)]
Fix PATH of adapter_watch in bluetooth plugin

The Path of the adapter_watch signal is not right, so the adapter
status can not be synced.

14 years agoFix floating point error for unhandled dhcp options
Samuel Ortiz [Thu, 22 Jul 2010 16:17:51 +0000 (18:17 +0200)]
Fix floating point error for unhandled dhcp options

Unhandled dhcp options will trigger a divide by zero exception.

14 years agoInitial dhcp-lib based dhcp plugin
Samuel Ortiz [Thu, 22 Jul 2010 15:03:53 +0000 (17:03 +0200)]
Initial dhcp-lib based dhcp plugin

dhclient is still the favorite one, but the dhcp-lib one comes next to it.

14 years agoDisplay hostname to dhcp-test
Samuel Ortiz [Thu, 22 Jul 2010 14:53:45 +0000 (16:53 +0200)]
Display hostname to dhcp-test

14 years agogdhcp hostname option support
Samuel Ortiz [Thu, 22 Jul 2010 13:54:58 +0000 (15:54 +0200)]
gdhcp hostname option support

14 years agoFix GDHCPClientError typo
Samuel Ortiz [Thu, 22 Jul 2010 11:43:35 +0000 (13:43 +0200)]
Fix GDHCPClientError typo

14 years agoAdd iptables and DHCP test tools to .gitignore
Marcel Holtmann [Thu, 22 Jul 2010 06:24:26 +0000 (23:24 -0700)]
Add iptables and DHCP test tools to .gitignore

14 years agoExport the DHCP library functions for plugins
Marcel Holtmann [Thu, 22 Jul 2010 06:23:20 +0000 (23:23 -0700)]
Export the DHCP library functions for plugins

14 years agoAdd skeleton for generic DHCP plugin
Marcel Holtmann [Thu, 22 Jul 2010 06:21:58 +0000 (23:21 -0700)]
Add skeleton for generic DHCP plugin

14 years agoAdd initial version of DHCP client test tool
Martin Xu [Thu, 22 Jul 2010 06:14:27 +0000 (23:14 -0700)]
Add initial version of DHCP client test tool

14 years agoFix missing automake integration for DHCP client library
Marcel Holtmann [Thu, 22 Jul 2010 06:11:22 +0000 (23:11 -0700)]
Fix missing automake integration for DHCP client library

14 years agoAdd initial support for DHCP client library
Martin Xu [Thu, 22 Jul 2010 06:07:35 +0000 (23:07 -0700)]
Add initial support for DHCP client library

14 years agoTODO list update
Samuel Ortiz [Wed, 21 Jul 2010 22:05:51 +0000 (00:05 +0200)]
TODO list update

14 years agoCheck for NULL service pointer in nameserver host route routines
Samuel Ortiz [Wed, 21 Jul 2010 18:46:50 +0000 (20:46 +0200)]
Check for NULL service pointer in nameserver host route routines

VPNs will have a NULL service.

14 years agoFix outdated config file format document
Samuel Ortiz [Tue, 20 Jul 2010 22:45:07 +0000 (00:45 +0200)]
Fix outdated config file format document

14 years agoProvide unique identifier along with the interface callbacks
Marcel Holtmann [Thu, 15 Jul 2010 20:58:22 +0000 (13:58 -0700)]
Provide unique identifier along with the interface callbacks

14 years agoAdd service property and signals for LoginRequired
Marcel Holtmann [Thu, 15 Jul 2010 19:25:25 +0000 (12:25 -0700)]
Add service property and signals for LoginRequired

14 years agoFix Ethernet service type detection
Marcel Holtmann [Thu, 15 Jul 2010 19:03:37 +0000 (12:03 -0700)]
Fix Ethernet service type detection

14 years agoFix proper detection for pure Ethernet technology types
Marcel Holtmann [Thu, 15 Jul 2010 17:30:41 +0000 (10:30 -0700)]
Fix proper detection for pure Ethernet technology types

14 years agoAdd technology driver callbacks for adding/removing interfaces
Marcel Holtmann [Thu, 15 Jul 2010 17:05:55 +0000 (10:05 -0700)]
Add technology driver callbacks for adding/removing interfaces

14 years agoMonitor interface creation/removal and check DEVTYPE
Marcel Holtmann [Thu, 15 Jul 2010 16:51:29 +0000 (09:51 -0700)]
Monitor interface creation/removal and check DEVTYPE

14 years agoAdd simple technology driver support for Bluetooth
Marcel Holtmann [Thu, 15 Jul 2010 15:54:55 +0000 (17:54 +0200)]
Add simple technology driver support for Bluetooth

14 years agoAdd technology driver callback for setting Tethering
Marcel Holtmann [Thu, 15 Jul 2010 15:52:58 +0000 (17:52 +0200)]
Add technology driver callback for setting Tethering

14 years agoAdd callbacks for Tethering enable/disable on technology level
Marcel Holtmann [Thu, 15 Jul 2010 15:46:27 +0000 (17:46 +0200)]
Add callbacks for Tethering enable/disable on technology level

14 years agoAdd support for technology drivers
Marcel Holtmann [Thu, 15 Jul 2010 15:42:03 +0000 (17:42 +0200)]
Add support for technology drivers

14 years agochange data->gateway to data->ipv4_gateway in src/connection.c
Martin Xu [Wed, 14 Jul 2010 05:58:38 +0000 (13:58 +0800)]
change data->gateway to data->ipv4_gateway in src/connection.c

14 years agoAdd some extra autoconf/automake magic for iptables library
Marcel Holtmann [Wed, 14 Jul 2010 02:03:24 +0000 (23:03 -0300)]
Add some extra autoconf/automake magic for iptables library

14 years agoiptables test program
Samuel Ortiz [Wed, 14 Jul 2010 00:29:01 +0000 (02:29 +0200)]
iptables test program

This piece of code allows to add a -m quota -j DROP rule to a user defined
chain.

14 years agoAdd missing enable-tethering and disable-tethering test scripts
Marcel Holtmann [Tue, 13 Jul 2010 01:46:10 +0000 (22:46 -0300)]
Add missing enable-tethering and disable-tethering test scripts

14 years agoAdd empty dictionary for roaming counters for now
Marcel Holtmann [Tue, 13 Jul 2010 01:25:20 +0000 (22:25 -0300)]
Add empty dictionary for roaming counters for now

14 years agoUpdate counter test script to print roaming ones as well
Marcel Holtmann [Tue, 13 Jul 2010 01:25:03 +0000 (22:25 -0300)]
Update counter test script to print roaming ones as well

14 years agoUpdate counter API to differentiate between home and roaming counters
Marcel Holtmann [Tue, 13 Jul 2010 01:17:38 +0000 (22:17 -0300)]
Update counter API to differentiate between home and roaming counters

14 years agoDo not pass the -H option to dhclient task
Samuel Ortiz [Mon, 12 Jul 2010 19:05:33 +0000 (21:05 +0200)]
Do not pass the -H option to dhclient task

This option is only supported by RedHat's dhclient package.

14 years agoCheck for add_gateway() return value before dereferencing it
Samuel Ortiz [Mon, 12 Jul 2010 18:40:02 +0000 (20:40 +0200)]
Check for add_gateway() return value before dereferencing it

add_gateway() also returns NULL for zero length strings.

14 years agoUpdate nameserver host routes with DNS manual settings
Samuel Ortiz [Mon, 12 Jul 2010 18:37:32 +0000 (20:37 +0200)]
Update nameserver host routes with DNS manual settings

14 years agoReturn manually set gateway when the ipdevice one is NULL
Samuel Ortiz [Mon, 12 Jul 2010 16:56:58 +0000 (18:56 +0200)]
Return manually set gateway when the ipdevice one is NULL

With N (> 1) online services, only the connected device will have its
gateway set (as the default route). If the remaining ones have manually set
gateways, then let's return that.

14 years agoNo host route needed for nameservers on the same subnet
Samuel Ortiz [Mon, 12 Jul 2010 16:45:59 +0000 (18:45 +0200)]
No host route needed for nameservers on the same subnet

14 years agoSet DNS host routes before toggling the service READY state
Samuel Ortiz [Thu, 8 Jul 2010 17:27:40 +0000 (19:27 +0200)]
Set DNS host routes before toggling the service READY state

update_nameservers() is called when a service hits the READY state. The DNS
proxy code will be able to connect to the added nameservers if the right
host routes have been set.

14 years agoFactorize host route setting routine
Samuel Ortiz [Thu, 8 Jul 2010 17:08:14 +0000 (19:08 +0200)]
Factorize host route setting routine

14 years agoRemove child watch when connman_task is freed
Pekka Pessi [Mon, 12 Jul 2010 14:48:46 +0000 (17:48 +0300)]
Remove child watch when connman_task is freed

14 years agoUpdate counter API documentation
Marcel Holtmann [Sat, 10 Jul 2010 23:24:44 +0000 (20:24 -0300)]
Update counter API documentation

14 years agoFix SEGV at first startup
David Woodhouse [Fri, 9 Jul 2010 21:45:24 +0000 (23:45 +0200)]
Fix SEGV at first startup

connman_wifi_load_ssid() can return NULL. Best not to dereference that.
This fixes Meego's bug #3787.

14 years agoFix connman_wifi_load_ssid
Samuel Ortiz [Fri, 9 Jul 2010 21:34:32 +0000 (23:34 +0200)]
Fix connman_wifi_load_ssid

The returned string array must be NULL terminated, and the groups array
should be freed as well.

14 years agoRemove task plugin
Samuel Ortiz [Fri, 9 Jul 2010 16:08:57 +0000 (18:08 +0200)]
Remove task plugin

14 years agoConvert udhcp plugin to connman task
Samuel Ortiz [Fri, 9 Jul 2010 16:05:41 +0000 (18:05 +0200)]
Convert udhcp plugin to connman task

The udhcp plugin was still using the old and deprecated
plugins/task.c API.

14 years agoAdd DHCP plugins priority flags
Samuel Ortiz [Fri, 9 Jul 2010 15:45:26 +0000 (17:45 +0200)]
Add DHCP plugins priority flags

14 years agoParse boolean flag from test-connman argv
Daniel Wagner [Fri, 9 Jul 2010 15:42:04 +0000 (17:42 +0200)]
Parse boolean flag from test-connman argv

Any non empty string evaluates to True which is clearly not intended.

14 years agoFix crash in dhclient release
Pekka Pessi [Fri, 9 Jul 2010 11:14:24 +0000 (14:14 +0300)]
Fix crash in dhclient release

14 years agoKeep start/stop state of statistic timers
Daniel Wagner [Fri, 9 Jul 2010 08:10:09 +0000 (10:10 +0200)]
Keep start/stop state of statistic timers

When starting a ethernet device the sequence of the
device state (UP, LOWER_UP) from RTNL is different then
by a WiFi device.

For an ethernet device the entering UP and LOWER_UP
arrives together. Whereas for WiFi device we get
a entering UP and leaving LOWER_UP. This results in
a call on lower_down first.

Unfortunatly, the stats_start and stats_stop should
be called in the right order. This fix tracks the
statistics enabled/disabled state.

14 years agoAdd additionals statistics counters
Daniel Wagner [Thu, 8 Jul 2010 13:32:02 +0000 (15:32 +0200)]
Add additionals statistics counters

Adding rx_packets, tx_packets, rx_errors, tx_errors,
rx_dropped and tx_dropped counters.

14 years agoFix my own email address
Marcel Holtmann [Thu, 8 Jul 2010 13:16:31 +0000 (10:16 -0300)]
Fix my own email address

14 years agoMake test-counter byte counters human readable
Daniel Wagner [Thu, 8 Jul 2010 12:17:41 +0000 (14:17 +0200)]
Make test-counter byte counters human readable

14 years agoSave counter values during shutdown
Daniel Wagner [Thu, 8 Jul 2010 09:11:11 +0000 (11:11 +0200)]
Save counter values during shutdown

With moving the start/stop function to the lower_up/lower_down
fucntions in service, the statistic was not stored anymore
when connman was shutdown. Reason being that lower_down will
be called only from a RTNL event which is asynchron. So when
the ethernet_disable is called connman doesn't see the
corresponding UP,LOWER_UP event.

14 years agoUpdate TODO list
Samuel Ortiz [Mon, 5 Jul 2010 18:14:17 +0000 (20:14 +0200)]
Update TODO list

14 years agoStart/stop statistics depending on LOWER_UP state
Daniel Wagner [Wed, 7 Jul 2010 16:03:15 +0000 (18:03 +0200)]
Start/stop statistics depending on LOWER_UP state

The statistic counters should be updated as soon the
interface enters LOWER_UP state ('cable' connected).

Therefore we do not depend on the state of the
Service object, which fixes also the shortcoming
we have currently with private connections. Those
services do not enter the ONLINE state.

At least for ethernet the lower_up callback
has not been called because the service was
created 'too late'.

14 years agoInitialize offset counters
Daniel Wagner [Wed, 7 Jul 2010 12:43:38 +0000 (14:43 +0200)]
Initialize offset counters

The Service object needs the the first update of
the statistic counters to know the offset for its
calculation. Until now, the first timeout of timer
was used to update this values. This fix triggers
an update only for initialiting the offset values
and does not notify the counter clients.

14 years agoRemove the udev based RFKILL switch processing
Marcel Holtmann [Tue, 6 Jul 2010 15:47:36 +0000 (12:47 -0300)]
Remove the udev based RFKILL switch processing

14 years agoMake .mailmap rule simpler
Marcel Holtmann [Mon, 5 Jul 2010 13:23:21 +0000 (10:23 -0300)]
Make .mailmap rule simpler

14 years agoAdd .mailmap file to fix Luiz's name spelling in git shortlog
Marcel Holtmann [Mon, 5 Jul 2010 13:17:55 +0000 (10:17 -0300)]
Add .mailmap file to fix Luiz's name spelling in git shortlog

14 years agoAdd initial bits and pieces for Tethering support
Marcel Holtmann [Sat, 3 Jul 2010 08:21:52 +0000 (10:21 +0200)]
Add initial bits and pieces for Tethering support

14 years agoUpdate service statistics
Daniel Wagner [Wed, 30 Jun 2010 17:22:55 +0000 (19:22 +0200)]
Update service statistics

Instead of collecting statistics on interface name base and storing it
local in counter.c, update the Service object.

counter.c maps interface names to Service objects.
The assumption is made that there is a 1:1 mapping between Service objects
and interface name.

A Counter object will only show Service object statistics for services in
the ready state. There is no interface (yet) for retrieving information on
Service objects in idle/failure/configuration/.. state.

14 years agoAdd service statistic data structure
Daniel Wagner [Wed, 30 Jun 2010 11:59:51 +0000 (13:59 +0200)]
Add service statistic data structure

The static values are maintained in the Service object and exposed
through simple accessors.

When a Service object enters the ready state it registers itself at
Counter.

If the Service object is leaving the ready state it will de-register
itself from Counter and consequently it will not be updated anymore.

The user can shorten the update interval when he registers a Counter
object with a shorter interval value.

The statistic is stored in the profile file.
Only the current value is stored, no history.

If there is not Counter object the stats wont be upated. This short
coming will be addressed by the 'data threshold netfilter module'
patches.

14 years agoCentralize rntl update timers
Daniel Wagner [Wed, 30 Jun 2010 11:59:50 +0000 (13:59 +0200)]
Centralize rntl update timers

Instead of creating a new rntl trigger for each Counter object move this
part to the rtnl core. Only one update trigger will be registered at RTNL.
The minimum interval will used for the timeout callback.

14 years agoSet the network roaming toggle according to oFono status
Samuel Ortiz [Fri, 25 Jun 2010 15:36:12 +0000 (17:36 +0200)]
Set the network roaming toggle according to oFono status

oFono's NetworkRegistration interface gives a status propery indicating
(among other things) if we're roaming or not.

14 years agoAdd the -g option to ntpd
Samuel Ortiz [Fri, 25 Jun 2010 13:05:14 +0000 (15:05 +0200)]
Add the -g option to ntpd

This allows for setting the clock regardless of the time offset.

14 years agoCreate service ipconfig only when it's NULL
Samuel Ortiz [Fri, 25 Jun 2010 12:56:05 +0000 (14:56 +0200)]
Create service ipconfig only when it's NULL

If a service already has an allocated ipconfig layer but the corresponding
network index is negative, the only thing left to do is to set the ipconfig
index properly.
The oFono plugin toggles the network index between connection while the
service ipconfig layer stays alive.

14 years agoMore realistic TODO list
Samuel Ortiz [Thu, 24 Jun 2010 13:57:02 +0000 (15:57 +0200)]
More realistic TODO list

Expand the TODO list with more tasks along with their priorities and
complexity. A more detailed task description is still missing.

14 years agoRelease 0.54
Marcel Holtmann [Thu, 17 Jun 2010 12:47:06 +0000 (14:47 +0200)]
Release 0.54