Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."

Today's Topics:

   1. [PATCH] iptables: Fix incorrect code (Rahul Jain)
   2. Re: Any experience running Apple's Bonjour Conformance Tests against 
connman?
      (KeithG)
   3. Re: Any experience running Apple's Bonjour Conformance Tests against 
connman?
      (Daniel Wagner)


----------------------------------------------------------------------

Date: Tue, 04 Aug 2020 16:48:16 +0530
From: Rahul Jain <[email protected]>
Subject: [PATCH] iptables: Fix incorrect code
To: "[email protected]" <[email protected]>
Cc: AMIT KUMAR JAISWAL <[email protected]>, Bhaskar Dutta
        <[email protected]>, Sheetal Arya <[email protected]>
Message-ID:
        <20200804111816epcms5p42cce6cfdebcede4f97652025069e6b6c@epcms5p4>
Content-Type: text/plain; charset="utf-8"

[PATCH] iptables: Fix incorrect code

Signed-off-by: Bhaskar Dutta <[email protected]>
Signed-off-by: Rahul Jain <[email protected]>
---
 src/iptables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iptables.c b/src/iptables.c
index 47ea1c2..6feb007 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -3383,7 +3383,7 @@ static int parse_rule_spec(struct connman_iptables *table,
                    break;
 
                if (invert)
-                   ctx->ip->invflags |= IP6T_INV_DSTIP;
+                   ctx->ipv6->invflags |= IP6T_INV_DSTIP;
            }   
                
            break;
-- 
2.7.4

------------------------------

Date: Tue, 4 Aug 2020 08:52:32 -0500
From: KeithG <[email protected]>
Subject: Re: Any experience running Apple's Bonjour Conformance Tests
        against connman?
To: Daniel Wagner <[email protected]>
Cc: Ryan Smith <[email protected]>, Michael Sweet
        <[email protected]>, [email protected]
Message-ID:
        <cag17s_nbggmmyjn9cz9yf3capcqoj93ix34u2chozmyvfzz...@mail.gmail.com>
Content-Type: multipart/alternative;
        boundary="000000000000c2fa0305ac0d91d7"

--000000000000c2fa0305ac0d91d7
Content-Type: text/plain; charset="UTF-8"

See inline.

On Tue, Aug 4, 2020 at 1:31 AM Daniel Wagner <[email protected]> wrote:

> Hi KeithG,
>
> On Mon, Aug 03, 2020 at 04:56:26PM -0500, KeithG wrote:
> > Just ran into this again, today when my son rebooted the router, all WiFi
> > Pis lost their connection and did not reconnect.  Anything we can do to
> > help diagnose this?
>
> Is the WiFi service configured to autoconnect?
>
>   connmanctl config <service> --autoconnect yes
>
> it appears so:
~# connmanctl services wifi_b827eb52ccd0_73706733_managed_psk
/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk
  Type = wifi
  Security = [ psk ]
  State = online
  Strength = 47
  Favorite = True
  Immutable = True
  AutoConnect = True
  Name = spg3
  Ethernet = [ Method=auto, Interface=wlan0, Address=B8:27:EB:52:CC:D0,
MTU=1500 ]
  IPv4 = [ Method=dhcp, Address=192.168.2.41, Netmask=255.255.255.0,
Gateway=192.168.2.1 ]
  IPv4.Configuration = [ Method=dhcp ]
  IPv6 = [ Method=auto, Address=2601:241:4200:28d:ba27:ebff:fe52:ccd0,
PrefixLength=64, Privacy=disabled ]
  IPv6.Configuration = [ Method=auto, Privacy=disabled ]
  Nameservers = [ 192.168.2.1]
  Nameservers.Configuration = [  ]
  Timeservers = [  ]
  Timeservers.Configuration = [  ]
  Domains = [ griders ]
  Domains.Configuration = [  ]
  Proxy = [ Method=direct ]
  Proxy.Configuration = [  ]
  mDNS = False
  mDNS.Configuration = False
  Provider = [  ]

When querying it via iwctl, though it shows that it is not set:

# iwctl known-networks spg3 show
                              Known Network: spg3
--------------------------------------------------------------------------------
  Settable  Property          Value
--------------------------------------------------------------------------------
            Name              spg3
            Hidden
         *  AutoConnect       no
and I cannot seem to be able to set it
~# iwctl known-networks spg3 set-property AutoConnect yes
~# iwctl known-networks spg3 show
                              Known Network: spg3
--------------------------------------------------------------------------------
  Settable  Property          Value
--------------------------------------------------------------------------------
            Name              spg3
            Hidden
         *  AutoConnect       no

If I edit the /var/lib/iwd/spg3.psk file to change the AutoConnect value
from 'false' to 'true', it immediately changes back.
Is connman controlling this?

