pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/fastd fastd: update to version 22
details: https://anonhg.NetBSD.org/pkgsrc/rev/62498a1273b0
branches: trunk
changeset: 456863:62498a1273b0
user: nia <nia%pkgsrc.org@localhost>
date: Tue Aug 10 12:36:58 2021 +0000
description:
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:
net/fastd/Makefile | 4 ++--
net/fastd/distinfo | 11 +++++------
net/fastd/patches/patch-src_iface.c | 15 ---------------
3 files changed, 7 insertions(+), 23 deletions(-)
diffs (47 lines):
diff -r ccd2b99962ed -r 62498a1273b0 net/fastd/Makefile
--- a/net/fastd/Makefile Tue Aug 10 12:21:07 2021 +0000
+++ b/net/fastd/Makefile Tue Aug 10 12:36:58 2021 +0000
@@ -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 -r ccd2b99962ed -r 62498a1273b0 net/fastd/distinfo
--- a/net/fastd/distinfo Tue Aug 10 12:21:07 2021 +0000
+++ b/net/fastd/distinfo Tue Aug 10 12:36:58 2021 +0000
@@ -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 -r ccd2b99962ed -r 62498a1273b0 net/fastd/patches/patch-src_iface.c
--- a/net/fastd/patches/patch-src_iface.c Tue Aug 10 12:21:07 2021 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -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) {
Home |
Main Index |
Thread Index |
Old Index