summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-10-28service: Remove the gateways when removing the serviceJukka Rissanen1-0/+3
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).
2011-10-26core: Fix compilation in MeeGoJukka Rissanen4-6/+4
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
2011-10-25core: Add SOCK_CLOEXEC to socket()Daniel Wagner7-39/+39
Make sure all file descriptor are closed.
2011-10-25core: Add O_CLOEXEC to open()Daniel Wagner5-10/+10
Make sure all file descriptor are closed.
2011-10-21service: Activate loose mode routingJukka Rissanen1-2/+60
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
2011-10-21ipconfig: Set/unset IPv4 rp_filter settingJukka Rissanen2-0/+57
2011-10-21network: Remove obsolete service lookup in disconnectJukka Rissanen1-3/+0
2011-10-21service: Check NULL pointerJukka Rissanen1-0/+3
2011-10-21session: Do not select ongoing service againDaniel Wagner1-0/+5
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
2011-10-21wispr: Reference count service properly according to contextsTomasz Bursztyka1-0/+4
2011-10-21wispr: wispr_start will always re-start a new contextTomasz Bursztyka1-13/+13
2011-10-21service: wispr fallback when wpad failsTomasz Bursztyka1-0/+1
2011-10-21wpad: Reference count service properlyTomasz Bursztyka1-1/+3
2011-10-20dhcp: Reference count network properlyJukka Rissanen1-1/+4
2011-10-20inet: Cleanup router solicitation callback properly after errorJukka Rissanen1-0/+1
The cleanup routine must be called after an error and after calling RS callback, otherwise the timeout is not removed in right time.
2011-10-20notifier: Don't unnecessarily report "online" state on disconnectPatrik Flykt1-3/+7
When a service disconnects, don't send an extra 'online' net.connman.Manager.StateChanged signal if another service is still connected. Fixes BMC#23421
2011-10-11wispr: Set LoginRequired when wispr login is requestedTomasz Bursztyka1-2/+2
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
2011-10-11dnsproxy: Fix can't resolv hostnameYu A Wang1-0/+35
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.
2011-10-10service: Update service order when changing the favorite flagSamuel Ortiz1-0/+1
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>.
2011-10-10service: Load ipconfig according to service identifierYu A Wang1-1/+1
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
2011-10-07service: Call __connman_service_disconnect from remove_serviceDanny Jeongseok Seo1-4/+2
Just calling __connman_network_disconnect() means missing proxy and ipconfig clearance.
2011-10-07ipconfig: Show IPv4.Configuration properties for FIXEDPatrik Flykt1-1/+1
Show IPv4.Configuration properties also for CONNMAN_IPCONFIG_METHOD_FIXED configuration method. Fixes BMC#23444
2011-10-06log: Add support for backtrace symbole resolvingMarcel Holtmann3-17/+114
2011-10-06technology: remove the pending_timeout source with g_source_removeAlok Barsode1-0/+3
2011-10-06device: Disconnect a connected network before disabling the deviceAlok Barsode1-0/+3
When disabling a device, disconnect the device's connected network, if there are any. Fixes BCM#23165.
2011-10-06device: Remove connections counterDanny Jeongseok Seo3-35/+4
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()).
2011-10-06device: Remove redundant connection numbers checkDanny Jeongseok Seo1-3/+0
__connman_service_auto_connect() already checks for service state, so there is no need to look at the device being connected or not.
2011-10-05service: Add interface name matching in __connman_service_lookup().Patrik Flykt1-0/+16
Fixes BMC#23419
2011-10-05wispr: Setting the relevant service property when a login is requiredTomasz Bursztyka1-2/+6
When a wispr redirect occurs we set login required to the service Fixes BMC#23424
2011-09-30session: Set dirty flag in de/select service functionDaniel Wagner1-14/+18
2011-09-30session: Remove double assignmentDaniel Wagner1-2/+0
The dirty flag is already cleared in append_notify()
2011-09-30session: Handle bearers update correctlyDaniel Wagner1-17/+28
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
2011-09-30session: Rename update_allowed_bearers()Daniel Wagner1-3/+3
2011-09-30session: Move update_allowed_bearers() upDaniel Wagner1-75/+75
2011-09-29technology: Register a rfkilled technology in technology_add_rfkillAlok Barsode1-0/+9
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.
2011-09-29iptables: Copyright year updateTomasz Bursztyka1-1/+1
2011-09-29iptables: Tiny indentation fixTomasz Bursztyka1-6/+4
2011-09-29iptables: Adding capability to load necessary modulesTomasz Bursztyka1-1/+16
2011-09-29iptables: Rule deletion capability addedTomasz Bursztyka1-5/+206
2011-09-29iptables: Factorization of target reference updateTomasz Bursztyka1-14/+23
2011-09-29iptables: Refactoring how jumps are handledTomasz Bursztyka1-65/+82
2011-09-29iptables: Fixing target reference updateTomasz Bursztyka1-3/+3
2011-09-29iptables: Renaming add into appendTomasz Bursztyka1-3/+2
2011-09-29iptables: Adding capability to insert a ruleTomasz Bursztyka1-7/+57
2011-09-29iptables: Code factorization for rule inclusionTomasz Bursztyka1-14/+33
2011-09-29iptables: Fix memory leakTomasz Bursztyka1-2/+6
2011-09-29iptables: Small indentation fixTomasz Bursztyka1-2/+2
2011-09-29iptables: Adding capability to delete user-defined chainsTomasz Bursztyka1-3/+49
2011-09-29iptables: Added helper function to remove table entryTomasz Bursztyka1-7/+17
2011-09-29iptables: find_chain_head/find_chain_tail code factorizationTomasz Bursztyka1-25/+3