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 <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg32427.html
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