?
>
> > Does the setting 'background scanning' do anything if you are using
> > iwd?
>
> No, it should not. As long ConnMan lists gets of station, there nothing
> we need to tweak on wpa_supplicant or iwd. So if 'connmanctl services'
> lists the service, all should be okay.
>
> > Could that be why it doesn't reconnect?
>
> I think it's missing the autoconnect flag.
>
> > 'connmanctl scan' does not work with iwd...
>
> Hmm, which version of iwd and ConnMan are you using. Versions before
> ConnMan 1.38 do not work with recent iwd versions.
>

I built the latest connman from git (just in case?) and iwd is the 'latest'
from Arch.
connman-git 1.38.r11.g82699007-1
iwd 1.8-1
Oh, scanning does work now with iwd from connman! Sorry for mentioning it.
I guess that 'feature' came with an upgrade to iwd from 1.7 to 1.8.
Woo Hoo and thanks! This simplifies our PHP scripts.

This behavior of not reconnecting when the router is rebooted is noted on
an RPiB3+ running aarch64, an armv6 install on the RPi_Zero and on an armv7
install on a RPiB3.
All have Autoconnect=true

>
> Thanks,
> Daniel
>

--000000000000c2fa0305ac0d91d7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">See inline.<br></div><br><div class=3D"gm=
ail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Aug 4, 2020 at 1:3=
1 AM Daniel Wagner &lt;<a href=3D"mailto:[email protected]";>[email protected]</a>=
&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi K=
eithG,<br>
<br>
On Mon, Aug 03, 2020 at 04:56:26PM -0500, KeithG wrote:<br>
&gt; Just ran into this again, today when my son rebooted the router, all W=
iFi<br>
&gt; Pis lost their connection and did not reconnect.=C2=A0 Anything we can=
 do to<br>
&gt; help diagnose this?<br>
<br>
Is the WiFi service configured to autoconnect?<br>
<br>
=C2=A0 connmanctl config &lt;service&gt; --autoconnect yes<br>
<br></blockquote>it appears so:</div><div class=3D"gmail_quote">~# connmanc=
tl services wifi_b827eb52ccd0_73706733_managed_psk<br>/net/connman/service/=
wifi_b827eb52ccd0_73706733_managed_psk<br>=C2=A0 Type =3D wifi<br>=C2=A0 Se=
curity =3D [ psk ]<br>=C2=A0 State =3D online<br>=C2=A0 Strength =3D 47<br>=
=C2=A0 Favorite =3D True<br>=C2=A0 Immutable =3D True<br>=C2=A0 <span style=
=3D"background-color:rgb(255,255,0)">AutoConnect =3D True</span><br>=C2=A0 =
Name =3D spg3<br>=C2=A0 Ethernet =3D [ Method=3Dauto, Interface=3Dwlan0, Ad=
dress=3DB8:27:EB:52:CC:D0, MTU=3D1500 ]<br>=C2=A0 IPv4 =3D [ Method=3Ddhcp,=
 Address=3D192.168.2.41, Netmask=3D255.255.255.0, Gateway=3D192.168.2.1 ]<b=
r>=C2=A0 IPv4.Configuration =3D [ Method=3Ddhcp ]<br>=C2=A0 IPv6 =3D [ Meth=
od=3Dauto, Address=3D2601:241:4200:28d:ba27:ebff:fe52:ccd0, PrefixLength=3D=
64, Privacy=3Ddisabled ]<br>=C2=A0 IPv6.Configuration =3D [ Method=3Dauto, =
Privacy=3Ddisabled ]<br>=C2=A0 Nameservers =3D [ 192.168.2.1]<br>=C2=A0 Nam=
eservers.Configuration =3D [ =C2=A0]<br>=C2=A0 Timeservers =3D [ =C2=A0]<br=
>=C2=A0 Timeservers.Configuration =3D [ =C2=A0]<br>=C2=A0 Domains =3D [ gri=
ders ]<br>=C2=A0 Domains.Configuration =3D [ =C2=A0]<br>=C2=A0 Proxy =3D [ =
Method=3Ddirect ]<br>=C2=A0 Proxy.Configuration =3D [ =C2=A0]<br>=C2=A0 mDN=
S =3D False<br>=C2=A0 mDNS.Configuration =3D False<br>=C2=A0 Provider =3D [=
 =C2=A0]<br></div><div class=3D"gmail_quote"><div>=C2=A0</div><div>When que=
