Send connman mailing list submissions to connman@lists.01.org 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 connman-requ...@lists.01.org
You can reach the person managing the list at connman-ow...@lists.01.org When replying, please edit your Subject line so it is more specific than "Re: Contents of connman digest..." Today's Topics: 1. Connman very slow to reconnect after every warm reboot (stef204) 2. Re: Setup without cable (Vasyl Vavrychuk) 3. Re: Setup without cable (Vasiu Alexandru) 4. Re: Setup without cable (Vasyl Vavrychuk) 5. Re: [PATCH 2/2] doc: Update Security values for services (Daniel Wagner) 6. Re: [PATCH] network: fixed connman_network_set_error when connect during disconnect (Daniel Wagner) 7. Re: [PATCH 01/27] shared: Add functions for random number generation (Daniel Wagner) ---------------------------------------------------------------------- Message: 1 Date: Wed, 18 Apr 2018 13:48:22 -0600 From: stef204 <stef...@yandex.com> To: conn...@connman.net Subject: Connman very slow to reconnect after every warm reboot Message-ID: <419461524080...@web45g.yandex.ru> Content-Type: text/plain; charset=utf-8 Connman 1.35 Linux 4.15.15 x86_64 Systemd 238.76 Been using Connman for 3 to 4 years now. Has always been reliable and stable. Recently, some annoying issue has crept up: when I (warm) reboot, connman does not reconnect immediately but lags significantly, is slow to (re)connect, even after I login to the system. Previously, Connman would already be on/connected once I logged in. (Referring to logging in to Linux system via login shell as normal user--Linux Console, no X, no display manager or DE interference.) Starting about 2 or 3 versions back, on reboot, it does not connect for some time--and lags significantly before it finally connects. I can check it with "ping 8.8.8.8" for example, and I get the usual "Network Unreachable", etc. It takes time for Connman to come back "up". I am thinking it "could " be related to the systemd connman.service unit but not sure; and I see that the seem to be provided upstream not by my distro. % cat connman.service [Unit] Description=Connection service DefaultDependencies=false Conflicts=shutdown.target RequiresMountsFor=/var/lib/connman After=dbus.service network-pre.target systemd-sysusers.service Before=network.target multi-user.target shutdown.target Wants=network.target [Service] Type=dbus BusName=net.connman Restart=on-failure ExecStart=/usr/bin/connmand -n StandardOutput=null CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SYS_TIME CAP_SYS_MODULE ProtectHome=true ProtectSystem=true [Install] WantedBy=multi-user.target I cannot see anythin significant related to Connman in journalctl -b" Couple of lines from the journal: __connman_inet_get_pnp_nameservers: Cannot read /proc/net/pnp Failed to open file ?/proc/net/pnp?: No such file or directory Cannot create /var/run/connman/resolv.conf falling back to /etc/resolv.conf Nothing in dmesg. I've done the usual searches, and looked at the official docs; and through recent mailing list archive posts but have not found a solution yet. I'd appreciate any feedback on how to troubleshoot and resolve this issue. Please let me know what additional info I may need to provide to help the troubleshooting. Thanks ------------------------------ Message: 2 Date: Wed, 18 Apr 2018 23:14:56 +0300 From: Vasyl Vavrychuk <vvavryc...@gmail.com> To: Vasiu Alexandru <alexandru.va...@cnglsibiu.ro> Cc: "connman@lists.01.org" <connman@lists.01.org> Subject: Re: Setup without cable Message-ID: <CAGj4m+4MfKZv_-sF7_+hFc_Pjd=1n-os8jlvlhhg+omx36h...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" try 'enable ethernet' from connmanctl On Wed, Apr 18, 2018 at 4:27 PM, Vasiu Alexandru <alexandru.va...@cnglsibiu.ro> wrote: > I'm trying to configure a static IP on an interface that has no cable > connected. Can you have a service without a cable connected? The use-case is > to configure in the office the disconnected interface to static IP over a > DHCP connected secondary interface so that the device can be directly > connected to the static IP interface when taken to its remote location (e.g. > bridge, windmill etc). > > ?n mie., 18 apr. 2018 la 16:17, Vasyl Vavrychuk <vvavryc...@gmail.com> a > scris: >> >> It is possible to setup a static IP but there should be a service on >> this interface. What is your interface? Why do you have no service >> there? >> >> On Wed, Apr 18, 2018 at 4:14 PM, Vasiu Alexandru >> <alexandru.va...@cnglsibiu.ro> wrote: >> > Hi, >> > >> > With connman is possible to set up an interface with static IP and so >> > on, if >> > it's no service on that interface? >> > >> > Thank you, >> > Alex >> > NI >> > >> > _______________________________________________ >> > connman mailing list >> > connman@lists.01.org >> > https://lists.01.org/mailman/listinfo/connman >> > ------------------------------ Message: 3 Date: Wed, 18 Apr 2018 20:53:24 +0000 From: Vasiu Alexandru <alexandru.va...@cnglsibiu.ro> To: Vasyl Vavrychuk <vvavryc...@gmail.com> Cc: "connman@lists.01.org" <connman@lists.01.org> Subject: Re: Setup without cable Message-ID: <cafw0ytut13-6x6f6yfs2jopoclfmct7a-odtbvuswq6cspg...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" But Ethernet is enabled ... because the secondary interface uses that technology to connect ... but the first interface doesn't have a cable so connman didn't recognize it as a service... How can set a static IP to that interface without using a cable if connman didn't see that interface as a service? (I explained the use-case.) ?n mie., 18 apr. 2018 la 23:14, Vasyl Vavrychuk <vvavryc...@gmail.com> a scris: > try 'enable ethernet' from connmanctl > > On Wed, Apr 18, 2018 at 4:27 PM, Vasiu Alexandru > <alexandru.va...@cnglsibiu.ro> wrote: > > I'm trying to configure a static IP on an interface that has no cable > > connected. Can you have a service without a cable connected? The > use-case is > > to configure in the office the disconnected interface to static IP over a > > DHCP connected secondary interface so that the device can be directly > > connected to the static IP interface when taken to its remote location > (e.g. > > bridge, windmill etc). > > > > ?n mie., 18 apr. 2018 la 16:17, Vasyl Vavrychuk <vvavryc...@gmail.com> a > > scris: > >> > >> It is possible to setup a static IP but there should be a service on > >> this interface. What is your interface? Why do you have no service > >> there? > >> > >> On Wed, Apr 18, 2018 at 4:14 PM, Vasiu Alexandru > >> <alexandru.va...@cnglsibiu.ro> wrote: > >> > Hi, > >> > > >> > With connman is possible to set up an interface with static IP and so > >> > on, if > >> > it's no service on that interface? > >> > > >> > Thank you, > >> > Alex > >> > NI > >> > > >> > _______________________________________________ > >> > connman mailing list > >> > connman@lists.01.org > >> > https://lists.01.org/mailman/listinfo/connman > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.01.org/pipermail/connman/attachments/20180418/751db615/attachment-0001.html> ------------------------------ Message: 4 Date: Thu, 19 Apr 2018 07:35:38 +0300 From: Vasyl Vavrychuk <vvavryc...@gmail.com> To: Vasiu Alexandru <alexandru.va...@cnglsibiu.ro> Cc: "connman@lists.01.org" <connman@lists.01.org> Subject: Re: Setup without cable Message-ID: <CAGj4m+4rGQSNgpU6TW2ouFX6d-_YrfyLVLiOsMrhg5nA=qj...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" You can try to write provision config file, see https://git.kernel.org/pub/scm/network/connman/connman.git/tree/doc/config-format.txt for details. On Wed, Apr 18, 2018 at 11:53 PM, Vasiu Alexandru <alexandru.va...@cnglsibiu.ro> wrote: > But Ethernet is enabled ... because the secondary interface uses that > technology to connect ... but the first interface doesn't have a cable so > connman didn't recognize it as a service... How can set a static IP to that > interface without using a cable if connman didn't see that interface as a > service? (I explained the use-case.) > > ?n mie., 18 apr. 2018 la 23:14, Vasyl Vavrychuk <vvavryc...@gmail.com> a > scris: >> >> try 'enable ethernet' from connmanctl >> >> On Wed, Apr 18, 2018 at 4:27 PM, Vasiu Alexandru >> <alexandru.va...@cnglsibiu.ro> wrote: >> > I'm trying to configure a static IP on an interface that has no cable >> > connected. Can you have a service without a cable connected? The >> > use-case is >> > to configure in the office the disconnected interface to static IP over >> > a >> > DHCP connected secondary interface so that the device can be directly >> > connected to the static IP interface when taken to its remote location >> > (e.g. >> > bridge, windmill etc). >> > >> > ?n mie., 18 apr. 2018 la 16:17, Vasyl Vavrychuk <vvavryc...@gmail.com> a >> > scris: >> >> >> >> It is possible to setup a static IP but there should be a service on >> >> this interface. What is your interface? Why do you have no service >> >> there? >> >> >> >> On Wed, Apr 18, 2018 at 4:14 PM, Vasiu Alexandru >> >> <alexandru.va...@cnglsibiu.ro> wrote: >> >> > Hi, >> >> > >> >> > With connman is possible to set up an interface with static IP and so >> >> > on, if >> >> > it's no service on that interface? >> >> > >> >> > Thank you, >> >> > Alex >> >> > NI >> >> > >> >> > _______________________________________________ >> >> > connman mailing list >> >> > connman@lists.01.org >> >> > https://lists.01.org/mailman/listinfo/connman >> >> > ------------------------------ Message: 5 Date: Thu, 19 Apr 2018 08:23:04 +0200 From: Daniel Wagner <w...@monom.org> To: Robert Tiemann <r...@gmx.de>, Jose Blanquicet <blanqui...@gmail.com> Cc: connman@lists.01.org Subject: Re: [PATCH 2/2] doc: Update Security values for services Message-ID: <c5aaef26-37e1-a09e-216b-95b19be7d...@monom.org> Content-Type: text/plain; charset=utf-8; format=flowed Hi Robert, >> these patches have not been merged yet. Is there anything left I need >> to do about them? Both patches applied. Thanks, Daniel ------------------------------ Message: 6 Date: Thu, 19 Apr 2018 08:35:38 +0200 From: Daniel Wagner <w...@monom.org> To: Vasyl Vavrychuk <vvavryc...@gmail.com> Cc: connman@lists.01.org Subject: Re: [PATCH] network: fixed connman_network_set_error when connect during disconnect Message-ID: <57d10ec0-9752-c603-c395-036ee8dd1...@monom.org> Content-Type: text/plain; charset=utf-8; format=flowed Hi Vasyl, On 04/17/2018 01:30 AM, Vasyl Vavrychuk wrote: > If we call connect to wifi immidiatelly after disconnect with a right > interval then connect will be set pending because disconnect is in > progress. > > After disconnect succeed connman_network_set_connected(networ, false) > will be called causing CONNMAN_NETWORK_ERROR_CONNECT_FAIL. Excellent catch. I changed the commit message slightly, I hope you don't mind. Patch applied. Thanks, Daniel ------------------------------ Message: 7 Date: Thu, 19 Apr 2018 08:38:19 +0200 From: Daniel Wagner <w...@monom.org> To: Christian Spielberger <christian.spielber...@gmail.com> Cc: connman@lists.01.org Subject: Re: [PATCH 01/27] shared: Add functions for random number generation Message-ID: <c920849f-df76-3f7a-6621-ac0a0ba70...@monom.org> Content-Type: text/plain; charset=utf-8; format=flowed Hi Christian, On 04/18/2018 04:14 PM, Christian Spielberger wrote: >> Prefix these function with 'random_': >> >> random_get() >> random_cleanup() >> random_delay_ms() >> >> Maybe someone has a better idea for 'random_get()'. I'd to have all the >> shared code file properly prefixed to avoid clashes. >> >> Thanks, >> Daniel > > Ok. What about random_number(uint64_t *val) ? Good idea. Or even random_get_number() would be okay. Thanks, Daniel ------------------------------ Subject: Digest Footer _______________________________________________ connman mailing list connman@lists.01.org https://lists.01.org/mailman/listinfo/connman ------------------------------ End of connman Digest, Vol 30, Issue 23 ***************************************