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. Inconsistent IP pool management (start not found)
      (Vasyl Vavrychuk)
   2. Re: Inconsistent IP pool management (start not found)
      (Daniel Wagner)
   3. Is there a way to store static IP configuration without
      editing config files? (Andreas Koller)
   4. re: Is there a way to store static IP configuration without
      editing config files? (Andreas Koller)
   5. Re: DBus Signal for Address Conflict Detection (David Lechner)
   6. Re: Is there a way to store static IP configuration without
      editing config files? (Daniel Wagner)
   7. Re: Is there a way to store static IP configuration without
      editing config files? (Daniel Wagner)


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

Message: 1
Date: Fri, 9 Mar 2018 08:53:46 +0200
From: Vasyl Vavrychuk <[email protected]>
To: Daniel Wagner <[email protected]>
Cc: [email protected]
Subject: Inconsistent IP pool management (start not found)
Message-ID:
        <CAGj4m+5i7ygMH2yh=8p9djsxoypz5m7qai3bep_saqbcmtc...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi, Daniel,

I am getting "Inconsistent IP pool management (start not found)" on
every Wi-Fi P2P disconnect.

Connman side is master of this connection. Other side is Android that
first connects to connman. And after that disconnect is also issued
from Android side.

Upon disconnect IP pool corresponding to P2P in connman is deleted due to:

__connman_ippool_unref_debug < stop_dhcp_server <
connman_peer_set_state(CONNMAN_PEER_STATE_DISCONNECT)

After that we get
__connman_ippool_deladdr < __connman_ipconfig_deladdr < process_deladdr
from which error print originate.

Not sure how bad is that but it is clearly not consistent with comment

/* In theory this should never happen */
connman_error("Inconsistent IP pool management (start not found)");

Kind regards,
Vasyl


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

Message: 2
Date: Fri, 9 Mar 2018 11:29:04 +0100
From: Daniel Wagner <[email protected]>
To: Vasyl Vavrychuk <[email protected]>
Cc: [email protected]
Subject: Re: Inconsistent IP pool management (start not found)
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Vasyl,

On 03/09/2018 07:53 AM, Vasyl Vavrychuk wrote:
> Hi, Daniel,
> 
> I am getting "Inconsistent IP pool management (start not found)" on
> every Wi-Fi P2P disconnect.
> 
> Connman side is master of this connection. Other side is Android that
> first connects to connman. And after that disconnect is also issued
> from Android side.
> 
> Upon disconnect IP pool corresponding to P2P in connman is deleted due to:
> 
> __connman_ippool_unref_debug < stop_dhcp_server <
> connman_peer_set_state(CONNMAN_PEER_STATE_DISCONNECT)
> 
> After that we get
> __connman_ippool_deladdr < __connman_ipconfig_deladdr < process_deladdr
> from which error print originate.
> 
> Not sure how bad is that but it is clearly not consistent with comment
> 
> /* In theory this should never happen */
> connman_error("Inconsistent IP pool management (start not found)");

IIRC, the assumption was that we always first get a delete address 
before device removal. In this example connman_peer_set_state() is 
already destroying the pool. Well, I added the error message to find 
bugs in the code. But the code looks quite stable now. So I suggest you 
remove the error message and add the above information to the commit 
message.

Thanks,
Daniel


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

Message: 3
Date: Fri, 9 Mar 2018 11:36:07 +0100
From: "Andreas Koller" <[email protected]>
To: [email protected]
Subject: Is there a way to store static IP configuration without
        editing config files?
Message-ID:
        
<trinity-73156754-8e08-4ce9-bb41-050dfee9c8bb-1520591767209@3c-app-gmx-bs66>
        
Content-Type: text/plain; charset=UTF-8


Hi,
?
when using 
/usr/local/lib/connman/test/set-ipv4-method ethernet_MAC_cable manual <ip> 
<netmask> <gateway>,
the IP for eth0 is changed to the given value, but after rebooting, it's using 
DHCP again.
Is there an alternate method to manually modify the config file
/var/lib/connman/ethernet_MAC_cable/settings,
for example a command for storing the current configuration?

