Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-01-27 | provider: Don't remove a provider on error | Patrik Flykt | 1 | -7/+1 | |
When a provider indicates error, set the corresponding service error but don't remove the provider. | |||||
2012-01-27 | provider: Load providers at provider driver registration time | Patrik Flykt | 1 | -0/+78 | |
Load all saved providers that have the same type as the provider driver being registered. While looking through the storage dir for directory entries starting with 'provider_', the respective settings file needs to be opened in order to check the type. Since the settings file is already opened, load all other settings as well with the help of the previously factored out functions. | |||||
2012-01-27 | provider: Handle connman_provider_load() in provider_create() | Patrik Flykt | 1 | -2/+2 | |
Load provider data in provider_create() if provider_register() returns success. | |||||
2012-01-27 | provider: Factor out service creation | Patrik Flykt | 1 | -11/+25 | |
Factor out the creation of a service when given a provider. | |||||
2012-01-27 | provider: Factor out keyfile loading | Patrik Flykt | 1 | -9/+17 | |
Factor out keyfile loading from connman_provider_load() into a fuction of its own. | |||||
2012-01-27 | provider: Don't set provider->name when creating provider struct | Patrik Flykt | 1 | -3/+0 | |
Don't unnecessarily set provider->name to the value of the provider identifier in connman_provider_get() since it's going to be reset immediately to the supplied provider name. | |||||
2012-01-24 | provider: Add caller information to ref/unref debug prints. | Jukka Rissanen | 1 | -4/+9 | |
2012-01-20 | provider: Remove provider from the hash properly | Jukka Rissanen | 1 | -1/+1 | |
We must not just do connman_provider_unref(provider) as that will leave the provider to the provider_hash and we will get free memory access error. We can just remove the provider from the hash and that will unref the provider automagically. | |||||
2012-01-20 | provider: VPN service can be null | Jukka Rissanen | 1 | -2/+4 | |
2012-01-20 | service: Refactor the service unref function | Jukka Rissanen | 1 | -4/+3 | |
2012-01-13 | ipconfig: Rename previously public functions | Daniel Wagner | 1 | -2/+2 | |
Prefix them with a "__". | |||||
2012-01-10 | provider: Undo empty D-Bus message check | Daniel Wagner | 1 | -3/+0 | |
This check is wrong. | |||||
2012-01-09 | provider: Handle empty D-Bus message | Daniel Wagner | 1 | -0/+3 | |
2011-11-28 | service: Support automatically added nameservers | Jukka Rissanen | 1 | -1/+1 | |
IPv6 autoconfigured nameservers can be added to resolver via netlink messages in rtnl.c. Because of this they are not seen in service object so we need to get those auto added nameserver to be added in service.c so that service can show them to user if necessary. Fixes BMC#24196 | |||||
2011-11-10 | core: Use gcc atomics instead glib's ones | Daniel Wagner | 1 | -3/+3 | |
g_atomic_int_exchange_and_add() has been removed from glib 2.30 and g_atomic_int_add() should be used. Though there are still quite a few distros out which do not ship a glib version with g_atomic_int_add(). Instead of maintaing a compatiblilty glib layer we just use the built-in functions for atomic memory access. | |||||
2011-11-07 | provider: Helper function for fetching the keyfile group | Patrik Flykt | 1 | -0/+5 | |
2011-11-07 | provider: Define a save function for provider drivers | Patrik Flykt | 1 | -0/+3 | |
Define a save function for connman provider driver specific settings. No corresponding load function is defined since all saved settings are already loaded by connman_provider_load(). | |||||
2011-11-07 | provider: Load and save provider data | Patrik Flykt | 1 | -0/+66 | |
On connect, save 'Type', 'Name', 'Host' and 'VPN.Domain' provider settings. On probe, load saved keys and their values from storage and add the key/value pairs to the provider struct. | |||||
2011-09-29 | provider: Remove provider if there is an error when connecting | Jukka Rissanen | 1 | -1/+7 | |
If vpn service cannot be started for some reason, we must remove the provider so that user can reconnect to it later. | |||||
2011-09-29 | provider: Fix memory leak | Jukka Rissanen | 1 | -0/+1 | |
Provider name is already allocated in connman_provider_get() so we must deallocate it before setting it again. | |||||
2011-09-12 | provider: Return existing service path if already connected | Jukka Rissanen | 1 | -4/+5 | |
2011-09-12 | provider: Add ref counting debug | Jukka Rissanen | 1 | -2/+2 | |
2011-09-12 | provider: NULL pointer check | Jukka Rissanen | 1 | -0/+3 | |
2011-07-12 | provider: Fix ident memory leak if provider cannot be created | Patrik Flykt | 1 | -0/+1 | |
2011-07-12 | provider: Untangle create and connect code block | Marcel Holtmann | 1 | -26/+20 | |
2011-07-12 | provider: Remove pointless jump to error label | Marcel Holtmann | 1 | -8/+4 | |
This fixes a compiler warning for an uninitialized variable. And this warning is a real error. CC src/provider.o src/provider.c: In function ‘__connman_provider_create_and_connect’: src/provider.c:476: warning: ‘provider’ may be used uninitialized in this function | |||||
2011-07-07 | service: Use __connman_service_ipconfig_indicate_state() | Daniel Wagner | 1 | -3/+3 | |
2011-07-06 | provider: Get 'Host' and 'VPN.Domain' from provider struct | Patrik Flykt | 1 | -0/+4 | |
2011-07-06 | provider: Properly set host and domain provider members | Patrik Flykt | 1 | -3/+8 | |
Detect 'Host' and 'VPN.Domain' strings being set and insert them properly into the provider structure. Also ensure that the strings corresponding to provider structure members are not duplicated into the provider string settings hash. | |||||
2011-07-06 | provider: Fix memory leak; free provider->host in provider destruct | Patrik Flykt | 1 | -0/+1 | |
2011-06-21 | provider: Remove unnecessary additional check for NULL provider struct | Patrik Flykt | 1 | -5/+0 | |
2011-06-16 | element: Remove element.c | Daniel Wagner | 1 | -0/+1 | |
2011-06-16 | provider: Remove element code | Daniel Wagner | 1 | -50/+74 | |
2011-03-28 | provider: Do not deference NULL pointer | Daniel Wagner | 1 | -2/+4 | |
Fixes BMC#14940 | |||||
2011-02-25 | provider: Initial IPv6 support | Samuel Ortiz | 1 | -34/+40 | |
2011-02-25 | service: Add a generic ipconfig selection routine | Samuel Ortiz | 1 | -8/+2 | |
2011-02-25 | provider: Remove IPv4 element registration | Daniel Wagner | 1 | -143/+21 | |
2011-02-24 | network: Fix nameserver setting routine | Samuel Ortiz | 1 | -1/+3 | |
2011-02-23 | provider: Add IP setters | Daniel Wagner | 1 | -0/+69 | |
2011-02-15 | service: Refactor Service nameserver API | Daniel Wagner | 1 | -1/+1 | |
__connman_service_append/remove_namerserver() is renamed to __connman_service_nameserver_append/remove to be more consistent with the other Service API naming. Also the semantic changes to append/remove instead of set/clear. The list of configured nameservers takes preference over the list of discovered (DHCP, VPN, ...) nameservers. | |||||
2011-02-11 | service: Split service state to IPv4 and IPv6 parts | Jukka Rissanen | 1 | -9/+18 | |
2011-01-28 | provider: Report VPN error code | Mohamed Abbas | 1 | -0/+24 | |
2011-01-27 | provider: route_env_parse should depend on type not name | Daniel Wagner | 1 | -2/+2 | |
2011-01-27 | provider: Factorize VPN routing environment variables parsing | Samuel Ortiz | 1 | -43/+129 | |
2011-01-26 | provider: Set service pointer for provider_set_nameservers | Samuel Ortiz | 1 | -0/+5 | |
2011-01-26 | provider: Implement IPv6 route setting | Samuel Ortiz | 1 | -3/+19 | |
2011-01-26 | provider: Handle empty nameservers | Daniel Wagner | 1 | -24/+33 | |
If the VPN server doesn't set any DNS entries provider->nameservers is NULL. When we change the state of the provider to CONNMAN_PROVIDER_STATE_READY we shouldn't do any string operations on the NULL pointer namerservers. (gdb) bt full No symbol table info available. type = CONNMAN_ELEMENT_TYPE_IPV4 nameservers = 0x0 value = 0x0 list = 0x1 = {<error reading variable list (Cannot access memory at address 0x1)> err = 0 element = 0x6a5110 name = 0x6a5550 "vpn0" second_ns = 0x69f1c0 "\004" service = 0x6a2630 No locals. Fixes BMC#12508 Reported by Jeff Zheng <jeff.zheng@intel.com> | |||||
2010-12-21 | openvpn: Add pushed routes | Daniel Wagner | 1 | -0/+47 | |
We should add the routing entries pushed by the OpenVPN server. | |||||
2010-12-14 | ipconfig: Define 2 separate pointers for IPv4 and IPv6 | Jukka Rissanen | 1 | -3/+18 | |
This patch does not yet enable IPv6 only network support but it is required for later work. | |||||
2010-11-03 | provider: Forward peer address to the ipv4 layer | Samuel Ortiz | 1 | -0/+8 | |