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. Cellular services over USB ethernet (Richard R?jfors)
   2. Re: Cellular services over USB ethernet (Richard R?jfors)


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

Message: 1
Date: Sun, 7 Apr 2019 10:28:54 +0200
From: Richard R?jfors <[email protected]>
To: connman <[email protected]>
Subject: Cellular services over USB ethernet
Message-ID:
        <CAHB-Pjk4c17N_u6uQNyHjFjRbgD8Y=8to6yv_ykjz7q7xtf...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

I see some "interesting" issues when running cellular over a virtual
USB ethernet.

The problem is that when connman starts it does not yet know that usb0
is the "cellular" interface. And treats it as a "normal" wired
interface, for instance auto-connecting via DHCP.

When the cellular is to be connected, the ofono plugins receives
information that the interface to be used is usb0. But at that point
there is already another service on top of usb0, that might be
connected.

Cellular continues to connect, but unfortunately there are two
services sharing the same if index at that point so only the first
found is notified regarding state changes. Which happens to be the
usb0 service. So the connect attempt on cellular fails because it gets
no state change notification and is never considered ready.

How is this supposed to be handled?

To "fix" my particular case I do a check in ofono.c inside
extract_ipv4_settings if there is any other service using the index,
then disconnect that. That works around the situation, then the
cellular service gets notified.

But I think the "real" problem is that multiple services share the
same if index.

I understand that connman can not know during startup that usb0 is
later to be handled by cellular. So I was thinking of some kind of
list of devices for which no service should be created, or something
like that.

Thanks in advance
Richard


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

Message: 2
Date: Sun, 7 Apr 2019 12:58:32 +0200
From: Richard R?jfors <[email protected]>
To: connman <[email protected]>
Subject: Re: Cellular services over USB ethernet
Message-ID:
        <cahb-pjmn9puvht4ryymnzhqte-0gnqdus7jeoud-y8bjaip...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Den s?n 7 apr. 2019 kl 10:28 skrev Richard R?jfors <[email protected]>:
>
> Hi,
>
> I see some "interesting" issues when running cellular over a virtual
> USB ethernet.
>
> The problem is that when connman starts it does not yet know that usb0
> is the "cellular" interface. And treats it as a "normal" wired
> interface, for instance auto-connecting via DHCP.

Sorry for the buzz, I realised I could handle this using
NetworkInterfaceBlacklist.

--Richard


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

Subject: Digest Footer

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


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

End of connman Digest, Vol 42, Issue 6
**************************************

Reply via email to