Commit Graph

30 Commits

Author SHA1 Message Date
Yousong Zhou ecd396a764 xl2tpd: bump to version 1.3.11 2018-03-12 11:25:16 +08:00
Yousong Zhou c4fa84cc21 xl2tpd: README.md: add docs on uci options
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-12-19 10:18:41 +08:00
Alin Nastac c59bea9f43 xl2tpd: remove demand support from netifd l2tp protocol
This pppd feature does not make sense in L2TP case because the
tunnel is already connected when xl2tpd launch pppd process. If
a dial-on-demand feature is to be implemented, trigger interface
would have to be provided by xl2tpd, not pppd.

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
2017-12-18 21:28:11 +08:00
Lucian Cristian 7555971dd7 xl2tpd: add some default configs needed on most of cases
mtu 1400, mru 1400 - on ppp devices, usually we need lower mtu, the existing link mabye is already under a lower MTU
require-mschap-v2 - most of the time l2tp is used in conjunction with windows client who will use this kind of auth
lcp-echo-interval 20, lcp-echo-failure 5 - keep alive 20 seconds interval and dead peer detection after 100 seconds
connect-delay 5000 - wait for up to 5 seconds after the connect script finishes for a valid PPP packet from the peer
nodefaultroute - prevent users from creating default routes with pppd
nodefaultip - disables the default behavior when no local IP address is specified
proxyarp - this will have the effect of making the peer appear to other systems to be on the local ethernet

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-10-19 09:48:44 +08:00
Lucian Cristian 2e5a59c5b4 xl2tpd: update to 1.3.10
lock is no longer needed and it breaks the setup
explicit added PKG_BUILD_DEPENDS:=libpcap, an indirect depend included in ppp and needed for pfc

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
2017-10-19 09:48:44 +08:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Yousong Zhou 069879fa4d xl2tpd: backporting fix for race condition causing xl2tpd hang
The patch was taken from https://github.com/xelerance/xl2tpd/pull/125

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-02-14 19:36:52 +08:00
Hans Dedecker 29311407ef xl2tpd: Enable netifd notification teardown_on_l3_link_down
Set teardown_on_l3_link_down notifying netifd xl2tpd wants to be
teared down when layer3 link loss is detected

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-08-12 09:47:01 +02:00
mogulapranay 666baa0d0e xl2tpd: demand option is initialized.
Signed-off-by: mogulapranay <mogulapranay57@gmail.com>
2016-05-16 21:47:57 +05:30
Yousong Zhou c6e689d266 xl2tpd: bump to version devel-20151125
Main changes are as the following

 - Allow specifying port in server option, e.g. example.com:1702 (fixes
   github issue #1960 "xl2tpd port change bug").
 - Fixes NULL dereference on connection timeout
 - Update 100-makefile_opt_flags.patch

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-12-02 20:50:10 +08:00
Yousong Zhou 2817f1d920 xl2tpd: bump version
The update is mainly for addressing some memory corruption and segementation
faults issues observed when running xl2tpd in OpenWrt.  The relevant upstream
pull request was at link [1]

 [1] Devel fix valgrind #77, https://github.com/xelerance/xl2tpd/pull/77

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-10-02 08:20:24 +08:00
Yousong Zhou 7955dbbc2d xl2tpd: switch to github devel branch.
Several patches here and pull requests at the upstream github project
page were merged into the devel branch.  Switch to that until the next
stable release.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou 18038a5043 xl2tpd: conditionally build with flags for more verbose log output.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou 164b67cce5 xl2tpd: add new config option checkup_interval.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou 4080689f02 xl2tpd: reword the comment on overriding OFLAGS in MAKE_FLAGS.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou 27aafeb96a xl2tpd: tweak generating pppoptfile.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou 23feea5814 xl2tpd: fix aliveness check for xl2tpd process.
This change aims to address the following 2 issues

 - The control file was there yet xl2tpd process was not
 - The control file's existence prevented xl2tpd from start

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou e1a58c09b4 xl2tpd: tweak getting value of mtu config option.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Yousong Zhou 071b197304 xl2tpd: remove check for $ERROR.
L2TP with xl2tpd has no proto_task in the context of netifd and because
of this there is no valid $ERROR to check for when doing tearing down.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-08-14 12:16:27 +08:00
Daniel Golle 8511e62ff0 xl2tpd: transfer maintainership to Yousong Zhou
@openwrt/owners : please invite @yousong to @openwrt/package-maintainers

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-08-12 17:24:05 +02:00
Daniel Golle e0b2a226a3 xl2tpd: fix xl2tpd options
The previous commit left an unwanted string in the options passed
to xl2tpd-control. Remove that as well.
Also set procd respawn parameter now that I'm at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-05 17:42:06 +02:00
Daniel Golle 0f562aa7c3 xl2tpd: don't let xl2tpd handle redial
netifd is taking care of that already.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-06-05 14:53:36 +02:00
Yousong Zhou 59f33d2aa7 xl2tpd: refactor for more resilience.
- Use netifd no_proto_task for notifying that xl2tpd does not have a
   protocol task running.
 - Use procd for xl2tpd service management.
 - Refreshed 2xx patches to

    - Prevent leftover regular type control result file.
    - Allow xl2tpd run as foreground process while logging via syslog.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

 - bumped version
 - removed dependency on `ip` package as routes are setup by netifd
   if iproute2 is actually required, please depend on
   `@(PACKAGE_ip||PACKAGE_ip-full)` instead of `ip`

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-05-24 12:18:38 +02:00
Daniel Golle d4381c289f xl2tpd: fix a minor compiler warning
gcc complains about atexit() being implicitely defined in
xl2tpd-control.c
Fix that by including stdlib.h in xl2tpd-control.c

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-05-13 16:12:04 +02:00
Daniel Golle 964edd830b xl2tpd: update source, import some useful patches
Yousong Zhou <yszhou4tech@gmail.com> made a couple of useful fixes
mostly for the xl2tpd-control tool which was broken.
imported them (patches/2*) here.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-05-13 13:23:21 +02:00
Daniel Golle 28e2ca2011 xl2tpd: fix build with musl
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-03-29 20:06:09 +02:00
Steven Barth 96b04afce6 Revert "xl2tpd: rename netifd protocol handler to l2tpv2 to avoid clashes with l2tpv3"
This reverts commit 981f2da457.
OpenWrt wiki knew l2tp from l2tpv3tun, but luci knew l2tp from xl2tpd
2014-08-18 11:36:19 +02:00
Daniel Golle c39083fe33 xl2tpd: add PKG_LICENSE information
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-08-10 13:43:19 +02:00
Steven Barth 981f2da457 xl2tpd: rename netifd protocol handler to l2tpv2 to avoid clashes with l2tpv3
Signed-off-by: Steven Barth <steven@midlink.org>
2014-07-19 12:13:40 +02:00
Daniel Golle 4ce0354910 Import xl2tpd
Use sources on github and add myself as maintainer.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2014-06-13 17:27:45 +02:00