framework/connectivity/connman.git
12 years agotools: Add iptables_test builtin chain policy changes
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:59 +0000 (10:24 +0300)]
tools: Add iptables_test builtin chain policy changes

12 years agotools: Initialize the iptables_test invert flag properly
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:58 +0000 (10:24 +0300)]
tools: Initialize the iptables_test invert flag properly

The invert flag is specific to each option so it needs to be initialized
after each succesfully handled option.

12 years agotools: Disable getopt unknown option display in iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:57 +0000 (10:24 +0300)]
tools: Disable getopt unknown option display in iptables_test

12 years agotools: Add support for rule matches list to iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:56 +0000 (10:24 +0300)]
tools: Add support for rule matches list to iptables_test

12 years agotools: Finalize matches extensions setup in iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:55 +0000 (10:24 +0300)]
tools: Finalize matches extensions setup in iptables_test

12 years agotools: Add extensions options parsing for matches to iptables-test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:54 +0000 (10:24 +0300)]
tools: Add extensions options parsing for matches to iptables-test

12 years agotools: Finalize target extensions setup in iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:53 +0000 (10:24 +0300)]
tools: Finalize target extensions setup in iptables_test

12 years agotools: Add extensions options parsing for target to iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:52 +0000 (10:24 +0300)]
tools: Add extensions options parsing for target to iptables_test

12 years agotools: Add x6_options matches handling to iptables-test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:51 +0000 (10:24 +0300)]
tools: Add x6_options matches handling to iptables-test

12 years agotools: Add x6_options target handling to iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:50 +0000 (10:24 +0300)]
tools: Add x6_options target handling to iptables_test

12 years agotools: Target and matches preparation function moves in iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:49 +0000 (10:24 +0300)]
tools: Target and matches preparation function moves in iptables_test

12 years agotools: Add matches rule list loading support for iptables_test
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:48 +0000 (10:24 +0300)]
tools: Add matches rule list loading support for iptables_test

12 years agotools: Refactor iptables_test matches preparation
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:47 +0000 (10:24 +0300)]
tools: Refactor iptables_test matches preparation

12 years agotools: Move iptables_test target options merge in prepare_target
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:46 +0000 (10:24 +0300)]
tools: Move iptables_test target options merge in prepare_target

12 years agotools: Code preparation for iptable-test option handling
Tomasz Bursztyka [Thu, 27 Oct 2011 07:24:45 +0000 (10:24 +0300)]
tools: Code preparation for iptable-test option handling

12 years agoservice: Remove the gateways when removing the service
Jukka Rissanen [Tue, 18 Oct 2011 10:17:46 +0000 (13:17 +0300)]
service: Remove the gateways when removing the service

This is needed because connection.c takes a reference
of the service so we want to remove the gateways properly
so that service can be deleted and IP addresses released
when disconnection comes from network side (like when
ethernet cable is disconnected).

12 years agotools: Fix compilation in MeeGo
Jukka Rissanen [Wed, 26 Oct 2011 07:15:59 +0000 (10:15 +0300)]
tools: Fix compilation in MeeGo

The _GNU_SOURCE needs to be defined so that O_CLOEXEC
symbols can be found in system header files.
The source does not compile without the patch in MeeGo 1.2

12 years agocore: Fix compilation in MeeGo
Jukka Rissanen [Wed, 26 Oct 2011 07:15:58 +0000 (10:15 +0300)]
core: Fix compilation in MeeGo

The _GNU_SOURCE needs to be defined so that O_CLOEXEC
symbols can be found in system header files.
The source does not compile without the patch in MeeGo 1.2

12 years agoplugins: Fix compilation in MeeGo
Jukka Rissanen [Wed, 26 Oct 2011 07:15:57 +0000 (10:15 +0300)]
plugins: Fix compilation in MeeGo

The _GNU_SOURCE needs to be defined so that O_CLOEXEC
symbol can be found in system header files.
The source does not compile without the patch in MeeGo 1.2

12 years agotools: Add SOCK_CLOEXEC to socket()
Daniel Wagner [Sun, 23 Oct 2011 12:16:30 +0000 (14:16 +0200)]
tools: Add SOCK_CLOEXEC to socket()

