Hi Patrik,
> In FIXED IP configuration the service->ipconfig_ipv4->system ip address
> structure is not set. Since it is not set, the IPv4 property for those
> services end up as IPv4 = { Method=fixed }. The full set of IPv4
> parameters exist in IPv4.Configuration (likewise for IPv6).
>
> For DHCP the full set of address parameters is listed in the IPv4
> property, and IPv4.Configuration lists only { Method=dhcp }. The
> location for the currently configured IPv4 address is thus different for
> FIXED configurations wrt DHCP and is confusing as noted in bug #25084.
> My question is this: would it be less confusing if the IPv4 property
> always would contain the current assigned IPv4 address regardless of the
> configuration method? In this case some code would be added for checking
> for a FIXED ip configuration in __connman_ipconfig_append_ipv4() to
> display the adresses. Does this make sense?
>
> I think the same is true for MANUAL configurations as well.
the IPv4 property is suppose to state the current configuration of the
system. So yes, it should mirror the IPv4.Configuration property for
fixed and manual once these are actually set.
Of course they are only mirrored when the service is actually active.
For example you can have a service with manual settings that is not
active right now, then IPv4 is empty.
Regards
Marcel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman