Marcel Holtmann [Sat, 16 Apr 2011 17:03:43 +0000 (10:03 -0700)]
doc: Add API description for clock interface
Daniel Wagner [Fri, 15 Apr 2011 14:05:42 +0000 (16:05 +0200)]
session-api: Update documentation on EmergencyCall
Daniel Wagner [Fri, 15 Apr 2011 11:23:45 +0000 (13:23 +0200)]
session: Ignore non emergency session changes
In the case of an emergency situation, all non emergency session
changes will be ignored.
Daniel Wagner [Thu, 14 Apr 2011 11:58:01 +0000 (13:58 +0200)]
session: __connman_session_create initialize ecall correct
Daniel Wagner [Thu, 14 Apr 2011 11:45:33 +0000 (13:45 +0200)]
session: Call session_changed if setting changes
Daniel Wagner [Fri, 15 Apr 2011 13:34:24 +0000 (15:34 +0200)]
session: Move info_dirty info update_allowed_bearers
update_ecall sets also the dirty flag, so do it the same way for
update_allowed_bearers.
Daniel Wagner [Wed, 13 Apr 2011 13:46:32 +0000 (15:46 +0200)]
session: Only one session can set EmergencyCall
Also propate EmergencyCall setting to all sessions.
Daniel Wagner [Fri, 15 Apr 2011 06:58:34 +0000 (08:58 +0200)]
session: Introduce append all flag.
When the session is created all current settings should be send to the
Notify Object. One way is to look if the current value
(e.g. EmergencyCall) has changed to the last value. This seems like a
good plan though the code got quite ugly. So let's introduce a flag
for append all. This makes the initializing code quite simple.
Daniel Wagner [Thu, 14 Apr 2011 11:02:52 +0000 (13:02 +0200)]
session: Notify only changed settings
Daniel Wagner [Thu, 14 Apr 2011 06:54:15 +0000 (08:54 +0200)]
test-session: Allow multi test sessions
Guillaume Zajac [Thu, 14 Apr 2011 12:57:09 +0000 (14:57 +0200)]
TODO: Set owner on core private networks implementation
Daniel Wagner [Tue, 12 Apr 2011 11:09:13 +0000 (13:09 +0200)]
session: Handle AllowedBearers changes
Update service_list when AllowedBearers is changed.
Daniel Wagner [Mon, 11 Apr 2011 11:26:08 +0000 (13:26 +0200)]
session: Refactor service add/remove code
When a service is added or removed from a session, session.c has to
re-evaluate the new situation, e.g. should session.c try to connect to
a new service.
Daniel Wagner [Tue, 12 Apr 2011 06:53:35 +0000 (08:53 +0200)]
session: Keep a copy of last settings
In order to be able to find out which setting has changed (e.g. for
the notify update call), it's necessary to have a shadow copy (last
value) from all settings.
Daniel Wagner [Tue, 12 Apr 2011 09:31:44 +0000 (11:31 +0200)]
session: session2bearer return "" instead NULL
If an invalid bearer name is used, e.g. ethenret instead of ethernet
then session->name will be a NULL pointer. Appending a NULL string
with connman_dbus_property_append_basic is not allowed.
Daniel Wagner [Tue, 12 Apr 2011 06:53:35 +0000 (08:53 +0200)]
session: Track application connect/disconnect state
Daniel Wagner [Tue, 12 Apr 2011 06:53:35 +0000 (08:53 +0200)]
session: Add notify service_add()/remove()
Also sort service_list when it's populated with services.
Daniel Wagner [Tue, 12 Apr 2011 06:53:35 +0000 (08:53 +0200)]
notify: Add service_add()/remove()
Daniel Wagner [Tue, 12 Apr 2011 06:53:35 +0000 (08:53 +0200)]
session: Fix allowed_bearers initialization
Daniel Wagner [Tue, 12 Apr 2011 06:53:35 +0000 (08:53 +0200)]
session: Add session overview documentation
Jukka Rissanen [Tue, 5 Apr 2011 10:57:41 +0000 (13:57 +0300)]
gweb: numeric session address was not resolved properly.
Reported by: Sebastien Bianti <sebastien.bianti@linux.intel.com>
Samuel Ortiz [Mon, 11 Apr 2011 19:11:05 +0000 (21:11 +0200)]
config: Use static function to validate identifiers
Config file names are not exposed through D-Bus, so there is no need to
run connman_dbus_validate_ident() on them.
Checking for a readable string still makes sense though.
Samuel Ortiz [Mon, 11 Apr 2011 11:30:56 +0000 (13:30 +0200)]
config: Fix compiler warning on 64 bits hosts
Samuel Ortiz [Mon, 11 Apr 2011 10:01:00 +0000 (12:01 +0200)]
config: Default config protection set to TRUE
Configs will be protected, unless explicitely set otherwise.
Samuel Ortiz [Mon, 11 Apr 2011 09:43:13 +0000 (11:43 +0200)]
config: Remove the from_fs config field
D-Bus provisions will also be immutable, and will be allowed to overwrite
unprotected configs.
Samuel Ortiz [Mon, 11 Apr 2011 09:10:58 +0000 (11:10 +0200)]
config: Check SSID length before comparing protected SSIDs
Samuel Ortiz [Mon, 11 Apr 2011 09:07:37 +0000 (11:07 +0200)]
config: Save D-Bus provisioned files
They will not be able to overwrite protected configs though.
Samuel Ortiz [Fri, 8 Apr 2011 19:35:49 +0000 (21:35 +0200)]
config: Fix service pointers memory leak
Samuel Ortiz [Sat, 9 Apr 2011 00:20:09 +0000 (02:20 +0200)]
config: Do not overwrite protected services
Samuel Ortiz [Fri, 8 Apr 2011 18:08:33 +0000 (20:08 +0200)]
config: Add configuration protected flag
Samuel Ortiz [Fri, 8 Apr 2011 17:55:45 +0000 (19:55 +0200)]
config: Set from_fs to connman_bool_t
Samuel Ortiz [Fri, 8 Apr 2011 16:54:00 +0000 (18:54 +0200)]
profile: Remove profile D-Bus API
Samuel Ortiz [Fri, 8 Apr 2011 15:44:01 +0000 (17:44 +0200)]
config: Avoid create_config forward declaration
Henri Bragge [Tue, 5 Apr 2011 14:00:35 +0000 (17:00 +0300)]
test: Add script to test manager.ProvisionService method
Henri Bragge [Fri, 1 Apr 2011 08:41:41 +0000 (11:41 +0300)]
manager: Implement service provisioning via dbus
Henri Bragge [Fri, 1 Apr 2011 08:41:40 +0000 (11:41 +0300)]
config: Export a function to load service configs
__connman_config_load_service() function can be used by other parts of
ConnMan core to load service configurations, which can later be used
for service provisioning.
Within config.c, a special field (from_fs) will be used to mark which
configurations originate from the filesystem and which do not. This
information is needed to manage service immutability. Also a special
name "internal" will be used to label the "file" used for non-fs
configurations. A real file will not be created by ConnMan, and it will
be silently ignored if created by someone else. Filesystem storage can
be implemented later if necessary.
Henri Bragge [Fri, 1 Apr 2011 08:41:39 +0000 (11:41 +0300)]
service: Provide a function to query immutability
Henri Bragge [Fri, 1 Apr 2011 08:41:38 +0000 (11:41 +0300)]
config: Fix service configuration update
Service config should not be replaced after update (the existing struct
shall be reused).
Henri Bragge [Fri, 1 Apr 2011 08:41:37 +0000 (11:41 +0300)]
doc: Add service provisioning method in Manager API
Daniel Wagner [Mon, 11 Apr 2011 06:30:38 +0000 (08:30 +0200)]
session: connect_session: Fix unitialized callback
Furthermore, the service pointer has to be set to NULL when the
service is not idle, connecting, or connected.
Daniel Wagner [Fri, 8 Apr 2011 15:13:14 +0000 (17:13 +0200)]
session: connect_session: Check correct pointer
Daniel Wagner [Fri, 8 Apr 2011 08:22:01 +0000 (10:22 +0200)]
session: Fix Session.Connect()/Disconnect()
Instead of using __connman_service_session_connect() for connecting
session.c uses __connman_service_connect() directly
(__connman_service_disconnect accordingly). Those two calls are using
their own glib callback source and can update the session state
accoring the return value from __connman_service_connect()/disconnect().
Daniel Wagner [Fri, 8 Apr 2011 13:19:25 +0000 (15:19 +0200)]
service: Add __connman_service_is_idle()
Daniel Wagner [Fri, 8 Apr 2011 08:29:57 +0000 (10:29 +0200)]
session: Update connect/disconnect documation
Daniel Wagner [Thu, 7 Apr 2011 15:07:11 +0000 (17:07 +0200)]
session: service_state_changed() should propagate changes
Daniel Wagner [Thu, 7 Apr 2011 09:26:12 +0000 (11:26 +0200)]
session: Return invalid argument for wrong settings
Daniel Wagner [Wed, 6 Apr 2011 13:57:06 +0000 (15:57 +0200)]
session: Extend AllowedBearer documentation
Daniel Wagner [Wed, 6 Apr 2011 13:55:16 +0000 (15:55 +0200)]
session: Rename the Realtime flag to Priority
Also change the meaning of the flag, back to the original proposal
from Marcel Holtmann.
Daniel Wagner [Thu, 7 Apr 2011 08:13:41 +0000 (10:13 +0200)]
session: Handle empty AllowedBearers
If no AllowedBearers is set the match any rules apply. Add a match all
entry to the session->allowed_bearers. Otherwise, a NULL pointer is
assigned to session->bearer which leads to an crash:
#0 __strlen_sse2 () at ../sysdeps/x86_64/strlen.S:32
#1 0x000000310842889b in marshal_string (str=0x6a19c0, insert_at=24,
type=<value optimized out>, value=<value optimized out>, byte_order=108, pos_after=
0x7fffffffe140) at dbus-marshal-basic.c:778
#2 _dbus_marshal_write_basic (str=0x6a19c0, insert_at=24, type=<value optimized out>,
value=<value optimized out>, byte_order=108, pos_after=0x7fffffffe140)
at dbus-marshal-basic.c:858
#3 0x00000031084162e9 in _dbus_type_writer_write_basic_no_typecode (writer=0x7fffffffe120,
type=115, value=<value optimized out>) at dbus-marshal-recursive.c:1589
#4 _dbus_type_writer_write_basic (writer=0x7fffffffe120, type=115,
value=<value optimized out>) at dbus-marshal-recursive.c:2311
#5 0x000000310841a1e6 in dbus_message_iter_append_basic (iter=0x7fffffffe110, type=115, value=
0x6acf10) at dbus-message.c:2563
#6 0x00000000004588d5 in connman_dbus_property_append_basic (iter=0x7fffffffe190, key=
0x475c33 "Bearer", type=115, val=0x6acf10) at src/dbus.c:117
#7 0x000000000045ccb3 in connman_dbus_dict_append_basic (dict=0x7fffffffe260, key=
0x475c33 "Bearer", type=115, val=0x6acf10) at ./include/connman/dbus.h:112
#8 0x000000000045d36a in append_service (dict=0x7fffffffe260, session=0x6acef0)
at src/session.c:292
#9 0x000000000045d434 in append_notify_all (dict=0x7fffffffe260, session=0x6acef0)
at src/session.c:317
#10 0x000000000045d652 in session_notify_all (user_data=0x6acef0) at src/session.c:375
#11 0x00000031078435eb in g_timeout_dispatch (source=<value optimized out>,
callback=<value optimized out>, user_data=<value optimized out>) at gmain.c:3585
#12 0x0000003107841e33 in g_main_dispatch (context=0x695100) at gmain.c:2149
#13 g_main_context_dispatch (context=0x695100) at gmain.c:2702
#14 0x0000003107842610 in g_main_context_iterate (context=0x695100, block=1, dispatch=1,
self=<value optimized out>) at gmain.c:2780
#15 0x0000003107842c82 in g_main_loop_run (loop=0x6951e0) at gmain.c:2988
#16 0x000000000042e5e3 in main (argc=1, argv=0x7fffffffe698) at src/main.c:303
Daniel Wagner [Thu, 7 Apr 2011 07:51:11 +0000 (09:51 +0200)]
test-session: Add 'configure' and 'change' command
'configure' allows to set all settings which are passed
in during the creation of the session.
'change' allows to change the settings when the session
already exists.
Samuel Ortiz [Mon, 4 Apr 2011 19:55:31 +0000 (21:55 +0200)]
manager: Remove the Create/RemoveProfile D-Bus API
Provisioning is done through configuration files, not profiles (naming
could be changed as well). There is no need for multiple profiles files.
Samuel Ortiz [Mon, 4 Apr 2011 19:14:07 +0000 (21:14 +0200)]
profile: Remove useless wrappers
Samuel Ortiz [Mon, 4 Apr 2011 18:49:25 +0000 (20:49 +0200)]
configuration: Rename configuration to setting
Samuel Ortiz [Mon, 4 Apr 2011 17:21:27 +0000 (19:21 +0200)]
TODO update
Daniel Wagner [Mon, 4 Apr 2011 08:07:07 +0000 (10:07 +0200)]
session: Use RoamingPolicy instead of RoamingAllowed
Allowed are RoamingPolicy "default", "always", "forbidden", "national"
and "international"
Daniel Wagner [Mon, 4 Apr 2011 07:57:10 +0000 (09:57 +0200)]
test: Add test-session script to Makefile
Samuel Ortiz [Fri, 1 Apr 2011 23:42:45 +0000 (01:42 +0200)]
device: Set scan interval to 0 if background scaniing is disabled
Samuel Ortiz [Fri, 1 Apr 2011 23:40:48 +0000 (01:40 +0200)]
configuration: Add a main.conf example
Samuel Ortiz [Fri, 1 Apr 2011 23:35:28 +0000 (01:35 +0200)]
main: Initial configuration file support
Samuel Ortiz [Fri, 1 Apr 2011 19:10:02 +0000 (21:10 +0200)]
device: No need to save the scan interval
Since the scan interval can no longer be set through D-Bus, there is no
need to save it anymore.
Samuel Ortiz [Fri, 1 Apr 2011 19:06:33 +0000 (21:06 +0200)]
device: Reorder the scan_interval setting switch
All scan interval are set to 0, except for WiFi.
Henri Bragge [Thu, 31 Mar 2011 12:49:33 +0000 (15:49 +0300)]
test: Add identity response support to simple-agent
Support also responding with arbitrary combination of parameters,
instead of only one property at a time.
Henri Bragge [Thu, 31 Mar 2011 12:49:32 +0000 (15:49 +0300)]
agent: Implement EAP identity and passphrase query
EAP credentials will be queried whenever connecting to an 802.1X network
unless EAP-TLS is used OR if service is provisioned via .config file.
Besides adding Identity field into the API, this patch also removes the
restriction to receive value for only one field per response. Now both
Identity and Passphrase can be received in one call.
Henri Bragge [Thu, 31 Mar 2011 12:49:31 +0000 (15:49 +0300)]
service: Add function to get phase2 method
Henri Bragge [Thu, 31 Mar 2011 12:49:30 +0000 (15:49 +0300)]
service: Add function to set identity
Henri Bragge [Thu, 31 Mar 2011 12:49:29 +0000 (15:49 +0300)]
doc: Add EAP login support in Agent API
Samuel Ortiz [Fri, 1 Apr 2011 14:59:44 +0000 (16:59 +0200)]
gweb: Add port string to getaddrinfo
Without doing so, the socket address returned will have its port field
uninitialized.
Fixes BMC#14753
Fixes BMC#15026
Daniel Wagner [Thu, 31 Mar 2011 08:11:52 +0000 (10:11 +0200)]
test: Add session test script
Daniel Wagner [Thu, 31 Mar 2011 08:02:37 +0000 (10:02 +0200)]
session: Add dis/connect_session()
Furthermore add notify handler functions.
Daniel Wagner [Thu, 31 Mar 2011 08:02:36 +0000 (10:02 +0200)]
dbus: Add connman_dbus_setting_changed_*()
Daniel Wagner [Thu, 31 Mar 2011 08:02:35 +0000 (10:02 +0200)]
session: Hook into notifier session changes
Daniel Wagner [Thu, 31 Mar 2011 08:02:34 +0000 (10:02 +0200)]
notify: Add ipconfig notifiers
Daniel Wagner [Thu, 31 Mar 2011 08:02:33 +0000 (10:02 +0200)]
notify: Add service state notifiers
Daniel Wagner [Thu, 31 Mar 2011 08:02:32 +0000 (10:02 +0200)]
service: Add __connman_service_connect_session()
Daniel Wagner [Thu, 31 Mar 2011 08:02:31 +0000 (10:02 +0200)]
service: Add service setters/getters
Daniel Wagner [Thu, 31 Mar 2011 08:02:30 +0000 (10:02 +0200)]
service: Add __connman_service_get_list()
In order to get a list of services which can than be process further
in session.c, service.c has to populate a list of services.
Daniel Wagner [Thu, 31 Mar 2011 08:02:29 +0000 (10:02 +0200)]
session: Add session D-Bus settings handlers
Daniel Wagner [Thu, 31 Mar 2011 08:02:28 +0000 (10:02 +0200)]
service: Remove obsolete __connman_service_connect_type
Daniel Wagner [Thu, 31 Mar 2011 10:36:12 +0000 (12:36 +0200)]
session: Refactor session API
Refactor the D-Bus API of the session according the documentation.
All function and properties are only empty stubs.
Daniel Wagner [Thu, 31 Mar 2011 08:02:26 +0000 (10:02 +0200)]
manager: Add session mode
This also disables the auto connect feature.
Daniel Wagner [Thu, 31 Mar 2011 08:02:25 +0000 (10:02 +0200)]
service: Add __connman_service_disconnect_all()
Marcel Holtmann [Thu, 31 Mar 2011 08:02:24 +0000 (10:02 +0200)]
session: Update documentation
Marcel Holtmann [Wed, 30 Mar 2011 11:26:26 +0000 (13:26 +0200)]
Release 0.72
Mohamed Abbas [Tue, 29 Mar 2011 22:20:03 +0000 (15:20 -0700)]
ofono: Check for info pointer in set_active_reply
When ofono_disconnect() is being called before receiving the set_active()
reply back, info will be NULL.
Fixes BMC#14518
Marcel Holtmann [Mon, 28 Mar 2011 17:25:18 +0000 (19:25 +0200)]
build: Check for dbus_connection_can_send_type function
Marcel Holtmann [Mon, 28 Mar 2011 17:23:48 +0000 (19:23 +0200)]
build: Improve D-Bus checks for cross-compilation
Daniel Wagner [Mon, 28 Mar 2011 10:04:36 +0000 (12:04 +0200)]
provider: Do not deference NULL pointer
Fixes BMC#14940
Jukka Rissanen [Fri, 25 Mar 2011 13:03:19 +0000 (15:03 +0200)]
service: Return 6to4 tunnel status to dbus caller.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:18 +0000 (15:03 +0200)]
6to4: Check if the 6to4 tunnel is active or not.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:17 +0000 (15:03 +0200)]
service: Create/remove 6to4 tunnel.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:16 +0000 (15:03 +0200)]
6to4: Check the connectivity via tunnel after creating it.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:15 +0000 (15:03 +0200)]
6to4: Add 6to4 tunnel support.
Netlink support routines taken from iproute2 package.
Iproute2 source code can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git
Jukka Rissanen [Fri, 25 Mar 2011 13:03:14 +0000 (15:03 +0200)]
gweb: Add support for connecting to IPv6 host.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:13 +0000 (15:03 +0200)]
inet: Add routines to send IPv6 router solicitation message.
IPv6 router solicitation handling is from MIPL project.
Original code can be found at
git://linux-ipv6.org/gitroot/mipv6-daemon.git
and
http://www.linux-ipv6.org/gitweb/gitweb.cgi?p=gitroot/mipv6-daemon.git;a=blob;f=src/ndisc.c
Jukka Rissanen [Fri, 25 Mar 2011 13:03:12 +0000 (15:03 +0200)]
inet: MTU and tunnel setup functions added.
Jukka Rissanen [Fri, 25 Mar 2011 13:03:11 +0000 (15:03 +0200)]
doc: Add description about 6to4 tunnelling.
Daniel Wagner [Wed, 23 Mar 2011 17:33:34 +0000 (18:33 +0100)]
dhcp: Fix memory leak
And be a bit more clever when there is new dhcp lease. Only propagate
real changes in the configuration for nameservers, timeserver and PAC.
Samuel Ortiz [Wed, 23 Mar 2011 11:04:14 +0000 (12:04 +0100)]
service: Send D-Bus reply for Manager.ConnectService when service is ready
The D-Bus reply for Manager.ConnectService is currently immediatly
returning the service path. It should still return it, but only after the
service is ready or failed to connect.
Fixes BMC#14798
Fixes BMC#14808
Samuel Ortiz [Tue, 22 Mar 2011 20:55:30 +0000 (21:55 +0100)]
dhcp: Reset IP settings upon changes
The IP settings should not change when a DHCP renewal gives the same
configuration.
Samuel Ortiz [Tue, 22 Mar 2011 20:41:23 +0000 (21:41 +0100)]
ipconfig: Clear ipconfig address when removing it