Make sure all file descriptor are closed.

12 years agocore: Add SOCK_CLOEXEC to socket()
Daniel Wagner [Sun, 23 Oct 2011 12:16:29 +0000 (14:16 +0200)]
core: Add SOCK_CLOEXEC to socket()

Make sure all file descriptor are closed.

12 years agoplugins: Add SOCK_CLOEXEC to socket()
Daniel Wagner [Sun, 23 Oct 2011 12:16:28 +0000 (14:16 +0200)]
plugins: Add SOCK_CLOEXEC to socket()

Make sure all file descriptor are closed.

12 years agogweb: Add SOCK_CLOEXEC to socket()
Daniel Wagner [Sun, 23 Oct 2011 12:16:27 +0000 (14:16 +0200)]
gweb: Add SOCK_CLOEXEC to socket()

Make sure all file descriptor are closed.

12 years agogdhcp: Add SOCK_CLOEXEC to socket()
Daniel Wagner [Sun, 23 Oct 2011 12:16:26 +0000 (14:16 +0200)]
gdhcp: Add SOCK_CLOEXEC to socket()

Make sure all file descriptor are closed.

12 years agocore: Add O_CLOEXEC to open()
Daniel Wagner [Sun, 23 Oct 2011 12:16:25 +0000 (14:16 +0200)]
core: Add O_CLOEXEC to open()

Make sure all file descriptor are closed.

12 years agoplugins: Add O_CLOEXEC to open()
Daniel Wagner [Sun, 23 Oct 2011 12:16:24 +0000 (14:16 +0200)]
plugins: Add O_CLOEXEC to open()

Make sure all file descriptor are closed.

12 years agotools: Add O_CLOEXEC to open()
Daniel Wagner [Sun, 23 Oct 2011 12:16:23 +0000 (14:16 +0200)]
tools: Add O_CLOEXEC to open()

Make sure all file descriptor are closed.

12 years agoservice: Activate loose mode routing
Jukka Rissanen [Fri, 21 Oct 2011 08:16:55 +0000 (11:16 +0300)]
service: Activate loose mode routing

If more than one service is connected at the same time,
then activate loose mode routing by setting the
/proc/sys/net/ipv4/conf/all/rp_filter to value 2
If the loose mode routing is not activated, then packets
are not routed properly if services are connected to same
subnet.

The original value of rp_filter is restored when the other
services are disconnected and only one service is connected.

For details of rp_filter setting, see Linux kernel file
Documentation/networking/ip-sysctl.txt

Fixes BMC#23606

12 years agoipconfig: Set/unset IPv4 rp_filter setting
Jukka Rissanen [Fri, 21 Oct 2011 08:16:54 +0000 (11:16 +0300)]
ipconfig: Set/unset IPv4 rp_filter setting

12 years agonetwork: Remove obsolete service lookup in disconnect
Jukka Rissanen [Tue, 18 Oct 2011 13:36:29 +0000 (16:36 +0300)]
network: Remove obsolete service lookup in disconnect

12 years agoservice: Check NULL pointer
Jukka Rissanen [Tue, 18 Oct 2011 13:36:11 +0000 (16:36 +0300)]
service: Check NULL pointer

12 years agosession: Do not select ongoing service again
Daniel Wagner [Mon, 17 Oct 2011 13:50:17 +0000 (15:50 +0200)]
session: Do not select ongoing service again

In case Session.Connect() is called several times while
the selected services is still going from the IDLE state
to ONLINE state (or error state), do not call
select_and_connect() again. This leads to an inconsistent
ref counting on the service.

Fixes BMC#23630

12 years agowispr: Reference count service properly according to contexts
Tomasz Bursztyka [Mon, 17 Oct 2011 13:51:32 +0000 (16:51 +0300)]
wispr: Reference count service properly according to contexts

12 years agowispr: wispr_start will always re-start a new context
Tomasz Bursztyka [Mon, 17 Oct 2011 13:51:31 +0000 (16:51 +0300)]
wispr: wispr_start will always re-start a new context

