framework/connectivity/connman.git
13 years agoAdd minimal debug support for DHCP client library
Marcel Holtmann [Thu, 29 Jul 2010 20:44:11 +0000 (13:44 -0700)]
Add minimal debug support for DHCP client library

13 years agoAdd CONNMAN_DHCP_DEBUG handling to DHCP plugin
Marcel Holtmann [Thu, 29 Jul 2010 20:39:46 +0000 (13:39 -0700)]
Add CONNMAN_DHCP_DEBUG handling to DHCP plugin

13 years agoDisable offline mode when enabling a technology from offline mode
Samuel Ortiz [Thu, 29 Jul 2010 18:10:02 +0000 (20:10 +0200)]
Disable offline mode when enabling a technology from offline mode

When enabling a technology in offline mode ConnMan now enables said
technology, set offline mode to false while keeping the other technologies
off.

13 years agoSet default IPv6 method as off
Martin Xu [Thu, 29 Jul 2010 04:38:37 +0000 (12:38 +0800)]
Set default IPv6 method as off

13 years agoFix dhclient-test.c build error
Samuel Ortiz [Thu, 29 Jul 2010 00:20:08 +0000 (02:20 +0200)]
Fix dhclient-test.c build error

13 years agoSeparate v4 and v6 gateways in connman_ipdevice structure
Samuel Ortiz [Wed, 28 Jul 2010 18:28:56 +0000 (20:28 +0200)]
Separate v4 and v6 gateways in connman_ipdevice structure

13 years agoAdd a family argument to the ipconfig routing functions
Samuel Ortiz [Wed, 28 Jul 2010 18:22:45 +0000 (20:22 +0200)]
Add a family argument to the ipconfig routing functions

13 years agoAdd a family member to connman_ipaddress
Samuel Ortiz [Wed, 28 Jul 2010 18:13:56 +0000 (20:13 +0200)]
Add a family member to connman_ipaddress

13 years agoUpdate test scripts for IPv6 support
Samuel Ortiz [Wed, 28 Jul 2010 17:59:05 +0000 (19:59 +0200)]
Update test scripts for IPv6 support

13 years agoTrack IPv6 address changes through rtnl
Samuel Ortiz [Wed, 28 Jul 2010 17:55:36 +0000 (19:55 +0200)]
Track IPv6 address changes through rtnl

13 years agoInitial IPv6 support
Martin Xu [Wed, 28 Jul 2010 15:28:42 +0000 (17:28 +0200)]
Initial IPv6 support

Only manual/fixed setting supported for now.

13 years agoFix timer handling for DHCP library test tool
Marcel Holtmann [Wed, 28 Jul 2010 22:28:07 +0000 (15:28 -0700)]
Fix timer handling for DHCP library test tool

13 years agoAdd tool for standalone dhclient testing
Marcel Holtmann [Wed, 28 Jul 2010 20:25:22 +0000 (13:25 -0700)]
Add tool for standalone dhclient testing

13 years agoAdd some extra checks to dhclient callout script
Marcel Holtmann [Wed, 28 Jul 2010 19:12:31 +0000 (12:12 -0700)]
Add some extra checks to dhclient callout script

13 years agoReport human readable status information for resolver result
Marcel Holtmann [Wed, 28 Jul 2010 18:50:42 +0000 (11:50 -0700)]
Report human readable status information for resolver result

13 years agoAdd proper status support for lookups via resolver library
Marcel Holtmann [Wed, 28 Jul 2010 18:50:16 +0000 (11:50 -0700)]
Add proper status support for lookups via resolver library

13 years agoAdd simple timer for resolver test program
Marcel Holtmann [Wed, 28 Jul 2010 17:34:12 +0000 (10:34 -0700)]
Add simple timer for resolver test program

13 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

13 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

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

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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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.

13 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

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

13 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.

13 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.

13 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.

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

13 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

13 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

13 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

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

13 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.

13 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.

13 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.

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

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

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

13 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

13 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

13 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

13 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

13 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

13 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

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

13 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.

13 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

13 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

13 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

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

13 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

13 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

13 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

13 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

13 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

13 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

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

13 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

13 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

13 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.

13 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

13 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

13 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

13 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

13 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.

13 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.

13 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

13 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.

13 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

13 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.

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

13 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

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

13 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.

13 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.

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

13 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.

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

13 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.

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

13 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.

13 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.

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