summaryrefslogtreecommitdiff
path: root/src/provider.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-12provider: Untangle create and connect code blockMarcel Holtmann1-26/+20
2011-07-12provider: Remove pointless jump to error labelMarcel Holtmann1-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-07service: Use __connman_service_ipconfig_indicate_state()Daniel Wagner1-3/+3
2011-07-06provider: Get 'Host' and 'VPN.Domain' from provider structPatrik Flykt1-0/+4
2011-07-06provider: Properly set host and domain provider membersPatrik Flykt1-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-06provider: Fix memory leak; free provider->host in provider destructPatrik Flykt1-0/+1
2011-06-21provider: Remove unnecessary additional check for NULL provider structPatrik Flykt1-5/+0
2011-06-16element: Remove element.cDaniel Wagner1-0/+1
2011-06-16provider: Remove element codeDaniel Wagner1-50/+74
2011-03-28provider: Do not deference NULL pointerDaniel Wagner1-2/+4
Fixes BMC#14940
2011-02-25provider: Initial IPv6 supportSamuel Ortiz1-34/+40
2011-02-25service: Add a generic ipconfig selection routineSamuel Ortiz1-8/+2
2011-02-25provider: Remove IPv4 element registrationDaniel Wagner1-143/+21
2011-02-24network: Fix nameserver setting routineSamuel Ortiz1-1/+3
2011-02-23provider: Add IP settersDaniel Wagner1-0/+69
2011-02-15service: Refactor Service nameserver APIDaniel Wagner1-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-11service: Split service state to IPv4 and IPv6 partsJukka Rissanen1-9/+18
2011-01-28provider: Report VPN error codeMohamed Abbas1-0/+24
2011-01-27provider: route_env_parse should depend on type not nameDaniel Wagner1-2/+2
2011-01-27provider: Factorize VPN routing environment variables parsingSamuel Ortiz1-43/+129
2011-01-26provider: Set service pointer for provider_set_nameserversSamuel Ortiz1-0/+5
2011-01-26provider: Implement IPv6 route settingSamuel Ortiz1-3/+19
2011-01-26provider: Handle empty nameserversDaniel Wagner1-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-21openvpn: Add pushed routesDaniel Wagner1-0/+47
We should add the routing entries pushed by the OpenVPN server.
2010-12-14ipconfig: Define 2 separate pointers for IPv4 and IPv6Jukka Rissanen1-3/+18
This patch does not yet enable IPv6 only network support but it is required for later work.
2010-11-03provider: Forward peer address to the ipv4 layerSamuel Ortiz1-0/+8
2010-10-22Add provider driver name accessorDaniel Wagner1-0/+5
2010-09-28Remove providers based on their VPN service pathSamuel Ortiz1-7/+19
2010-09-22Fix bug to remove vpn services when turning offline mode onMohamed Abbas1-7/+16
This patch will remove all vpn services on offline mode. It also make sure it exits after releasing all resources. Fixes BMC #6591
2010-08-21Ensure that all provider object paths are validMarcel Holtmann1-3/+9
2010-08-21Ensure to also replace colon in provider D-Bus object pathMarcel Holtmann1-1/+1
2010-08-21Fix VPN nameservers parsingSamuel Ortiz1-4/+10
2010-08-21Disconnect VPNs when no physical services are leftSamuel Ortiz1-12/+0
This was previously handled by the provider notifier code, but with the VPNs being moved to the service list top, it has to be handled from the service layer directly.
2010-08-18Remove "__connman" prefix from static functionsDaniel Wagner1-2/+2
__connman prefixes are for non static functions exported to all connman core code (but not plugins). connman prefixes are for non static functions exported to all connman (core and plugins).
2010-08-12Both host and domain provider strings should not be NULLSamuel Ortiz1-1/+1
2010-08-09Disconnect VPNs when all services are offlineSamuel Ortiz1-1/+46
2010-08-09Fix provider refcountingSamuel Ortiz1-2/+1
The VPN service refcount is bumped at creation time and decreased at destruction time. The openconnect provider bumps the provider refcount at task creation time and decreases it at task destruction time. The service code bumps the provider refcount at service creation time and decreases it at service releasing time.
2010-08-06Export the VPN PAC file to the VPN serviceSamuel Ortiz1-0/+2
2010-08-06Build VPN services based on VPN host and domain stringsSamuel Ortiz1-7/+33
2010-08-05Simplify the provider creation code pathSamuel Ortiz1-22/+1
2010-08-05Remove useless provider_free routineSamuel Ortiz1-15/+6
2010-08-04Use connman_resolver_append() for adding VPN nameserversSamuel Ortiz1-2/+4
Only the last would be added with __connman_service_append_nameserver().
2010-08-04Add VPN nameservers after being connectedSamuel Ortiz1-12/+13
2010-08-04Have providers going through the configuration stateSamuel Ortiz1-0/+3
This way the ipconfig layer is enabled in a timely fashion.
2010-08-04Add ipconfig layer to the VPN servicesSamuel Ortiz1-0/+22
2010-08-04Return when VPN ip setting failsSamuel Ortiz1-1/+5
2010-08-03Link VPN nameservers and domains to the VPN serviceSamuel Ortiz1-41/+40
2010-08-02Track and report VPN providers statesSamuel Ortiz1-2/+29
2010-08-02Remove the manager Providers propertySamuel Ortiz1-19/+0
Providers are regular VPN services, no need to differentiate them anymore.
2010-08-02Remove provider PassphraseRequired propertySamuel Ortiz1-6/+0