dnsproxy: invalid answer where there are no DNS servers available
by Nuno Gonçalves
Hi,
Typing "ping abcd", where abcd does not exist on /etc/hosts or in the
search domains, will usually hang for a while with Connman.
I've compared with other systems and my conclusion is that libnss_dns
is retrying the DNS request to connman, since connman answer does not
include the query field.
This behaviour comes from [1], where both a invalid Query and no
upstream servers are handled in the same way.
I believe the query field must be part of the answer when the Query
message was valid, but just happens to not be possible to resolve.
Thanks,
Nuno
[1] https://git.kernel.org/pub/scm/network/connman/connman.git/tree/src/dnspr...
1 year, 6 months
[PATCH v2 0/1] Start online check on IP address update
by Robert Tiemann
Differences between v1 and v2:
- Start of online check has been removed from
__connman_service_ipconfig_indicate_state() in v2, the only call of
start_online_check() is in address_updated(). The reasoning behind
this is that it only makes sense to check the online state if there is
an IP address assigned, so address_updated() seems to be the
appropriate place. Moreover, start_online_check() was frequently
called twice in v1 because of a state change followed by an IP address
update.
- There is a call of cancel_online_check() inside start_online_check()
to avoid multiple simultaneous starts of online check which could have
caused resource leaks.
- Function check_proxy_setup() returns true if the caller should call
__connman_service_wispr_start(). This was done to make sure that
__connman_service_wispr_start() is always called after
cancel_online_check() inside start_online_check().
- Function start_online_check() uses early return for better
readability.
Robert Tiemann (1):
service: Start online check on IP address update
src/service.c | 40 +++++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 17 deletions(-)
--
2.17.1
1 year, 9 months
[PATCH 0/2] commandctl: handle error case more gracefully
by Daniel Wagner
Make the enable/disable output a bit more friendly to non experts.
Daniel Wagner (2):
client: Pass error code to all D-Bus callbacks
client: Gracefully enable/disable technologies error messages
client/agent.c | 14 ++---
client/commands.c | 128 ++++++++++++++++++++++++------------------
client/dbus_helpers.c | 33 ++++++++++-
client/dbus_helpers.h | 2 +-
4 files changed, 112 insertions(+), 65 deletions(-)
--
2.20.1
1 year, 9 months
Failed to create storage directory: No such file or directory
by JH
Hi,
I built the connman from git source upstream, but I could not run it:
$ CONNMAN_WEB_DEBUG=1 src/connmand -d -n -c /etc/connman/main.conf
Failed to create storage directory: No such file or directory
Connection ":1.163" is not allowed to own the service "net.connman"
due to security policies in the configuration file
Where is the storage directory? Do I have to run it in root?
Actually, I've just ran it in root, still could not find storage and crashed:
Failed to create storage directory: No such file or directory
......................
connmand[23886]: Aborting (signal 11) [src/connmand]
Thank you.
Kind regards,
- jh
1 year, 9 months
connmanctl scan wifi: Error /net/connman/technology/wifi: Not implemented
by tormen@mail.ch
Hi,
I have a problem to make wifi work within connman.
I tried to google, tried, googled, tried, but can't get around
it :/ ... so I really hope someone can give me a hint.
'connmanctl scan wifi' always gives me a
Error /net/connman/technology/wifi: Not implemented
I am currently using iwd, it's running. iwd can access wifi
and scan all good [1].
Just connman seems to have a problem connecting to it.
[1] for instance all of this works fine:
'sudo iw wlan0'
'iwctl device list'
'iwctl station wlan0 scan'
'iwctl station wlan0 get-networks'
I had first tried wpa_supplicant... and am now using iwd
(supposedly iwd is a bit more stable / better ?!)
Both showed the same symtptoms and problems.
I then stopped iwd and connman (via systemctl).
Then I started logging journalctl right before
starting iwd via systemctl.
--> see journalctl.log
http://sprunge.us/hJog0I
Started connmand via CONNMAN_SUPPLICANT_DEBUG=1 connmand -n -d
--> see conmand.log
http://sprunge.us/8iz5eV
And issued some connmanctl commands
--> see cli.txt
http://sprunge.us/eYpuKG
The only thing I noticed was that
'connmanctl enable agent'
consistantly gave me a
Error agent: Method "SetProperty" with signature "sv" on
interface "net.connman.Technology" doesn't exist
(but the command returns with exit code 0 ?!))
But not sure what to do with this.
Thaaaaaaanks a lot for any help with this to unstuck me,
Tormen
PS:
My goal is actually to use cmst later.
For now within cmst the "Rescan" button is grayed out.
(most likely because the connection to the wifi agent is broken)
1 year, 9 months
[PATCH 0/1] Start online check on IP address update
by Robert Tiemann
Hi,
I've discovered that ConnMan does not enter online state when going
from IPV4LL to DHCP-assigned address. ConnMan remains in ready state
because the online check is not triggered again in this case.
Here is a scenario for reproducing the problem:
- A device running ConnMan is attached to an Ethernet switch.
- The Ethernet switch is powered on, but is connected only to the
device, not to any network.
- The wired service is set up for DHCP.
- ConnMan tries to configure the Ethernet connection via DHCP, fails
because there is no DHCP server on the network, and resorts to
IPV4LL.
- ConnMan starts sending periodic DHCP requests to get a proper IP
address.
- After connecting the switch to a network which has a DHCP server,
ConnMan's DHCP requests are answered. IP configuration succeeds, but
ConnMan remains in ready state.
I have checked the debug output. After the configuration via IPV4LL
has succeeded, __connman_service_wispr_start() is called, and
wispr_portal_detect() fails with the message "Could not get
nameservers". Then, ConnMan ends up in ready state. Fair enough.
When the DHCP requests are answered, the Ethernet interface is
configured correctly, but __connman_service_wispr_start() is not
called again. Thus, ConnMan remains in its previously assumed ready
state.
To fix this, I have prepared a patch against master which triggers the
online check when the IP address is updated. It works, but I am not
sure if this is a good solution or if the patch is just fighting a
symptom caused by a problem which should be fixed somewhere else.
Cheers,
Robert
Robert Tiemann (1):
service: Start online check on IP address update
src/service.c | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
--
2.17.1
1 year, 9 months
crash of connmand
by tormen@mail.ch
Hi again,
well in my short time with connmand I got it already to crash for me.
Must be my good influence that tends to bring out the best of
software ;)
Please find the output of connmand -n -d here:
http://sprunge.us/zyKJkl
And a journalctl of a 2nd crash here:
http://sprunge.us/766omR
I don't remember the exact circumstances, so for now that's all I got.
Please let me know if there is anything else I can do to assist.
Tormen
1 year, 9 months
Re: WISPr authentication
by Daniel Wagner
Hi,
On 3/27/19 3:17 PM, Thomas Green wrote:
> Here is my /etc/connman/main.conf
>
> [General]
> SignleConnectedTechnology=true
> EnableOnlineCheck=true
>
> Perhaps something is ignoring that setting. I'll have to look....
Right, so best thing to do is to enable the full log and see what is
happening, e.g. the states of the services.
Thanks,
Daniel
1 year, 10 months
Any C / C++ test program available?
by JH
Hi,
The Git source has a test directory but they are all Python test
programs, are there any C / C++ test programs available for:
(1) Set up WiFi connection based on input of SSID and password.
(2) Get current connected network interface at configuration of
SingleConnectedTechnology = true
(3) Monitor network signal strength for WiFi and cellular.
Thank you.
Kind regards,
- jh
1 year, 10 months