Thanks.  I've ran into this myself with 2.7_alpha2 and a setup that 
ended up doing DHCP on TAP, so thanks for the fix :-)

I have not tested it beyond "does it compile", but looking at the code
flow and finding tt->options.dhcp_options in tun.c, this is "obviously
correct".  The dance with the helper variable is unavoidable due to
the platform-dependent nature of the options.c code here... ("or you
get 3 extra #ifdefs").

Your patch has been applied to the master branch.

commit 040e0d1c308a587ae9a26295eeaa070561befa0d
Author: Lev Stipakov
Date:   Wed Jul 30 20:04:26 2025 +0200

     Fix broken DHCP options

     Signed-off-by: Lev Stipakov <l...@openvpn.net>
     Acked-by: Gert Doering <g...@greenie.muc.de>
     Message-Id: <20250730180527.25339-1-g...@greenie.muc.de>
     URL: 
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32427.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

Reply via email to