Acked-by: Gert Doering <g...@greenie.muc.de> Thanks for the patch, and the explanation on IRC. This is FreeBSD/DCO specific, and makes the case
ifconfig ovpn3 create openvpn --dev ovpn3 --dev-type tun --topology subnet ... work correctly (without it, p2p ifconfig claims to work but ipv6 route addition fails as well). I have stared at the code (looks good) and tested on my FreeBSD 14/DCO test VM with and without the patch, adding relevant test cases to the t_client.rc setup. With the patch, nothing breaks ;-) and the newly considered cases work. There is a slight catch - if the interface (ovpn3) has already been brought "up", the dco_set_ifmode() call fails with 2024-06-02 14:54:06 dco_set_ifmode: failed to set ifmode=00008002: Device busy (errno=16) .. so it will not work properly in all cases. (Also, t_client.sh is not really suited for this sort of test today, as the "compare pre/post ifconfig state" check fails on interface flags - need to think more how to make this work) The patch got badly whitespace mangled in transit (empty lines got turned into extra indent in the following line, and thus). As I said on IRC, I'm happy to fix that for occasional submitters, but generally recommend "git send-email" or pushing to gerrit to avoid outlook induced garbage. Your patch has been applied to the master and release/2.6 branch (highly localized, and arguably a bugfix). commit 82036c17c45d45c3fe8725f64b33720cb9c94dad (master) commit 2f2ff186564c3999efaf48d734df95471ac22d84 (release/2.6) Author: Franco Fichtner Date: Tue May 28 17:42:52 2024 +0000 Allow to set ifmode for existing DCO interfaces in FreeBSD Signed-off-by: Franco Fichtner <fra...@opnsense.org> Acked-by: Gert Doering <g...@greenie.muc.de> Message-Id: <ae20a784-506c-488b-9302-2d3ae775b...@opnsense.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28688.html Signed-off-by: Gert Doering <g...@greenie.muc.de> -- kind regards, Gert Doering _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel