From: Pasi Sjöholm <[email protected]>

With dual/ipv4v6 it seems that only valid ipv4-addresses 
are returned first and Ipv6.setting only consisting the interface.
Valid ipv6-addresses are updated by the RIL few seconds later to ofono,
and signaled to connman if ofono has been patched to do so.

Following patches work with both patched and non-patched ofono.

Patch1: 
Both ipv4_method and ipv6_method need to be reset to initialization
value "CONNMAN_IPCONFIG_METHOD_UNKNOWN" after disconnect. Otherwise
we might end up using the old ip-address-configuration data 
from modem->context (eg. if first ip-pdp type is used in ofono 
and then switched to ipv6).

Patch2: 
If CONNMAN_IPCONFIG_METHOD_FIXED is not set use either
CONNMAN_IPCONFIG_METHOD_DHCP for ipv4 or CONNMAN_IPCONFIG_METHOD_AUTO
for ipv6 to make sure we can update the configuration later on
if ofono signals them. Using _AUTO initially also workarounds
the ofono not signaling the complete configuration after the context
has been made active.

Patch3:
If ofono signals new configuration while context is active
we need to call set_connected() again to reconfigure the 
interfaces.

Pasi Sjöholm (3):
  ofono: Clean ipv4/6_method when disconnecting
  [connman] ofono: Set CONNMAN_IPCONFIG_METHOD_AUTO/DHCP if not _FIXED
  [connman] ofono: Call set_connected if new configuration received
    while connected

 plugins/ofono.c | 66 ++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 40 insertions(+), 26 deletions(-)

-- 
2.1.0

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

Reply via email to