12 years agoservice: wispr fallback when wpad fails
Tomasz Bursztyka [Mon, 17 Oct 2011 12:52:24 +0000 (15:52 +0300)]
service: wispr fallback when wpad fails

12 years agowpad: Reference count service properly
Tomasz Bursztyka [Mon, 17 Oct 2011 12:52:23 +0000 (15:52 +0300)]
wpad: Reference count service properly

12 years agodhcp: Reference count network properly
Jukka Rissanen [Wed, 12 Oct 2011 13:41:46 +0000 (16:41 +0300)]
dhcp: Reference count network properly

12 years agoinet: Cleanup router solicitation callback properly after error
Jukka Rissanen [Wed, 12 Oct 2011 13:05:18 +0000 (16:05 +0300)]
inet: Cleanup router solicitation callback properly after error

The cleanup routine must be called after an error and after
calling RS callback, otherwise the timeout is not removed
in right time.

12 years agonotifier: Don't unnecessarily report "online" state on disconnect
Patrik Flykt [Wed, 12 Oct 2011 10:56:38 +0000 (13:56 +0300)]
notifier: Don't unnecessarily report "online" state on disconnect

When a service disconnects, don't send an extra 'online'
net.connman.Manager.StateChanged signal if another service is still
connected.

Fixes BMC#23421

12 years agowispr: Set LoginRequired when wispr login is requested
Tomasz Bursztyka [Mon, 10 Oct 2011 10:09:11 +0000 (13:09 +0300)]
wispr: Set LoginRequired when wispr login is requested

Setting it while handling redirection is not bullet proof in case
of AP which does not implement well wispr and sends wispr content
with no redirection at first place.

Fixes BMC#23424

12 years agodnsproxy: Fix can't resolv hostname
Yu A Wang [Tue, 11 Oct 2011 09:46:00 +0000 (09:46 +0000)]
dnsproxy: Fix can't resolv hostname

When we resolv hostname, we will append the domain name then we may
get question section mismatch error. After we get the DNS reply
we can remove the domain name again. This works well with one host
with only a A record, it may failed when the reply with many cnames
or additional records due to message compression error. But in a
local network we only resolv hostname will not meet these issues.

Modified by Julien Massot according to Samuel's comments.

12 years agoservice: Update service order when changing the favorite flag
Samuel Ortiz [Mon, 10 Oct 2011 16:12:35 +0000 (18:12 +0200)]
service: Update service order when changing the favorite flag

If the service order is not changed at the same time as the favorite
status, the service may stay on top of the service list despite not
being a favorite anymore.

Patch based on an initial fix from Danny Jeongseok Seo <s.seo@samsung.com>.

12 years agoMakefile: Add missed test files to test_scripts
Yu A Wang [Mon, 10 Oct 2011 02:29:23 +0000 (22:29 -0400)]
Makefile: Add missed test files to test_scripts

Fixes BMC#23418

12 years agoservice: Load ipconfig according to service identifier
Yu A Wang [Mon, 10 Oct 2011 01:44:51 +0000 (21:44 -0400)]
service: Load ipconfig according to service identifier

We have seperate the storage file to different directories according
to service identifier, then we need to load it according to service
identifier too.

Fixes BMC#23475

12 years agoservice: Call __connman_service_disconnect from remove_service
Danny Jeongseok Seo [Fri, 7 Oct 2011 19:31:03 +0000 (21:31 +0200)]
service: Call __connman_service_disconnect from remove_service

Just calling __connman_network_disconnect() means missing proxy and
ipconfig clearance.

12 years agoipconfig: Show IPv4.Configuration properties for FIXED
Patrik Flykt [Fri, 7 Oct 2011 09:35:41 +0000 (12:35 +0300)]
ipconfig: Show IPv4.Configuration properties for FIXED

Show IPv4.Configuration properties also for
CONNMAN_IPCONFIG_METHOD_FIXED configuration method.

Fixes BMC#23444

12 years agoconfigure: Print errors if VPN binaries are not found
Patrik Flykt [Thu, 6 Oct 2011 13:08:10 +0000 (16:08 +0300)]
configure: Print errors if VPN binaries are not found

When a VPN has been enabled and its binary is not given
with '--with-<VPN>=PROGRAM', make an additional check
whether AC_PATH_PROG found the binary in question.