--

?


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

Message: 4
Date: Fri, 9 Mar 2018 16:15:41 +0100
From: "Andreas Koller" <[email protected]>
To: [email protected]
Subject: re: Is there a way to store static IP configuration without
        editing config files?
Message-ID:
        
<trinity-625f60a7-61a5-4f52-87e9-ec8608febafe-1520608541117@3c-app-gmx-bs06>
        
Content-Type: text/plain; charset=UTF-8

Ok, manually editing
/var/lib/connman/ethernet_MAC_cable/settings
neither is the way to go.
As far as I understand, I would need a .conf file under /var/lib/connman/
to store settings permanently.
This would create a "provisioned service",
but as stated in 
https://git.kernel.org/pub/scm/network/connman/connman.git/tree/doc/service-api.txt,
it's not possible to use SetProperty for provisioned services.

Since connman never updated /var/lib/connman/ethernet_MAC_cable/settings,
I also tried to delete the directory /var/lib/connman/ethernet_MAC_cable (after 
stopping connman service).
The situation right now is, that eth0 is up, configurable by connmanctl,
but the directory /var/lib/connman/ethernet_MAC_cable is missing
and after reboot, the configuration is dhcp again.

So what would be needed for having a static IP for eth0 persistently?
Under what circumstances does connman create those config files
under /var/lib/connman/ and how can it be forced (if possible)?




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

Message: 5
Date: Fri, 9 Mar 2018 10:20:15 -0600
From: David Lechner <[email protected]>
To: Christian Spielberger <[email protected]>, Daniel
        Wagner <[email protected]>
Cc: [email protected]
Subject: Re: DBus Signal for Address Conflict Detection
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

On 03/08/2018 01:51 AM, Christian Spielberger wrote:

> My idea was a property "AddressConflict" of string type. The value becomes
> xxx.xxx.xxx.xxx mm:mm:mm:mm:mm:mm for the conflicting IP and MAC of confl.
> device. And empty if there is no conflict. 

FWIW, this looks like a dictionary with two values too me instead of a single
string.


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

Message: 6
Date: Fri, 9 Mar 2018 17:24:19 +0100
From: Daniel Wagner <[email protected]>
To: Andreas Koller <[email protected]>
Cc: [email protected]
Subject: Re: Is there a way to store static IP configuration without
        editing config files?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi

On 03/09/2018 11:36 AM, Andreas Koller wrote:
> when using
> /usr/local/lib/connman/test/set-ipv4-method ethernet_MAC_cable manual <ip> 
> <netmask> <gateway>,
> the IP for eth0 is changed to the given value, but after rebooting, it's 
> using DHCP again.
> Is there an alternate method to manually modify the config file
> /var/lib/connman/ethernet_MAC_cable/settings,
> for example a command for storing the current configuration?

You should not edit the /var/lib/connman/ethernet_MAC_cable/settings by 
hand. ConnMan will overwrite them now and then. Though you can write 
provisioning configuration file.

See doc/config-format.txt file for more details.

Thanks,
Daniel


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

Message: 7
Date: Fri, 9 Mar 2018 17:27:42 +0100
From: Daniel Wagner <[email protected]>
To: Andreas Koller <[email protected]>, [email protected]
Subject: Re: Is there a way to store static IP configuration without
        editing config files?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

> So what would be needed for having a static IP for eth0 persistently?

Create a /var/lib/connman/myconfig.config file.

> Under what circumstances does connman create those config files

Anything below /var/lib/connman/ expect the .config files is
under control of ConnMan. ConnMan monitors the .config file
changes. No need to restart.

> under /var/lib/connman/ and how can it be forced (if possible)?

forced to what?


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

Subject: Digest Footer

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


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

End of connman Digest, Vol 29, Issue 10
***************************************

Reply via email to