Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe 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. Does Connman support to connect home WiFi network by WiFi modem WPS 
process?
      (JH)
   2. Re: [PATCH] l2tp: Remove use of lock option for pppd
      (Jussi Laakkonen)


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

Date: Tue, 29 Oct 2019 19:29:08 +1100
From: JH <[email protected]>
Subject: Does Connman support to connect home WiFi network by WiFi
        modem WPS process?
To: connman <[email protected]>
Message-ID:
        <CAA=hcwqw-yaoxgzxs13vgklbjg5cngbvugehgiy-hfmzchh...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

I installed connman to a device which connects to home WiFi modem.
There could be two ways to configure WiFi modem connection:

(1) Set up a wifi.config with WiFi modem Name and Passphrase
(currently working on my device)

(2) Press WiFi modem WPS button in 3 seconds to allow WiFi device
(client) automatically set up configuration to connect to WiFi modem.

Is there an option in connman configuration to support to connect to
the WiFi network automatically by pushing WiFi modem WPS button?

Thank you.

Kind regards,

- jh

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

Date: Tue, 29 Oct 2019 10:31:54 +0200
From: Jussi Laakkonen <[email protected]>
Subject: Re: [PATCH] l2tp: Remove use of lock option for pppd
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi Daniel,

Please ignore this commit. I must have hit some odd bug with pppd such 
as was reported in https://github.com/xelerance/xl2tpd/issues/108 - not 
sure why or how but the problem with the "lock" option disappeared.

BR,
  Jussi

On 10/24/19 11:14 AM, Jussi Laakkonen wrote:
> Connection with L2TP plugin cannot be established if the "lock" option
> is used. When running xl2tpd in terminal with the file content created
> by the plugin following is reported and connection fails:
> 
> xl2tpd -D -C control -c connman-xl2tpd.conf
> xl2tpd[17773]: setsockopt recvref[30]: Protocol not available
> xl2tpd[17773]: Using l2tp kernel support.
> xl2tpd[17773]: xl2tpd version xl2tpd-1.3.8 started on Sailfish PID:17773
> xl2tpd[17773]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
> xl2tpd[17773]: Forked by Scott Balmos and David Stipp, (C) 2001
> xl2tpd[17773]: Inherited by Jeff McAdams, (C) 2002
> xl2tpd[17773]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
> xl2tpd[17773]: Listening on IP address a.b.c.d, port 32000
> xl2tpd[17773]: Connecting to host w.x.y.z, port 1701
> xl2tpd[17773]: Connection established to w.x.y.z, 1701.  Local: 18554, 
> Remote: 20429 (ref=0/0).
> xl2tpd[17773]: Calling on tunnel 18554
> xl2tpd[17773]: Call established with w.x.y.z, Local: 42029, Remote: 24137, 
> Serial: 1 (ref=0/0)
> xl2tpd[17773]: start_pppd: I'm running:
> xl2tpd[17773]: "/usr/sbin/pppd"
> xl2tpd[17773]: "plugin"
> xl2tpd[17773]: "pppol2tp.so"
> xl2tpd[17773]: "pppol2tp"
> xl2tpd[17773]: "7"
> xl2tpd[17773]: "passive"
> xl2tpd[17773]: "nodetach"
> xl2tpd[17773]: ":" ยง
> xl2tpd[17773]: "name"
> xl2tpd[17773]: "user"
> xl2tpd[17773]: "file"
> xl2tpd[17773]: "/path/to/l2tp/connman-ppp-option.conf"
> /usr/sbin/pppd: In file /path/to/l2tp/connman-ppp-option.conf: unrecognized 
> option 'lock'
> xl2tpd[17773]: child_handler : pppd exited for call 24137 with code 2
> xl2tpd[17773]: call_close: Call 42029 to w.x.y.z disconnected
> xl2tpd[17773]: write_packet: tty is not open yet.
> xl2tpd[17773]: Terminating pppd: sending TERM signal to pid 17774
> xl2tpd[17773]: get_call: can't find call 42029 in tunnel 18554
>   (ref=0/0)xl2tpd[17773]: get_call: can't find call 42029 in tunnel 18554
> 
> Tested with PPP built from commit
> 8e77984ac5d7acbe68b2b2f590abd17564c9730d.
> ---
>   vpn/plugins/l2tp.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c
> index 2255daaa..705c87af 100644
> --- a/vpn/plugins/l2tp.c
> +++ b/vpn/plugins/l2tp.c
> @@ -381,7 +381,6 @@ static int write_pppd_option(struct vpn_provider 
> *provider, int fd)
>       const char *opt_s;
>   
>       l2tp_write_option(fd, "nodetach", NULL);
> -     l2tp_write_option(fd, "lock", NULL);
>       l2tp_write_option(fd, "logfd", "2");
>       l2tp_write_option(fd, "usepeerdns", NULL);
>       l2tp_write_option(fd, "noipdefault", NULL);
> 

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

Subject: Digest Footer

_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]


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

End of connman Digest, Vol 48, Issue 33
***************************************

Reply via email to