There is not much to test here, as the "new code" is only used for a
case not yet supported by the rest of the code (--ifconfig-push IPs
outside --server subnet, with DCO, on FreeBSD). Patch for that is
in gerrit #1192, but that needs more testing.
The code in question is currently only excercised at all for --iroute
on FreeBSD DCO -> tested there, works.
At a future point in time (after 2.7.0 release) I think I/we should remove
the TARGET_FREEBSD parts from route.c, and use networking_freebsd.c
instead (adding what is missing, namely "fe80::1%em0" gateways with
embedded NIC).
As discussed in IRC, I have amended the comment a bit, and then a bit more,
to make it easier to understand what is happening and when it's needed. No
actual code change.
Your patch has been applied to the master branch.
commit cbcfb9ab3ea90e1d09e5783bdb3bbd18ac0328d1
Author: Arne Schwabe
Date: Mon Oct 6 16:58:37 2025 +0200
Allowing installing FreeBSD routes with interface instead of next-hop
Signed-off-by: Arne Schwabe <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1193
Message-Id: <[email protected]>
URL: https://sourceforge.net/p/openvpn/mailman/message/59242876/
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel