summaryrefslogtreecommitdiff
path: root/net/fastd
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-08-10 12:36:58 +0000
committernia <nia@pkgsrc.org>2021-08-10 12:36:58 +0000
commit9edc504fd37dd70962520976fd20c5e7508f76a1 (patch)
tree7b4232062e101f20be2bb7d6d5ef6f9dd351ccda /net/fastd
parentd1fbd80456b15d09d944c44b608f57d596207198 (diff)
downloadpkgsrc-9edc504fd37dd70962520976fd20c5e7508f76a1.tar.gz
fastd: update to version 22
The main improvement of fastd v22 is the L2TP kernel offloading support, which brings fastd’s throughput for unsecured connections on par with other L2TP solutions like Tunneldigger, while maintaining most of fastd’s flexibility. It is even possible to use fast L2TP connections for some peers and secure encryption for others in a single fastd instance. New features¶ * Added new method “null@l2tp” Like the old “null” method, “null@l2tp” doesn’t provide any security. In TAP mode, it uses a packet format compatible with L2TPv3 Ethernet Pseudowires (RFC3931 and RFC4719) for payload data. Using “null@lt2p” for new unsecured deployments and migrating existing “null” setups is recommended for a number of reasons: * “null” uses a 1-byte packet header, which can make data transfer between kernel and userspace slightly slower on platforms that care about alignment * The L2TP-compatible data format facilitates debugging, as packet sniffers like Wireshark can decode the payload * L2TP can be offloaded to the Linux kernel, significantly increasing throughput See offload configuration for information on the setup and limitations of the L2TP offload feature. * Added support for NetBSD (tested on NetBSD 9.2) Bugfixes¶ * Fix build for MacOS This issue was introduced during the move to the Meson build system in fastd v20. * Fix TUN mode crash on FreeBSD/OpenBSD This issue is a regression introduced in fastd v20. The buffer management optimization caused an assertion failure in many configurations upon reading packets from the TUN interface. * Fix version number format When not building from Git, fastd v21 would format its own version number as “21” rather than “v21”, deviating from previous releases. This is fixed with v22. Other changes¶ * A new handshake format has been introduced, prepending an L2TPv3 Control Message header to the actual fastd handshake. This improves certain interactions between fastd and the L2TP kernel module used for offloading. To maintain compatibility with older fastd versions, both handshake formats are accepted. For the initial handshake packet, an old and a new format packet are sent at the same time. Sessions established using the old handshake format are marked with “compat mode” in the log.
Diffstat (limited to 'net/fastd')
-rw-r--r--net/fastd/Makefile4
-rw-r--r--net/fastd/distinfo11
-rw-r--r--net/fastd/patches/patch-src_iface.c15
3 files changed, 7 insertions, 23 deletions
diff --git a/net/fastd/Makefile b/net/fastd/Makefile
index 4864f8df106..7a6b2a18cab 100644
--- a/net/fastd/Makefile
+++ b/net/fastd/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2021/06/24 14:01:31 nia Exp $
+# $NetBSD: Makefile,v 1.2 2021/08/10 12:36:58 nia Exp $
-DISTNAME= fastd-21
+DISTNAME= fastd-22
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=NeoRaider/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff --git a/net/fastd/distinfo b/net/fastd/distinfo
index aff3c5d057e..725be86e09e 100644
--- a/net/fastd/distinfo
+++ b/net/fastd/distinfo
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.1 2021/06/24 14:01:31 nia Exp $
+$NetBSD: distinfo,v 1.2 2021/08/10 12:36:58 nia Exp $
-SHA1 (fastd-21.tar.gz) = 07b29afc9cca65c94da123a854798eeccf7f4235
-RMD160 (fastd-21.tar.gz) = 4b9f3cc72981c70b37d20d3908d06abacf88ee83
-SHA512 (fastd-21.tar.gz) = 5ddd843ece8af7fe20633c1c205a5c55b5394bcc758618143b002bfdd5e927d9183a57915d9ce59131bd161e0f77986cbe6ad78e1b8f25a28239ad96340bc6fd
-Size (fastd-21.tar.gz) = 211874 bytes
-SHA1 (patch-src_iface.c) = 0a8465db5de2eb1151ecac6611395fb77a61dba8
+SHA1 (fastd-22.tar.gz) = 1c44e4286b0ae47e1973037bfac0038603d6b919
+RMD160 (fastd-22.tar.gz) = 6e720d3d098f9a4a8ad80127c72da95decd82c3b
+SHA512 (fastd-22.tar.gz) = a4891214f65cfb9f4b7a1f6bc077442cc31848fe5b0804892c197d97617838902ddb033af382ea0820337e12b4dabbf2f28468091dd9ac2d096eb8db067e5648
+Size (fastd-22.tar.gz) = 243780 bytes
diff --git a/net/fastd/patches/patch-src_iface.c b/net/fastd/patches/patch-src_iface.c
deleted file mode 100644
index a38303a590e..00000000000
--- a/net/fastd/patches/patch-src_iface.c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_iface.c,v 1.1 2021/06/24 14:01:31 nia Exp $
-
-Add support for NetBSD.
-
---- src/iface.c.orig 2020-10-19 19:24:26.000000000 +0000
-+++ src/iface.c
-@@ -338,7 +338,7 @@ static void cleanup_iface(UNUSED fastd_i
-
- #endif
-
--#elif __APPLE__
-+#elif defined(__APPLE__) || defined(__NetBSD__)
-
- /** Opens the TUN/TAP device */
- static bool open_iface(fastd_iface_t *iface, const char *ifname, uint16_t mtu) {