summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-04-05dnsproxy: Create cache if it is missing when doing lookupJukka Rissanen1-42/+56
2013-04-05dnsproxy: Fix memory leak when request timeoutsJukka Rissanen1-13/+13
2013-04-05dnsproxy: Avoid null pointer accessJukka Rissanen1-2/+2
2013-04-05dnsproxy: Do not add or remove ::1 serverJukka Rissanen1-0/+6
2013-04-05dnsproxy: Use ::1 when refreshing because of the address familyJukka Rissanen1-1/+1
2013-04-05dnsproxy: Add or remove ::1 to/from resolv.conf when necessaryJukka Rissanen1-9/+35
We add IPv6 loopback address to resolv.conf if we have created an IPv6 listening socket to port 53. Also remove ::1 from resolv.conf when deleting the proxy.
2013-04-05dnsproxy: Listen only on needed addressesJukka Rissanen1-91/+225
Do not bind to ANY address so that other DNS server applications can be used on the same host for interfaces that are not managed by ConnMan. This means that we only create DNS listeners on loopback and tethering interfaces.
2013-04-05inet: Get an address from a given interface and address familyJukka Rissanen2-0/+56
The returned address is used when we need to have a listening socket tied to specific interface and address, and do not want to bind to any address.
2013-04-04client: Move boolean parsing helper function to commands filePatrik Flykt3-27/+26
The helper function is not used elsewhere, thus move it.
2013-04-04client: Remove now obsolete functions and filesPatrik Flykt10-1237/+5
Remove now obsolete files from services. Remove data_manager, dbus and technology .h and .c files. Update Makefile.am accordingly.
2013-04-04client: Remove now obsolete functionPatrik Flykt1-6/+0
2013-04-04client: Use D-Bus helper functions when setting proxyPatrik Flykt1-41/+76
Append proxy server and exclude information in the callback functions.
2013-04-04client: Use helper functions for setting domains, nameservers and timeserversPatrik Flykt1-9/+39
2013-04-04client: Use helper functions for IP, autoconnect and removalPatrik Flykt1-23/+158
Use D-Bus helper functions for service remove, autoconnect and IP configuration. Create a common callback for all configuration properties. Count also the number of appended items and add it to the current index when done.
2013-04-04client: Use D-Bus helper function to implement services commandPatrik Flykt1-9/+49
Fixes BMC#25953 BMC#25974
2013-04-04client: Use D-Bus helper functions for Technology enabling/disablingPatrik Flykt1-26/+58
2013-04-04client: Add support functions for setting propertiesPatrik Flykt2-16/+213
Add support functions for setting basic, dictionary and array properties.
2013-04-04client: Use D-Bus helpers for Technology Scan method callPatrik Flykt1-12/+20
2013-04-04client: Use D-Bus helpers for Technology GetTechnologies method callPatrik Flykt1-1/+32
2013-04-04client: Use D-Bus helper functions for service connect and disconnectPatrik Flykt1-9/+39
2013-04-04client: Use D-Bus helper functions for state method callPatrik Flykt1-1/+18
2013-04-04client: Print out help header if non-interactivePatrik Flykt1-0/+8
2013-04-04client: Add calls to save and redraw input promptPatrik Flykt2-1/+12
2013-04-04client: Remove now obsolete client/interactive.[hc] filesPatrik Flykt3-152/+0
2013-04-04client: Remove readline handling from main.cPatrik Flykt1-104/+6
2013-04-04client: Handle exit and inprogress valuesPatrik Flykt1-6/+11
When exiting, return 1, when D-Bus method call is in progress return -EINPROGRESS. When exiting successfully return 0, when an error is encountered return the error value.
2013-04-04client: Delete the now obsolete monitor.[hc] filesPatrik Flykt6-393/+0
2013-04-04client: Reimplement monitor commandPatrik Flykt1-12/+171
Use generic D-Bus printing function to print the signals
2013-04-04client: Add input handlingPatrik Flykt4-1/+253
Set up readline command line input handling. Add helper functions to save and redraw the command line when output needs to be printed to the screen.
2013-04-04client: Add pretty-printing for ServicesChanged signalPatrik Flykt2-2/+121
Create a set of helper functions for pretty-printing both the added and the removed services dictionaries in the ServicesChanged signal.
2013-04-04client: Add connmanctl D-Bus helper functionsPatrik Flykt3-0/+240
Add helper functions for pretty-printing D-Bus messages and making a method call.
2013-04-03vpn-provider: Send domain name to connman when connection is readyJukka Rissanen1-0/+7
Fixes BMC#25994
2013-04-03openvpn: Update domain name if received from OpenVPN serverJukka Rissanen1-0/+30
2013-04-03vpn: Update domain name when received from vpndJukka Rissanen1-0/+10
2013-04-03ofono: Add the CDMA network when the device is createdForest Bond1-2/+8
There is a race that causes the network not to be added if we get the CDMA netreg changed signal before the CDMA connection manager added signal. In that case the network is not added because the device has not been created yet. So we fix this by trying to add the network whenever the device is created.
2013-04-03ofono: Add CDMA network when modem is registeredForest Bond1-11/+16
Connecting the network requires powering the CDMA connection manager, which fails with an error if network registration is not complete. So we only add the network when registration is complete and remove it when the modem is no longer registered.
2013-04-02doc: Removed comments about profiles as they are long goneJukka Rissanen1-6/+0
2013-03-28doc: Ethernet properties 'Speed' and 'Duplex' are not providedPatrik Flykt1-7/+4
Ethernet properties 'Speed' and 'Duplex' have never been implemented and are not supported for WiFi. Thus mark them deprecated. Fixes BMC#25992
2013-03-27vpn-provider: Nameservers were not sent to connmand vpn pluginJukka Rissanen1-21/+27
We got some nameservers from VPN server but we never sent the nameserver list to connmand vpn plugin. Fixes BMC#25966
2013-03-27openvpn: Set the nameservers in correct orderJukka Rissanen1-17/+71
The nameservers that we get from OpenVPN server can be received in any order. Make sure that we sort them in correct order before sending them to connmand.
2013-03-27provider: Set nameservers if we receive them from vpndJukka Rissanen3-12/+13
If we receive nameservers from vpnd we must set them in provider. The connman_provider_set_nameservers() function needs changes because we get the nameservers as an array, it makes no sense to convert the array to string and then back to array.
2013-03-27wifi: terminate autoscan stop if autoscan is not activeGrant Erickson1-0/+5
This terminates the body of stop_autoscan if autoscan is not active. Per MEEGO-25987 <http://bugs.meego.com/show_bug.cgi?id=25987>, running stop_autoscan when changing connected services can prematurely and incorrectly terminate a new, in-flight service connection and result in a failure of that connection with "net.connman.Error.OperationAborted: Operation aborted". When a scan is started, all networks are marked unavailable. Should the check added in this patch not be present, device scanning is set to false and all not yet found networks are removed. Thus the service will not be able to connect if its network wasn't already found.
2013-03-27service: Disconnect the connecting service when neededJukka Rissanen1-2/+12
If we are trying to connect a service and there is another service connecting, then we disconnect the pending service and connect the new one. Fixes BMC#25981
2013-03-27vpn-provider: Fix uninitialized memory readJukka Rissanen1-1/+1
The immutable field might be left uninitialized without this.
2013-03-25tethering: Fix build with kernel headers 3.8+Yann E. MORIN1-0/+1
Highly inspired by: https://git.kernel.org/cgit/linux/kernel/git/shemminger/bridge-utils.git/commit/?id=5eebb7f9288b7881ffb929b1fd494fe3ac3be27d As Russel puts it in his commit message for bridge-utils: Linux 3.8 has a header, include/uapi/linux/if_bridge.h that uses a struct in6_addr but doesn't define it. The trivial seeming fix of including the header that does define it causes more problems. The problem was discussed on mailing lists in January 2013. The final suggestion I found was here: http://www.redhat.com/archives/libvir-list/2013-January/msg01253.html This is intended to implement that suggestion. This changeset transplants this trivial fix to connman.
2013-03-25service: Send IP config changed signal in disconnectJukka Rissanen1-0/+3
We did not send the IP config changed signal during disconnect. This can confuse the dbus signal listeners. Fixes BMC#25989
2013-03-25service: Only send correct ipconfig changed signalJukka Rissanen1-5/+10
If we are changing IPv4 config, then send only IPv4 changed signal and not the IPv6 one. Same is done for IPv6 config when it changes.
2013-03-25config: Allow user to specify how IP address is usedJukka Rissanen2-6/+42
If IPv4 address is missing then DHCPv4 is used. If IPv6 address is missing, then SLAAC or DHCPv6 is used. This was specified in doc/config-format.txt but implementation was missing. We also allow the IP address to contain "off", "dhcp" or "auto" string, so user can specify how the IP address can be set for the interface. Fixes BMC#25985
2013-03-25iptables-unit: Add firewall API testsDaniel Wagner2-1/+85
2013-03-25firewall: Maintain iptables rules in dedicated ConnMan chainsDaniel Wagner1-6/+174
Instead appending ConnMan iptables rules into the builtin chains we append them into chains managed by ConnMan. If a rule needs to be inserted into a bultin chain, ConnMan will create a 'connman-' prefixed builtin chain name and appends the user rules there. Then ConnMan will insert a unconditional jump rule in the builtin chain. Basically, iptables -t filter -A INPUT -m mark --mark 1 -j LOG will be translated to this: iptables -t filter -N connman-INPUT iptables -t filter -A connman-INPUT -m mark --mark 1 -j LOG iptables -t filter -I INPUT -j connman-INPUT When the last rule in a managed chain is removed, the managed chain will also be removed.