Hi,
On Fri, 2015-01-16 at 15:08 +0900, Nakamura, Yusuke (ADITJ/SWG) wrote:
> I’m trying to use ConnMan to take care of network arbitration for my
> automotive embedded system.
Cool!
> Now the question is whether some of technologies get “online”
> simultaneously.
Only one of the services can be 'online' at any one time. This applies
both for Session and Service APIs.
> I’d like to configure available bearers per application (per user) by
> using session_policy_local_plugin.
>
> For instance while “etherner_user” is connecting to the internet via
> Ethernet, “wifi_user” is connecting to the internet via WiFi.
That is doable. With the Session API and its usage of session specific
routing tables, all session routing tables have the default route set.
The default routing table is the only one that has exactly one default
route set, this in order not to change the normal behavior if sessions
are created.
> I think wifi_user’s session does not get online even if wifi internet
> connection gets available.
>
> I suppose that is because “ethernet” is preferred technology.
Actually, if ethernet is online, it means the connectivity check
succeeded. Ethernet could also have stayed as 'ready', should the
connectivity check have failed.
> “wifi_user” can’t receive notification through session.
> session_policy_local_plugin configure ip route when get “online”.
>
> Therefore I think in above case “wifi_user” can’t connect to the
> internet.
State 'ready' is enough to be connected to the internet. The difference
here is that 'online' provides a bit more information, it indicates that
the additional connectivity check to {ipv4,ipv6}.connman.net succeeded.
The 'online' state indicates that proxies are either not needed or
configured correctly for pacrunner,
http://git.kernel.org/cgit/network/connman/pacrunner.git/ Pacrunner
support is found in Fedora's libproxy package so that all applications
using libproxy will get the correct proxies and can connect successfully
to Internet.
But back to your original question, internet is reachable for the WiFi
user also in state 'ready'.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman