]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Use SSH_TUN_COMPAT_AF on FreeBSD.
authorMaxim Khon <fjoe@samodelkin.net>
Mon, 18 Aug 2025 12:05:42 +0000 (12:05 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 6 Sep 2025 12:43:58 +0000 (22:43 +1000)
Otherwise tun forwarding from other OSes fails as soon as the first IPv6
message is sent by the other side (which is usually a Router Solicitation
ICMPv6 message which is sent as soon as the interface is up): all other
OS'es use SSH_TUN_COMPAT_AF or SSH_TUN_PREPEND_AF which effectively uses
OpenBSD AF_INET/AF_INET6 values.

configure.ac

index df3869324bbd1b63db491e19e5561c4ee33df786..530875e85fe878e8b382d734d5428a3c63031ad9 100644 (file)
@@ -1120,6 +1120,8 @@ mips-sony-bsd|mips-sony-newsos4)
 *-*-freebsd*)
        AC_DEFINE([LOCKED_PASSWD_PREFIX], ["*LOCKED*"], [Account locked with pw(1)])
        AC_DEFINE([SSH_TUN_FREEBSD], [1], [Open tunnel devices the FreeBSD way])
+       AC_DEFINE([SSH_TUN_COMPAT_AF], [1],
+           [Use tunnel device compatibility to OpenBSD])
        AC_CHECK_HEADER([net/if_tap.h], ,
            AC_DEFINE([SSH_TUN_NO_L2], [1], [No layer 2 tunnel support]))
        AC_DEFINE([BROKEN_GLOB], [1], [FreeBSD glob does not do what we need])