Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, 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. Interface change callback (JH)
   2. Re: Why can't connman automatically enable and connect to
      cellular network interface? (JH)
   3. Re: Why can't connman automatically enable and connect to
      cellular network interface? (Daniel Wagner)
   4. Re: IPv6 privacy extensions with connman (Daniel Wagner)
   5. Re: duplicate entries in /etc/resolv.conf (Daniel Wagner)
   6. Re: [PATCH 0/2] Don't export duplicate entries in resolv.conf
      (Daniel Wagner)
   7. Re: Interface change callback (Daniel Wagner)
   8. Re: [PATCH 2/5] vpn: Add support for configurable user and
      groups in settings (Daniel Wagner)
   9. Re: [PATCH 3/5] task: Add support for a custom setup function
      (Daniel Wagner)


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

Message: 1
Date: Thu, 2 May 2019 10:24:22 +1000
From: JH <[email protected]>
To: connman <[email protected]>
Subject: Interface change callback
Message-ID:
        <CAA=hcwrlyng_wbcwbfrf+acans_sw4cwa0jcntrk9xz9oon...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

Are there any C API online reference to use interface change callback
SIGNAL_PROPERTY_CHANGED = "PropertyChanged" and
add_signal_receiver(callback_fn, signal, user_arg) for similar to
https://pythonhosted.org/pyconnman/apidoc.html?

Thank you.

Kind regards,

- jupiter


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

Message: 2
Date: Thu, 2 May 2019 15:29:57 +1000
From: JH <[email protected]>
To: Daniel Wagner <[email protected]>
Cc: [email protected]
Subject: Re: Why can't connman automatically enable and connect to
        cellular network interface?
Message-ID:
        <CAA=hcwtw9w1sekno9jhcmkdahcqrn6tx+x37e5juxkbcljx...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi Daniel,

Both wifi.config and cellular.config are able to be added by connman,
but I have to run command line manually "connmanctl enable cellular"
and "connmanctl enable wifi" to bring both online. Are there any
key-value in config file for automatically enable\ing the interfaces
without calling "connmanctl enable cellular / wifi" manually? I
checked the config-format.txt, but could not find anything.

Thank you.

Kind regards,

- jupiter

On 4/30/19, JH <[email protected]> wrote:
> Hi Daniel,
>
>> Type is missing. See examples in config-format.txt
>
> OK, fixed all errors, both wifi and cellular services are added, but
> the WiFi and cellular are still not shown in network interface at
> follows:
>
> # connmand -n -d src/config.c
> connmand[360]: Connection Manager version 1.35
> connmand[360]: Adding configuration wifi
> connmand[360]: Adding service configuration wifi
> connmand[360]: Adding configuration cellular
> connmand[360]: Adding service configuration cellular
> connmand[360]: Checking loopback interface settings
> connmand[360]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536
> connmand[360]: lo {newlink} index 1 operstate 0 <UNKNOWN>
> <DOWN>
> connmand[360]: Adding interface eth0 [ ethernet ]
> [ 1318.264479] Micrel KSZ8081 or KSZ8091 20b4000.ethernet-1:02:
> attached PHY driver [Micrel KSZ8081 or KSZ8091]
> (mii_bus:phy_addr=20b4000.ethernet-1:02, irq=POLL)
> connmand[360]: Adding interface eth1 [ ethernet ]
> connmand[360]: sit0 {newlink} index 4 address 00:00:00:00:08:00 mtu 1480
> connmand[360]: sit0 {newlink} index 4 operstate 2 <DOWN>
> connmand[360]: wwan0 {create} index 5 type 1 <ETHER>
> connmand[360]: wwan0 {update} flags 4098 <DOWN>
> connmand[360]: wwan0 {newlink} index 5 address AE:9E:88:64:6F:1B mtu 1500
> connmand[360]: wwan0 {newlink} index 5 operstate 2 <DOWN>
> connmand[360]: Adding interface wwan0 [ cellular ]
> connmand[360]: mlan0 {create} index 8 type 1 <ETHER>
> connmand[360]: mlan0 {update} flags 36866 <DOWN>
> connmand[360]: mlan0 {newlink} index 8 address D4:CA:6E:60:D7:F9 mtu 1500
> connmand[360]: mlan0 {newlink} index 8 operstate 2 <DOWN>
> connmand[360]: Adding interface mlan0 [ wifi ]
>
> I removed Ethernet cable just in case, no wifi and cellular:
>
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:04:9F:05:0F:C0
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:235 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:343 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:31217 (30.4 KiB)  TX bytes:43427 (42.4 KiB)
>
> eth1      Link encap:Ethernet  HWaddr 00:04:9F:05:0F:BF
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:65536  Metric:1
>           RX packets:106 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:8392 (8.1 KiB)  TX bytes:8392 (8.1 KiB)
>
> Anything I could still be missing here?
>
> Thank you.
>
> - jupiter
>


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

Message: 3
Date: Thu, 2 May 2019 08:01:41 +0200
From: Daniel Wagner <[email protected]>
To: JH <[email protected]>
Cc: [email protected]
Subject: Re: Why can't connman automatically enable and connect to
        cellular network interface?
Message-ID: <20190502060141.icbqskq7gmvx5zod@beryllium>
Content-Type: text/plain; charset=us-ascii

Hi JH,

On Thu, May 02, 2019 at 03:29:57PM +1000, JH wrote:
> Both wifi.config and cellular.config are able to be added by connman,
> but I have to run command line manually "connmanctl enable cellular"
> and "connmanctl enable wifi" to bring both online. Are there any
> key-value in config file for automatically enable\ing the interfaces
> without calling "connmanctl enable cellular / wifi" manually? I
> checked the config-format.txt, but could not find anything.

