>Let's start from the basics. Please explain the following:
>- When there is an IPv4 only bearer, which are the possible IPv4
>  configuration methods?

CONNMAN_IPCONFIG_METHOD_FIXED
CONNMAN_IPCONFIG_METHOD_DHCP

>- When there is an IPv6 only bearer, which are the possible IPv6
>  configuration methodos?

CONNMAN_IPCONFIG_METHOD_FIXED
CONNMAN_IPCONFIG_METHOD_AUTO (code supports it but I have not seen it 
happenning)

>- When there is a dual IPv4/IPv6 bearer, which are the possible IPv4
>  and IPv6 configuration methods?

ipv4:
CONNMAN_IPCONFIG_METHOD_FIXED
CONNMAN_IPCONFIG_METHOD_DHCP

ipv6
CONNMAN_IPCONFIG_METHOD_AUTO
CONNMAN_IPCONFIG_METHOD_FIXED (supported by the code, but AUTO is the official 
way according to 3gpp)

>There can not be any "old" nameservers left hanging around, as the code
>goes like this:
>
>        char *nameservers = NULL;
>...
>        while (...)
>...
>        g_free(context->ipv4_nameservers);
>        context->ipv4_nameservers = nameservers;
>So if oFono provided no nameservers, they are unset after exiting this
>function as far as I can see.

>If oFono provided nameservers without giving an IP address, the
>nameservers are currently remembered. Once DHCP is run, any DHCP
>provided nameservers replace the old ones. If there are no nameservers
>available via DHCP, the best thing one can do is to keep the ones
>provided by oFono earlier with this message. 

What I've seen while testing this is that dhcpv6 does not replace the old 
nameservers when doing this:

1) First connect with ipv6-pdp and you will get nameservers 2001::1 and 2001::2 
as fixed from ofono.
2) Disconnect and change the configuration from ofono to dual/ipv4v6.
3) Connect and query service from connman and you will see 2001::1 and 2001::2 
plus slaac&dhcpv6 provided nameservers 2001::3 and 2001::4.

With the patch applied, the nameservers at point 3 will be only the 
slaac&dhcpv6 provided 2001::3 and 2001::4.

and yes, I have not had this happening with ipv4 because I have no sim from a 
operator which would use CONNMAN_IPCONFIG_METHOD_DHCP with ipv4 but for sure it 
happens with ipv6.

>If oFono is sending
>outdated information it is not supposed to send when no IP address is
>present (in the DHCP case, I assume), please fix oFono.

It is not ofono but connman using the outdated information.

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

Reply via email to