summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-03client: Add support for registering and unregistering an agentPatrik Flykt3-0/+181
Add agent .h and .c files containing registering and unregistering functionality.
2013-05-03client: Enable method call return to exit or continue runningPatrik Flykt3-25/+50
Enable a client method call return function to exit or continue running when in non-interactive mode. When a connmanctl_dbus_method_return_func_t returns -EINPROGRESS in non-interactive mode, the command line client is kept running even after the method call has been processed. The command line client needs to keep running after a successful Agent registration in order to process Agent method calls. Also enabling tethering in non-interactive mode needs the client executing until SSID, passphrase and tethering mode have been set.
2013-05-03client: Make dbus helper function variable const char *Patrik Flykt2-4/+4
2013-04-30dhcpv6: Add elapsed time option to sent messagesJukka Rissanen2-3/+48
A mandatory elapsed time option was missing from the sent DHCPv6 messages. See RFC 3315 chapter 22.9 for details.
2013-04-30technology: Disable tethering when device disappearsJukka Rissanen1-0/+4
If tethering is active when device is removed, then shutdown tethering cleanly so that tether interface and bridge are properly removed.
2013-04-30dnsproxy: Do not unref g_io_channel if we know it is nullJukka Rissanen1-4/+8
Currently tethering does not support IPv6 so its listener is not created and is null. This will cause following output connmand[18363]: src/dnsproxy.c:destroy_tcp_listener() index 31 (connmand:18363): GLib-CRITICAL **: g_io_channel_unref: assertion `channel != NULL' failed connmand[18363]: src/dnsproxy.c:destroy_udp_listener() index 31 (connmand:18363): GLib-CRITICAL **: g_io_channel_unref: assertion `channel != NULL' failed
2013-04-30client: Fix up wrongly included typedefPatrik Flykt2-8/+15
2013-04-30client: Remove unneeded members from structsPatrik Flykt1-90/+70
Remove now obsolete memebers from the option struct and instead add a description field. Also remove the now unnecessary include.
2013-04-30client: Move commands around to more logical places in the tablePatrik Flykt1-4/+4
2013-04-28core: Print timezone information if available from serverMarcel Holtmann1-0/+4
2013-04-26dnsproxy: Conditional jump depends on uninitialized valueJukka Rissanen1-1/+1
This came from Daniel when running ConnMan using valgrind ==20635== Conditional jump or move depends on uninitialised value(s) ==20635== at 0x49ECF4: get_name (dnsproxy.c:867) ==20635== by 0x49F3F7: parse_response (dnsproxy.c:1096) ==20635== by 0x49FD40: cache_update (dnsproxy.c:1410) ==20635== by 0x4A0FF3: forward_dns_reply (dnsproxy.c:1803) ==20635== by 0x4A15D9: udp_server_event (dnsproxy.c:1912) ==20635== by 0x3331E47A54: g_main_context_dispatch (gmain.c:2715) ==20635== by 0x3331E47D87: g_main_context_iterate.isra.24 (gmain.c:3290) ==20635== by 0x3331E48181: g_main_loop_run (gmain.c:3484) ==20635== by 0x44B600: main (main.c:670)
2013-04-26build: Install connmand and connman.conf manual pagesJukka Rissanen1-2/+2
2013-04-26man: Update connman.conf.5 manual pageJukka Rissanen1-6/+36
Updated PreferredTechnologies description. Added SingleConnectedTechnology, AllowedTetheringTechnologies and PersistentTetheringMode descriptions.
2013-04-26make: Add main.conf example file into dist tar ballJukka Rissanen1-0/+2
2013-04-26dhcpv6: Fix memory leakJukka Rissanen1-0/+2
The received IP address was not freed.
2013-04-26gdhcp: The last option in a message was not parsed correctlyJukka Rissanen1-2/+2
If the desired option was last one in the message, then it was lost because the remaining data calculation was wrong.
2013-04-26dhcpv6: Retransmit a message with same transaction idJukka Rissanen1-0/+20
Make sure we do not create a new transaction id for a message when it needs to be retransmitted.
2013-04-26gdhcp: Do not change the transaction id if retransmittingJukka Rissanen1-3/+9
As requested in RFC 3315 chapter 15.1, a client MUST leave the transaction id unchanged in retransmissions of a message.
2013-04-26gdhcp: Add helper functions for message retransmissionJukka Rissanen2-0/+19
2013-04-26gdhcp: Add debug print for transaction idJukka Rissanen1-5/+12
Print transaction id of sent and received messages so that it is easier to match the packets.
2013-04-26TODO: Update type definitions cleanup taskPatrik Flykt1-2/+0
2013-04-26include: Remove definition for connman_uint16_tPatrik Flykt1-1/+0
2013-04-26network: Replace connman_uint16_t with uint16_tPatrik Flykt2-9/+9
2013-04-26include: Remove definition for connman_uint8_tPatrik Flykt1-1/+0
2013-04-26network: Replace connman_uint8_t with uint8_tPatrik Flykt2-5/+7
2013-04-26service: Replace connman_uint8_t with uint8_tPatrik Flykt1-3/+4
2013-04-26tethering: Use fallback nameservers if dnsproxy is not in useJukka Rissanen1-10/+37
If user has disabled dnsproxy with -r option, then fallback to user specified nameservers instead of using the Google one.
2013-04-26dnsproxy: Return proper return code if listener_table is missingJukka Rissanen1-1/+1
The listener_table can be NULL if we have started connman with -r option. Because we return < 0 value to caller in this case, the caller, e.g. the tethering code, has a possibility to change its functionality, e.g. the tethering code can fall back to some other DNS servers.
2013-04-26technology: Auto start tethering if enabled and configuredJukka Rissanen1-65/+125
If the user has enabled persistent tethering mode in main.conf, then try to activate tethering when technology is re-enabled, or we are returning from offline mode, or after the device has rebooted.
2013-04-26main: Add support for PersistentTetheringMode configuration variableJukka Rissanen1-0/+15
2013-04-26conf: Add description of PersistentTetheringModeJukka Rissanen1-0/+5
2013-04-26ethernet: Add tethering supportJukka Rissanen3-1/+133
2013-04-26rtnl: Interface was added to technology too earlyJukka Rissanen1-4/+12
The __connman_technology_add_interface() needs to be called after we have created the technology which is done by rtnl->newlink() callback. If this is done the old way, the ethernet devices will not get their interfaces set properly.
2013-04-26device: Add support functions needed by ethernet tetheringJukka Rissanen2-0/+46
2013-04-26main: Add support for AllowedTetheringTechnologies configuration variableJukka Rissanen1-0/+17
2013-04-26conf: Add description of AllowedTetheringTechnologiesJukka Rissanen1-0/+12
2013-04-23client: Trim off spaces from user inputPatrik Flykt1-8/+20
After splitting the input string into components, create a new array holding the non-zero substrings as input for the commands. Thus the input can start and end as well as divide its separate parts by any number spaces.
2013-04-23client: Add command completionPatrik Flykt3-0/+37
Add completion support for connmanctl commands.
2013-04-23client: Follow coding stylePatrik Flykt3-5/+6
Follow coding style and use __connmanctl prefix for the commands() function.
2013-04-23client: Add support for tetheringPatrik Flykt1-0/+175
Add tethering support. For WiFi also set the SSID and passphrase if they have been specified on the command line. Check that setting both SSID and passphrase succeed before trying to enable tethering. After successfully setting SSID and passphrase for WiFi, use the boolean value parsing helper function return value to decide whether WiFi tethering is to be enabled, disabled or not modified. Fixes BMC#25886
2013-04-18dbus: Add connman_dbus_get_connnection_unix_user()Daniel Wagner2-0/+101
The UID is fetched via org.freedesktop.DBus.GetConnectionUnixUser D-Bus method call.
2013-04-18dbus: Refactor callback helper structDaniel Wagner1-7/+8
The helper struct will be used by a new dbus function which uses a different callback signature. Therefore, we need to use a void pointer for storing the callback.
2013-04-18session: Do not fail when creating default policy configurationDaniel Wagner3-26/+5
Do not handle the small alloc failures because glib will abort when memory is tight anyway.
2013-04-18session: Change to "func_t" postfix to callback typedefDaniel Wagner3-8/+8
Streamline the callback typedefs with the rest of the code.
2013-04-18session_policy_local: Use callback helpersDaniel Wagner1-7/+9
Use the generic callback helpers to encapsulate struct create_data. In a later patch we will add some more data elemets to struct create_data. That is the reason why it is not remove here.
2013-04-18session_policy_local: Load policy when a new file is addedDaniel Wagner1-0/+7
When a file is added (not modified) we need to parse it as well
2013-04-18session_policy_local: Do not free policy on load errorDaniel Wagner1-2/+5
We should not unref the policy on parsing errors becase the policy lifetime is attached to the lifetime of the file. When the file is removed we remove it from the hash table.
2013-04-18session_policy_local: Empty policy list indicated no match allDaniel Wagner1-8/+3
Match all is expressed via CONNMAN_SERVICE_TYPE_UNKNOWN. An empty list means no match.
2013-04-18session_policy_local: Set default policy using common codeDaniel Wagner1-4/+2
Use connman_sessoin_set_default_config() instead of open coded version. This prepars the next fix.
2013-04-18session: Empty policy list indicated no match allDaniel Wagner1-1/+1
Match all is expressed via CONNMAN_SERVICE_TYPE_UNKNOWN. An empty list means no match.