The default settings for the technology enabled/disabled is in the
/var/lib/connman/settings file. Try to deploy something like
below. Note ConnMan should not run when you add or edit the file.

# cat /var/lib/connman/settings
[global]
OfflineMode=false

[Wired]
Enable=true
Tethering=false

[WiFi]
Enable=true


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

Message: 4
Date: Thu, 2 May 2019 08:03:37 +0200
From: Daniel Wagner <[email protected]>
To: Christian <[email protected]>
Cc: [email protected]
Subject: Re: IPv6 privacy extensions with connman
Message-ID: <20190502060336.oou7csyxobgeq7d7@beryllium>
Content-Type: text/plain; charset=us-ascii

Hi Christian,

> Were you able to investigate why a "scope global secondary dynamic"
> address is created instead of a "scope global temporary dynamic".

No, not yet.

Thanks,
Daniel


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

Message: 5
Date: Thu, 2 May 2019 08:04:38 +0200
From: Daniel Wagner <[email protected]>
To: [email protected]
Subject: Re: duplicate entries in /etc/resolv.conf
Message-ID: <20190502060437.dsiz2tyb3uawz7e2@beryllium>
Content-Type: text/plain; charset=us-ascii

Hi Doron,

On Tue, Apr 30, 2019 at 04:25:57PM +0300, Doron Behar wrote:
> I've patched these against the 1.37 tag and everything seems fine.

Excellent. Thanks for the feedback.

Thanks,
Daniel


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

Message: 6
Date: Thu, 2 May 2019 08:08:00 +0200
From: Daniel Wagner <[email protected]>
To: [email protected]
Subject: Re: [PATCH 0/2] Don't export duplicate entries in resolv.conf
Message-ID: <20190502060800.4txxjkfgzyyigfwg@beryllium>
Content-Type: text/plain; charset=us-ascii

On Sat, Apr 27, 2019 at 02:29:43PM +0200, Daniel Wagner wrote:
> Fix bug reports on duplicate entries in resolv.conf (-r/--nodnsproxy)

Both patches applied.


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

Message: 7
Date: Thu, 2 May 2019 08:16:02 +0200
From: Daniel Wagner <[email protected]>
To: JH <[email protected]>
Cc: connman <[email protected]>
Subject: Re: Interface change callback
Message-ID: <20190502061602.fhjxlaftlbfedmzi@beryllium>
Content-Type: text/plain; charset=us-ascii

Hi JH,

On Thu, May 02, 2019 at 10:24:22AM +1000, JH wrote:
> Are there any C API online reference to use interface change callback
> SIGNAL_PROPERTY_CHANGED = "PropertyChanged" and
> add_signal_receiver(callback_fn, signal, user_arg) for similar to
> https://pythonhosted.org/pyconnman/apidoc.html?

There is no C API for ConnMan for external programs. The interface is
D-Bus and we it documented in the docs directory. E.g. the Service API
is documented here:

https://git.kernel.org/pub/scm/network/connman/connman.git/tree/doc/service-api.txt

Also have a look at the Python scripts in 'test' directory in case you
haven't already done so.

Thanks,
Daniel


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

Message: 8
Date: Thu, 2 May 2019 08:28:30 +0200
From: Daniel Wagner <[email protected]>
To: Jussi Laakkonen <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/5] vpn: Add support for configurable user and
        groups in settings
Message-ID: <20190502062830.xjleuozqb6567opi@beryllium>
Content-Type: text/plain; charset=us-ascii

Hi Jussi,

On Mon, Apr 29, 2019 at 06:39:59PM +0300, Jussi Laakkonen wrote:
> This commit adds support for configurable user, group and supplementary
> groups for VPNs. Common configuration is loaded from the main VPN config
> file CONFIGDIR/connman-vpn.conf, which applies to all VPNs. This commit
> also adds support for VPN specific configuration in
> CONFIGDIR/vpn-plugin/ based on the plugin name + .conf suffix.
> 
> Both configs follow the name format:
>  - User = user to use for running VPN binary (username or uid)
>  - Group = the main group to use for running VPN binary (groupname or
>    gid)
>  - SupplementaryGroups = supplementary groups used (separator: comma,
>    groupnames or gids)
> 
> An example config is:
> [VPNBinary]

So if you want to do a group, it tell what it is about, maybe
Permission/AccessControl or something along this. I wouldn't mind to
have the User/Group/SupmentaryGroups in the general section
either. VPNBinary seems not really fitting here.

Thanks,
Daniel


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

Message: 9
Date: Thu, 2 May 2019 08:29:54 +0200
From: Daniel Wagner <[email protected]>
To: Jussi Laakkonen <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 3/5] task: Add support for a custom setup function
Message-ID: <20190502062953.zeygosyk2llb32lt@beryllium>
Content-Type: text/plain; charset=us-ascii

Hi Jussi,

> index 953cc409..2583f484 100644
> --- a/src/task.c
> +++ b/src/task.c
> @@ -45,8 +45,10 @@ struct connman_task {
>       GPtrArray *argv;
>       GPtrArray *envp;
>       connman_task_exit_t exit_func;
> +     connman_task_setup_t custom_setup_func;

Nitpick of the day: just called it setup_func. That matches the exit_func.

Thanks,
Daniel


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

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


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

End of connman Digest, Vol 43, Issue 2
**************************************

Reply via email to