12 years agolog: Add support for backtrace symbole resolving
Marcel Holtmann [Thu, 6 Oct 2011 19:23:16 +0000 (12:23 -0700)]
log: Add support for backtrace symbole resolving

12 years agobuild: Link session unit test with dynamic loader library
Marcel Holtmann [Thu, 6 Oct 2011 19:22:39 +0000 (12:22 -0700)]
build: Link session unit test with dynamic loader library

12 years agotechnology: remove the pending_timeout source with g_source_remove
Alok Barsode [Thu, 6 Oct 2011 11:00:39 +0000 (14:00 +0300)]
technology: remove the pending_timeout source with g_source_remove

12 years agodevice: Disconnect a connected network before disabling the device
Alok Barsode [Thu, 6 Oct 2011 11:00:38 +0000 (14:00 +0300)]
device: Disconnect a connected network before disabling the device

When disabling a device, disconnect the device's connected network,
if there are any.

Fixes BCM#23165.

12 years agoAUTHORS: Mention Danny's contributions
Samuel Ortiz [Thu, 6 Oct 2011 10:28:04 +0000 (12:28 +0200)]
AUTHORS: Mention Danny's contributions

12 years agodevice: Remove connections counter
Danny Jeongseok Seo [Thu, 6 Oct 2011 03:59:29 +0000 (12:59 +0900)]
device: Remove connections counter

The device connection counter is only used by the post scan auto connection
logic, and the connection status is handled by the autoconnection service
routine itself (__connman_service_auto_connect()).

12 years agodevice: Remove redundant connection numbers check
Danny Jeongseok Seo [Thu, 6 Oct 2011 02:07:34 +0000 (11:07 +0900)]
device: Remove redundant connection numbers check

__connman_service_auto_connect() already checks for service state, so there
is no need to look at the device being connected or not.

12 years agoservice: Add interface name matching in __connman_service_lookup().
Patrik Flykt [Fri, 30 Sep 2011 09:06:30 +0000 (12:06 +0300)]
service: Add interface name matching in __connman_service_lookup().

Fixes BMC#23419

12 years agoAUTHORS: Mention Philippe's contributions
Samuel Ortiz [Wed, 5 Oct 2011 09:46:08 +0000 (11:46 +0200)]
AUTHORS: Mention Philippe's contributions

12 years agoofono: Create the cellular network only when attached to the PS network
Philippe Nunes [Fri, 30 Sep 2011 14:08:05 +0000 (16:08 +0200)]
ofono: Create the cellular network only when attached to the PS network

3G auto-connection may fail as the cellular network service may not be
ready to connect.
With this patch, the cellular network service should be exposed only after
PS network attachment is done.

12 years agowispr: Setting the relevant service property when a login is required
Tomasz Bursztyka [Mon, 3 Oct 2011 07:43:23 +0000 (10:43 +0300)]
wispr: Setting the relevant service property when a login is required

When a wispr redirect occurs we set login required to the service

Fixes BMC#23424

12 years agosession: Set dirty flag in de/select service function
Daniel Wagner [Thu, 29 Sep 2011 14:39:04 +0000 (16:39 +0200)]
session: Set dirty flag in de/select service function

12 years agosession: Remove double assignment
Daniel Wagner [Thu, 29 Sep 2011 14:35:24 +0000 (16:35 +0200)]
session: Remove double assignment

The dirty flag is already cleared in append_notify()

12 years agosession: Handle bearers update correctly
Daniel Wagner [Fri, 30 Sep 2011 06:31:08 +0000 (08:31 +0200)]
session: Handle bearers update correctly

We cannot create a new service_list in populate_service_list
while we still hold pointers to entries (session->entry).
deselect_and_disconnect() would then operate on bogus pointers
leading to memory corruption

Fixes BMC#23325

12 years agosession: Rename update_allowed_bearers()
Daniel Wagner [Tue, 27 Sep 2011 16:18:46 +0000 (18:18 +0200)]
session: Rename update_allowed_bearers()

