connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Improve invalid auth and disconnect notify on l2tp and pptp
@ 2021-08-13 13:42 Jussi Laakkonen
  2021-08-13 13:42 ` [PATCH 1/3] l2tp: Create control file for xl2tpd Jussi Laakkonen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jussi Laakkonen @ 2021-08-13 13:42 UTC (permalink / raw)
  To: connman

Both l2tp and pptp have the symptom that when authentication is invalid
the binary keeps on looping disconnect notify. As a solution to this the
task can be stopped to ensure that binary also dies. And to further make
the process better adapt similar connect done -approach that is used in,
e.g., OpenVPN to ensure the callback (vpn-provider.c:connect_cb()) will
get called only once.

This change makes both plugins to respond with 0 ("ok") only after the
notify from the binary is received that connection is established. Both
of the plugins did reply with 0 right after run_connect() which was not
the proper way.

Also add support for using ConnMan specific control file with xl2tpd
using -C switch. 

Jussi Laakkonen (2):
  l2tp: Improve invalid auth and disconnect notify, fix cb use
  pptp: Improve invalid auth and disconnect notify, fix cb use

Matt Vogt (1):
  l2tp: Create control file for xl2tpd

 vpn/plugins/l2tp.c | 133 +++++++++++++++++++++++++++++++--------------
 vpn/plugins/pptp.c | 127 ++++++++++++++++++++++++++++---------------
 2 files changed, 175 insertions(+), 85 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-17  6:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13 13:42 [PATCH 0/3] Improve invalid auth and disconnect notify on l2tp and pptp Jussi Laakkonen
2021-08-13 13:42 ` [PATCH 1/3] l2tp: Create control file for xl2tpd Jussi Laakkonen
2021-08-13 13:42 ` [PATCH 2/3] l2tp: Improve invalid auth and disconnect notify, fix cb use Jussi Laakkonen
2021-08-13 13:42 ` [PATCH 3/3] pptp: " Jussi Laakkonen
2021-08-17  6:01 ` [PATCH 0/3] Improve invalid auth and disconnect notify on l2tp and pptp Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).