summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)AuthorFilesLines
2016-06-10[SPIN] Enable the ntp by connman if device does not use the cellular.Niraj Kumar Goit1-0/+4
desc : enable the ntp if the device is not using the cellualr(telephony). This ntp is controlled by net-config. After getting the timeinfo, connman call the alarm-manager's dbus method. Change-Id: I83272206654b6b64c968d5dbb69354e19e971f34 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-0/+55
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-1/+5
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-93/+81
2013-05-06main: Rename AllowedTetheringTechnologies to TetheringTechnologiesPatrik Flykt1-9/+9
2013-04-26main: Add support for PersistentTetheringMode configuration variableJukka Rissanen1-0/+15
2013-04-26main: Add support for AllowedTetheringTechnologies configuration variableJukka Rissanen1-0/+17
2013-04-18session: Reorder shutdown sequenceDaniel Wagner1-1/+1
By calling __connman_session_cleanup() before __connman_plugin_cleanup() we make sure all resources allocated can released in the correct order. The code assumes after an successful allocation, free will always work and therefore we double free allocated memory.
2013-03-25firewall: Add firewall fileDaniel Wagner1-0/+2
2013-01-04storage: Remove storage migration codePatrik Flykt1-1/+0
2012-12-14main: Small cleanup for config file parsing and checkingMarcel Holtmann1-7/+9
2012-12-14main: Add function to check for main.conf groups and keysPatrik Flykt1-0/+53
Print out a warning on an unknown group and unknown keys in the "General" group.
2012-12-14main: Use defines for main.conf keysPatrik Flykt1-18/+29
2012-11-23inotify: Move inotify code into its own fileDaniel Wagner1-0/+2
The inotify code will be used by the core (config.c) and the session policy plugin. We introduce a new API for file modifcation notifcation. We move the factored out code part from the last patch into a new file and also change the inotify code so that it allows to monitor not only STORAGEDIR. When registering a new observer, the callee has to tell which directory should be watched. inotify.c will group the observers together.
2012-11-23main: Plugin and provider cleanup order fixedJukka Rissanen1-1/+1
We must cleanup the plugin first before cleaning up the provider because the vpn plugin needs providers from provider hash.
2012-11-23agent: Split agent code into generic and service specific partsJukka Rissanen1-2/+2
2012-11-23log: Give program name and version in log initJukka Rissanen1-1/+1
This allows the correct output when the log functions are used from separate vpn daemon.
2012-10-18main: Add SingleConnectedTechnology main.conf variablePatrik Flykt1-0/+12
2012-09-28log: Disable stack trace from command linePatrik Flykt1-2/+7
Add a '--nobacktrace' command line switch to let the system handle stack traces. The default is to let ConnMan handle them as before
2012-08-10main: Introduce conf file option to disable hostname updatesJukka Rissanen1-0/+13
The AllowHostnameUpdates in system config file can be used to ignore the hostname update request that for example can be received via DHCP hostname option.
2012-08-08main: Add support for specifying a non-default configuration file.Grant Erickson1-5/+23
This patch adds support for specifying a main configuration file different from the default value of /etc/connman/main.conf. This is valuable during debug to specify alternate debug-only configurations.
2012-08-07main: Remove unused compat argumentDaniel Wagner1-3/+0
2012-07-05main: Dynamically allocate default blacklist array, free on exitPatrik Flykt1-2/+5
2012-07-05main: Move default string arrays top of the filePatrik Flykt1-12/+14
2012-06-28main: static-qualify default config valuesGrant Erickson1-2/+2
The default configuration arrays default_auto_connect and default_blacklist must be static-qualified. Otherwise, their stack-allocated storage will go out of scope after parse_config is finished and empty or commented-out DefaultAutoConnectTechnologies or NetworkInterfaceBlacklist config entries will refer to random stack data.
2012-06-25main: Use 'NetworkInterfaceBlacklist' string everywherePatrik Flykt1-1/+1
2012-06-25main: Support NetworkInterfaceBlacklist from main.confManfred Kober1-0/+23
This adds a settings variable and a function for fetching that list
2012-06-14main: Simplify fallback nameserver parsingPatrik Flykt1-8/+1
2012-05-30main: Add InputRequestTimeout and BrowserLaunchTimeout variablesPatrik Flykt1-0/+30
Add InputRequestTimeout and BrowserLaunchTimeout main.conf variable handling and functions for fetching their values.
2012-04-29build: Remove dependency on libcap-ngMarcel Holtmann1-8/+0
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-20main: Mark end of array with NULL in order not to crashPatrik Flykt1-0/+1
2012-04-20main: Set default values if main.conf is not foundPatrik Flykt1-4/+6
2012-04-12main: Implement 'FallbackNameservers' main.conf optionPatrik Flykt1-0/+47
Implement 'FallbackNameservers' main.conf configuration file option. While parsing the list of nameservers, use only the ones in numeric format.
2012-04-11main: Add 'PreferredTechnologies' configuration file optionPatrik Flykt1-0/+17
The main.conf 'PreferredTechnologies' is a list of service type strings but converted to a list of service type enums. Thus the configuration option is accessible via the function connman_setting_get_uint_list().
2012-04-11main: Free g_key_file config immediately after usePatrik Flykt1-5/+4
2012-04-11main: Add 'DefaultAutoConnectTechnologies' configuration optionPatrik Flykt1-0/+59
The main.conf 'DefaultAutoConnectTechnologies' is a list of service type strings. It is converted to a list of service type enums, and thus the configuration option is accessible via the function connman_setting_get_uint_list(). If this option is not specified, the default technologies to autoconnect are wifi, ethernet and cellular just like before.
2012-04-05main: Parse FallbackTimeservers list from main.confAlok Barsode1-0/+21
2012-02-13nat: Move nat code into a seperate fileDaniel Wagner1-0/+2
Instead of natting all traffic, nat.c will restrict the masquerading on given network/mask. The nat handling code will be reused by session.c
2012-02-01ippool: Add IP pool layerDaniel Wagner1-0/+2
This is based on Guillaume Zajac intial IP pool patches.
2012-01-05dhcpv6: Support stateless DHCPv6Jukka Rissanen1-0/+2
See relevant parts from these RFCs: RFC 3315 - DHCP for IPv6 RFC 3646 - DNS configuration options for DHCP for IPv6 RFC 3736 - Stateless DHCP service for IPv6 RFC 4075 - SNTP configuration option for DHCPv6 The patch does not support authenticated information messages.
2011-10-06log: Add support for backtrace symbole resolvingMarcel Holtmann1-1/+1
2011-09-21main: Cleanup ipconfig after serviceDaniel Wagner1-1/+1
Since service.c depends on ipconfig.c, __connman_service_cleanup() should be called before __connman_ipconfig_cleanup(). connmand[4787]: src/ipconfig.c:__connman_ipconfig_cleanup() connmand[4787]: em1 {remove} index 2 connmand[4787]: wlan0 {remove} index 3 connmand[4787]: src/ipconfig.c:connman_ipconfig_unref() ipconfig 0x6b0460 refcount 1 connmand[4787]: src/ipconfig.c:connman_ipconfig_unref() ipconfig 0x6b04c0 refcount 1 connmand[4787]: hso0 {remove} index 4 connmand[4787]: src/service.c:__connman_service_cleanup() connmand[4787]: src/service.c:service_free() service 0x6ae690 connmand[4787]: Service state machine inconsistency detected. connmand[4787]: src/service.c:stats_stop() service 0x6ae690 connmand[4787]: src/service.c:services_changed() connmand[4787]: src/ipconfig.c:connman_ipconfig_unref() ipconfig 0x6b0460 refcount 0 connmand[4787]: src/ipconfig.c:__connman_ipconfig_disable() ipconfig 0x6b0460 Breakpoint 1, g_log (log_domain=0x34b78adc06 "GLib", log_level=G_LOG_LEVEL_CRITICAL, format= 0x34b78b6710 "%s: assertion `%s' failed") at gmessages.c:573 573 { (gdb) bt #0 g_log (log_domain=0x34b78adc06 "GLib", log_level=G_LOG_LEVEL_CRITICAL, format= 0x34b78b6710 "%s: assertion `%s' failed") at gmessages.c:573 #1 0x00000034b7831d35 in g_hash_table_lookup (hash_table=0x0, key=0x3) at ghash.c:897 #2 0x000000000044e9a4 in __connman_ipconfig_disable (ipconfig=0x6b0460) at src/ipconfig.c:1678 #3 0x000000000044de9d in connman_ipconfig_unref (ipconfig=0x6b0460) at src/ipconfig.c:1279 #4 0x0000000000440750 in service_free (user_data=0x6ae690) at src/service.c:3416 #5 0x00000034b785aac8 in real_node_free (node=0x6a2ed0, seq=0x6a3de0) at gsequence.c:1755 #6 0x00000034b785aaa2 in real_node_free (node=0x6a2a70, seq=0x6a3de0) at gsequence.c:1751 #7 0x00000034b785ae39 in g_sequence_free (seq=0x6a3de0) at gsequence.c:283 #8 0x0000000000444b53 in __connman_service_cleanup () at src/service.c:5617 #9 0x000000000042fb75 in main (argc=1, argv=0x7fffffffe678) at src/main.c:401
2011-09-12location: Deleted location support and portal pluginTomasz Bursztyka1-2/+0
2011-09-12main: Memory leak in option_debugJukka Rissanen1-0/+2
2011-09-12stats: Move stat files to respective service identifier directoryAlok Barsode1-6/+0
2011-09-12storage: Switch to settings fileAlok Barsode1-0/+1
All the global settings would reside in /var/lib/connman/settings. We also migrate global keys from /var/lib/connman/default.profile to /var/lib/connman/settings for a smooth transition.
2011-08-25storage: remove storage module frameworkAlok Barsode1-2/+0
2011-08-25profile: Remove profile.c and profile.hAlok Barsode1-4/+0
2011-07-01main: Move signalfd setup in its own functionMarcel Holtmann1-38/+58