12 years agosession: Move update_allowed_bearers() up
Daniel Wagner [Tue, 27 Sep 2011 16:24:50 +0000 (18:24 +0200)]
session: Move update_allowed_bearers() up

12 years agotechnology: Register a rfkilled technology in technology_add_rfkill
Alok Barsode [Tue, 27 Sep 2011 08:47:17 +0000 (11:47 +0300)]
technology: Register a rfkilled technology in technology_add_rfkill

If a technology was rfkilled before connman ran, we need to register
it. If such tech was enabled, technology->device_list will be empty.
We save the state, rfkill unblock the type and exit. When the devices
get unblocked, they are automatically enabled since we saved the enable
state.

12 years agotools: Fixed double-free error possibility into iptables-test
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:49 +0000 (14:43 +0300)]
tools: Fixed double-free error possibility into iptables-test

12 years agoiptables: Copyright year update
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:48 +0000 (14:43 +0300)]
iptables: Copyright year update

12 years agoiptables: Tiny indentation fix
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:47 +0000 (14:43 +0300)]
iptables: Tiny indentation fix

12 years agoiptables: Adding capability to load necessary modules
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:46 +0000 (14:43 +0300)]
iptables: Adding capability to load necessary modules

12 years agoiptables: Rule deletion capability added
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:45 +0000 (14:43 +0300)]
iptables: Rule deletion capability added

12 years agoiptables: Factorization of target reference update
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:44 +0000 (14:43 +0300)]
iptables: Factorization of target reference update

12 years agoiptables: Refactoring how jumps are handled
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:43 +0000 (14:43 +0300)]
iptables: Refactoring how jumps are handled

12 years agoiptables: Fixing target reference update
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:42 +0000 (14:43 +0300)]
iptables: Fixing target reference update

12 years agoiptables: Renaming add into append
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:41 +0000 (14:43 +0300)]
iptables: Renaming add into append

12 years agoiptables: Adding capability to insert a rule
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:40 +0000 (14:43 +0300)]
iptables: Adding capability to insert a rule

12 years agoiptables: Code factorization for rule inclusion
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:39 +0000 (14:43 +0300)]
iptables: Code factorization for rule inclusion

12 years agoiptables: Fix memory leak
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:38 +0000 (14:43 +0300)]
iptables: Fix memory leak

12 years agoiptables: Small indentation fix
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:37 +0000 (14:43 +0300)]
iptables: Small indentation fix

12 years agoiptables: Adding capability to delete user-defined chains
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:36 +0000 (14:43 +0300)]
iptables: Adding capability to delete user-defined chains

12 years agoiptables: Added helper function to remove table entry
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:35 +0000 (14:43 +0300)]
iptables: Added helper function to remove table entry

12 years agoiptables: find_chain_head/find_chain_tail code factorization
Tomasz Bursztyka [Fri, 23 Sep 2011 11:43:34 +0000 (14:43 +0300)]
iptables: find_chain_head/find_chain_tail code factorization

12 years agoprovider: Remove provider if there is an error when connecting
Jukka Rissanen [Wed, 14 Sep 2011 12:34:59 +0000 (15:34 +0300)]
provider: Remove provider if there is an error when connecting

If vpn service cannot be started for some reason, we must
remove the provider so that user can reconnect to it later.

12 years agoprovider: Fix memory leak
Jukka Rissanen [Wed, 14 Sep 2011 12:32:53 +0000 (15:32 +0300)]
provider: Fix memory leak

Provider name is already allocated in connman_provider_get() so we
must deallocate it before setting it again.

12 years agoUse 'cellular' instead of '3g' as bearer name
Daniel Wagner [Thu, 22 Sep 2011 14:59:55 +0000 (16:59 +0200)]
Use 'cellular' instead of '3g' as bearer name

Fixes BMC#23324

12 years agosession: Move info->online update code to session_changed()
Daniel Wagner [Wed, 21 Sep 2011 08:53:12 +0000 (10:53 +0200)]
session: Move info->online update code to session_changed()

service_state_changed() should only update the service
states. session_changed() takes care of all session settings.

12 years agosession: Remove unnecessary deselect_service
Daniel Wagner [Wed, 21 Sep 2011 08:35:25 +0000 (10:35 +0200)]
session: Remove unnecessary deselect_service