rying it via iwctl, though it shows that it is not set:</div><div><br></div=
><div># iwctl known-networks spg3 show<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 K=
nown Network: spg3<br>-----------------------------------------------------=
---------------------------<br>=C2=A0 Settable =C2=A0Property =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0Value<br>---------------------------------------------=
-----------------------------------<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 Name =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0spg3<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Hidden<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 <s=
pan style=3D"background-color:rgb(255,255,0)">=C2=A0* =C2=A0AutoConnect =C2=
=A0 =C2=A0 =C2=A0 no</span></div><div>and I cannot seem to be able to set i=
t</div><div>~# iwctl known-networks spg3 set-property AutoConnect yes<br>~#=
 iwctl known-networks spg3 show<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Known Ne=
twork: spg3<br>------------------------------------------------------------=
--------------------<br>=C2=A0 Settable =C2=A0Property =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0Value<br>----------------------------------------------------=
----------------------------<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 N=
ame =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0spg3<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Hidden<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* =
=C2=A0AutoConnect =C2=A0 =C2=A0 =C2=A0 no</div><div><br></div><div>If I edi=
t the /var/lib/iwd/spg3.psk file to change the AutoConnect value from &#39;=
false&#39; to &#39;true&#39;, it immediately changes back.</div><div>Is con=
nman controlling this?</div><div><br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">
?<br>
<br>
&gt; Does the setting &#39;background scanning&#39; do anything if you are =
using<br>
&gt; iwd?<br>
<br>
No, it should not. As long ConnMan lists gets of station, there nothing<br>
we need to tweak on wpa_supplicant or iwd. So if &#39;connmanctl services&#=
39;<br>
lists the service, all should be okay.<br>
<br>
&gt; Could that be why it doesn&#39;t reconnect?<br>
<br>
I think it&#39;s missing the autoconnect flag.<br>
<br>
&gt; &#39;connmanctl scan&#39; does not work with iwd...<br>
<br>
Hmm, which version of iwd and ConnMan are you using. Versions before<br>
ConnMan 1.38 do not work with recent iwd versions.<br></blockquote><div>=C2=
=A0</div><div>I built the latest connman from git (just in case?) and iwd i=
s the &#39;latest&#39; from Arch.<br></div><div>connman-git 1.38.r11.g82699=
007-1</div><div>iwd 1.8-1</div>Oh, scanning does work now with iwd from con=
nman! Sorry for mentioning it. I guess that &#39;feature&#39; came with an =
upgrade to iwd from 1.7 to 1.8.</div><div class=3D"gmail_quote">Woo Hoo and=
 thanks! This simplifies our PHP scripts. <br></div><div class=3D"gmail_quo=
te"><div><br></div><div>This behavior of not reconnecting when the router i=
s rebooted is noted on an RPiB3+ running aarch64, an armv6 install on the R=
Pi_Zero and on an armv7 install on a RPiB3.</div><div>All have Autoconnect=
=3Dtrue<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks,<br>
Daniel<br>
</blockquote></div></div>

--000000000000c2fa0305ac0d91d7--

------------------------------

Date: Tue, 4 Aug 2020 16:45:59 +0200
From: Daniel Wagner <[email protected]>
Subject: Re: Any experience running Apple's Bonjour Conformance Tests
        against connman?
To: KeithG <[email protected]>
Cc: Ryan Smith <[email protected]>, Michael Sweet
        <[email protected]>, [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

> ~# connmanctl services wifi_b827eb52ccd0_73706733_managed_psk
> /net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk
>   Type = wifi
>   Security = [ psk ]
>   State = online
>   Strength = 47
>   Favorite = True
>   Immutable = True
>   AutoConnect = True

Okay. So in the case it does not reconnect, does ConnMan list the WiFi
services at all? I try to reproduce this evening.

> If I edit the /var/lib/iwd/spg3.psk file to change the AutoConnect value
> from 'false' to 'true', it immediately changes back.
> Is connman controlling this?

Yes, if you use iwd with ConnMan together, the auto connection of iwd
will be disabled by ConnMan.

> > Hmm, which version of iwd and ConnMan are you using. Versions before
> > ConnMan 1.38 do not work with recent iwd versions.
> >
> 
> I built the latest connman from git (just in case?) and iwd is the 'latest'
> from Arch.
> connman-git 1.38.r11.g82699007-1
> iwd 1.8-1
> Oh, scanning does work now with iwd from connman! Sorry for mentioning it.
> I guess that 'feature' came with an upgrade to iwd from 1.7 to 1.8.
> Woo Hoo and thanks! This simplifies our PHP scripts.

:)

> This behavior of not reconnecting when the router is rebooted is noted on
> an RPiB3+ running aarch64, an armv6 install on the RPi_Zero and on an armv7
> install on a RPiB3.
> All have Autoconnect=true

Could it be, that ConnMan just not getting notified that the link went
down? Could you monitor what iwd sends via D-Bus to ConnMan
(monitor-iwd)?

Thanks,
Daniel

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]


------------------------------

End of connman Digest, Vol 58, Issue 1
**************************************

Reply via email to