Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Issue 6513009: flimflam: Add L2TP/IPsec VPN plugin (Closed)

Created:
9 years, 10 months ago by kmixter1
Modified:
6 years ago
Reviewers:
Sam Leffler, thutt
CC:
chromium-os-reviews_chromium.org, sleffler+cc_chromium.org, Nathan Williams, Eric Shienbrood, Jason Glasgow, rochberg, Paul Stewart
Visibility:
Public.

Description

flimflam: Add L2TP/IPsec VPN plugin Launches and interacts with the l2tpipsec_vpn manager which we have added in chromeos-base/vpn-manager. Adds capability of creating providers which handle their own tunnel device creation (aka pppd) by introducing VPN_FLAG_NO_TUN. l2tpipsec is one such provider. Supports allowing provider tasks receive dbus messages to which they can return a response in order to enable username/password requests from pppd. Change-Id: I7dda866bd2969d691ac67a0830a9dc45f055509c BUG=chromium-os:11814 TEST=run connect-vpn with openvpn and l2tpipsec kind Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=52600f8

Patch Set 1 #

Patch Set 2 : sync point #

Patch Set 3 : checkpoint: connect fails but gets ipconfig data #

Total comments: 37

Patch Set 4 : respond to sleffler review #

Patch Set 5 : Retry initializing ipconfig when iface is known #

Total comments: 1

Patch Set 6 : Remove local, add params #

Total comments: 8

Patch Set 7 : respond to sleffler #

Patch Set 8 : rebase on ToT, fix style issues in connect-vpn #

Total comments: 13

Patch Set 9 : Add gateway when requested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+832 lines, -88 lines) Patch
M Makefile.plugins View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M configure.ac View 1 1 chunk +20 lines, -0 lines 0 comments Download
M include/task.h View 1 1 chunk +1 line, -1 line 0 comments Download
A plugins/l2tpipsec.c View 1 2 3 4 5 6 7 8 1 chunk +233 lines, -0 lines 0 comments Download
M plugins/vpn.h View 3 chunks +4 lines, -0 lines 0 comments Download
M plugins/vpn.c View 1 2 3 4 5 6 7 8 13 chunks +109 lines, -38 lines 0 comments Download
A scripts/libppp-plugin.c View 1 2 3 4 5 6 7 8 1 chunk +368 lines, -0 lines 0 comments Download
M src/task.c View 1 2 chunks +18 lines, -14 lines 0 comments Download
M test/connect-vpn View 1 2 3 4 5 6 7 8 3 chunks +54 lines, -35 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
kmixter1
PTAL at this early code - not fully functional yet, but appreciate any comments on ...
9 years, 9 months ago (2011-03-03 17:16:41 UTC) #1
kmixter1
Some updates... gets to li_notify but fails there now. http://codereview.chromium.org/6513009/diff/8001/plugins/l2tpipsec.c File plugins/l2tpipsec.c (right): http://codereview.chromium.org/6513009/diff/8001/plugins/l2tpipsec.c#newcode117 plugins/l2tpipsec.c:117: ...
9 years, 9 months ago (2011-03-04 02:06:02 UTC) #2
Sam Leffler
just a light read... http://codereview.chromium.org/6513009/diff/8001/plugins/l2tpipsec.c File plugins/l2tpipsec.c (right): http://codereview.chromium.org/6513009/diff/8001/plugins/l2tpipsec.c#newcode56 plugins/l2tpipsec.c:56: passwd == NULL || strlen(passwd) ...
9 years, 9 months ago (2011-03-04 17:47:45 UTC) #3
kmixter1
PTAL. Most of your style comments were on upstream code changes. I was torn between ...
9 years, 9 months ago (2011-03-05 09:30:51 UTC) #4
kmixter1
PTAL - working now, moved local address computing code into l2tpipsec_vpn. See http://codereview.chromium.org/6513009/ if interested.
9 years, 9 months ago (2011-03-11 07:54:00 UTC) #5
kmixter1
(I meant see http://codereview.chromium.org/6508016/ if interested) On Thu, Mar 10, 2011 at 11:54 PM, <kmixter@chromium.org> ...
9 years, 9 months ago (2011-03-11 07:57:19 UTC) #6
Sam Leffler
Looks good, just some small stuff. Please fill in your Description; e.g. describe changes to ...
9 years, 9 months ago (2011-03-11 17:49:55 UTC) #7
kmixter1
Addressed the small stuff... also see the separate CL to fix the openvpn memory problem. ...
9 years, 9 months ago (2011-03-12 00:52:31 UTC) #8
kmixter1
Taylor - please see changes to connect-vpn. Will push when tree goes green.
9 years, 9 months ago (2011-03-17 03:36:44 UTC) #9
thutt
I took a look at connect-vpn, and made a few comment. I also looked at ...
9 years, 9 months ago (2011-03-17 15:02:21 UTC) #10
kmixter1
http://codereview.chromium.org/6513009/diff/25001/plugins/vpn.c File plugins/vpn.c (right): http://codereview.chromium.org/6513009/diff/25001/plugins/vpn.c#newcode99 plugins/vpn.c:99: strncpy(ifr.ifr_name, data->if_name, sizeof(ifr.ifr_name)); On 2011/03/17 15:02:21, thutt wrote: > ...
9 years, 9 months ago (2011-03-17 17:52:20 UTC) #11
kmixter1
PTAL - also added GATEWAY_ADDRESS string passed up by libppp so that we know whether ...
9 years, 9 months ago (2011-03-17 18:49:27 UTC) #12
Sam Leffler
9 years, 9 months ago (2011-03-17 18:52:51 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698