Because in session_changed() we take care of this now.

12 years agosession: Simplefy session_changed()
Daniel Wagner [Tue, 20 Sep 2011 15:05:32 +0000 (17:05 +0200)]
session: Simplefy session_changed()

Since we are tracking the reason code now also in
the deslect_and_disconnect() function we can rely
on the correct handling there. Also no need to parse the
reason code again.

12 years agosession: Add reason code to deselect_and_disconnect()
Daniel Wagner [Tue, 20 Sep 2011 15:21:07 +0000 (17:21 +0200)]
session: Add reason code to deselect_and_disconnect()

12 years agosession: Add debug messages
Daniel Wagner [Tue, 20 Sep 2011 14:37:42 +0000 (16:37 +0200)]
session: Add debug messages

12 years agosession: Add CONNMAN_SESSION_REASON_DISCONNECT
Daniel Wagner [Tue, 20 Sep 2011 14:36:42 +0000 (16:36 +0200)]
session: Add CONNMAN_SESSION_REASON_DISCONNECT

Maybe the reason code should be renamed to state

12 years agosession: Pass session_info pointer into functions
Daniel Wagner [Tue, 20 Sep 2011 14:27:06 +0000 (16:27 +0200)]
session: Pass session_info pointer into functions

12 years agosession: Remove deselect_previous_service()
Daniel Wagner [Tue, 20 Sep 2011 14:24:01 +0000 (16:24 +0200)]
session: Remove deselect_previous_service()

The deselect_and_disconnect() function should be called
from session_changed() and not in the select_and_connect()
code path. All disconnect and connect decision are
initiate from session_changed(). This makes the code flow more
symetric.

Note that we break here a Online -> Offline transision, we are
going to fix this later again.

12 years agosession: Rename test_and_disconnect
Daniel Wagner [Tue, 20 Sep 2011 13:03:31 +0000 (15:03 +0200)]
session: Rename test_and_disconnect

To deselect_and_disconnect in order to match more to the
select_and_connect function.

12 years agosession: Track info not the session for ecall
Daniel Wagner [Tue, 20 Sep 2011 12:47:13 +0000 (14:47 +0200)]
session: Track info not the session for ecall

This is a prepartion step for the next few patches.
Instead of passing the session pointer into functions
we are going to pass in only the session_info pointer.

12 years agosession: Disconnect free ride session
Daniel Wagner [Tue, 20 Sep 2011 15:26:18 +0000 (17:26 +0200)]
session: Disconnect free ride session

In case where we get offline

Fixes BMC#22837

12 years agosession: Refactor select_service
Daniel Wagner [Mon, 19 Sep 2011 12:53:34 +0000 (14:53 +0200)]
session: Refactor select_service

Split the online/offline code path with moving the corresponding
code into two new functions.

12 years agosession: Fix null pointer derefencing
Daniel Wagner [Mon, 19 Sep 2011 11:50:09 +0000 (13:50 +0200)]
session: Fix null pointer derefencing

When an emergency session sets back the EmergencyCall
property, all other session are notified. If a session
previously was not connected (online == FALSE) no
entry (services) was selected. We should not derefency
a NULL pointer in this case.

Fixes BMC#22880

12 years agoservice: Don't iterate over changing sequence
Daniel Wagner [Thu, 22 Sep 2011 13:45:11 +0000 (15:45 +0200)]
service: Don't iterate over changing sequence

__connman_service_disconnect_all() should not iterate over
the service_list directly because the ordering of the
services can change when disconnecting a service (e.g. default
service). The iterator might be invalid after a
__connman_service_disconnect() call.

It's better to iterate over a temporary list.

12 years agotodo: Added details to personnal firewall task
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:35 +0000 (15:39 +0300)]
todo: Added details to personnal firewall task

12 years agotools: Copyright year update in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:34 +0000 (15:39 +0300)]
tools: Copyright year update in iptables-test

12 years agotools: Tiny indentation fix in iptables-test
Tomasz Bursztyka [Thu, 22 Sep 2011 12:39:33 +0000 (15:39 +0300)]
tools: Tiny indentation fix in iptables-test