summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-06TODO: Update connmanctl entryPatrik Flykt1-5/+6
Agent mode is mostly done, update the entry with Session mode and VPN Agent support.
2013-05-06client: Check that strings passed to D-Bus to contain valid charsJukka Rissanen1-0/+45
D-Bus aborts if we feed invalid characters to it. So do some sanity check before that.
2013-05-06client: Newline missing after printing scan error messageJukka Rissanen1-1/+1
2013-05-06dhcpv6: Implement CONFIRM message supportJukka Rissanen3-9/+246
See RFC 3315 Chapter 18.1.2. Creation and Transmission of Confirm Messages for details
2013-05-06dhcpv6: Remember the last used IPv6 addressJukka Rissanen1-0/+3
This is required so that we can decide whether to send CONFIRM or SOLICITATION message to server.
2013-05-06ipconfig: Save last used DHCPv6 addressJukka Rissanen1-0/+9
This is needed when implementing CONFIRM message decision logic.
2013-05-06dhcpv6: Added initial MRD supportJukka Rissanen1-0/+6
MRD (Maximum Retransmission Duration) is the total duration of of retransmission of the message. This will be used when sending Confirm message.
2013-05-06gdhcp: Initialize message status code earlyJukka Rissanen1-4/+3
The message status code was initialized too late i.e., after it was set so we lost the status code. This problem was seen with wide-dhcpv6 server.
2013-05-06client: Fix for handling an unset callbackPatrik Flykt1-1/+9
If there is no callback set, don't try to call readline function.
2013-05-06client: Fixes for handling Agent messagesPatrik Flykt1-8/+12
Properly handle agent confirmation input, unset the prompt when RequestInput processing ends and set the passphrase only if it contains some text.
2013-05-06man: Update connman.conf.5 manual page to use TetheringTechnologiesPatrik Flykt1-1/+1
2013-05-06main: Rename AllowedTetheringTechnologies to TetheringTechnologiesPatrik Flykt3-15/+17
2013-05-03gdbus: Fix calling GetManagedObjects twice in a rowLuiz Augusto von Dentz1-7/+18
Calling g_dbus_client_new followed by g_dbus_client_set_proxy_handlers cause two calls to GetManagedObjects in a row as GetNameOwner reply is asyncronously it triggers the second call because the handlers have been set by g_dbus_client_set_proxy_handlers.
2013-05-03AUTHORS: Mention Yann's contributionsPatrik Flykt1-0/+1
2013-05-03client: Initial RequestInput handling supportPatrik Flykt1-0/+199
When receiving a RequestInput Agent API D-Bus call, ask the input in a somewhat logical order from the user with user names first and passwords next. If a passphrase is entered, ignore any WPS pin code requests. Prepare for passphrase length checking by going through the RequestInput message to get the 'Type' argument.
2013-05-03client: Add ReportError handlingPatrik Flykt1-0/+49
Report error and wait for the user to reply with yes/no.
2013-05-03client: Add RequestBrowser handlingPatrik Flykt1-1/+87
Print out the RequestBrowser URL and wait for user input to proced. Add a helper function for getting a yes/no confirmation from the user and another one for getting the last part of the service object path.
2013-05-03client: Implement Agent Release and Cancel method callsPatrik Flykt1-0/+50
Unref the saved Agent D-Bus message on Release and Cancel. In response to the Release method call unnregister Agent interface and quit if in non-interactive mode.
2013-05-03client: Add command mode and agent mode helper functionsPatrik Flykt2-19/+38
In command mode remember history and do command completion, in agent mode do neither. Enable saving and restoring of the readline prompt and add the GIOChannel watch also for non-interactive mode.
2013-05-03client: Add agent commandPatrik Flykt1-0/+30
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