]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Use network address for emulated DHCP server as a default
authorLev Stipakov <lev@openvpn.net>
Tue, 9 Nov 2021 01:59:27 +0000 (03:59 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 12 Nov 2021 13:24:51 +0000 (14:24 +0100)
commit7df6583d76fc2ff485186ede75f00c9b7dc3e42c
tree1048a184d4c72c6d030ef1d061e7b3f4ada5b4bc
parent08081aa0a1536ac9e545f673f546dafa1692b714
Use network address for emulated DHCP server as a default

This is the rebase of original Selva Nair's patch
which hasn't been merged:

  https://sourceforge.net/p/openvpn/mailman/message/34674818/

and documentation change to reflect code changes, which
is basically a revert of another Selva's patch (which got merged):

https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13387.h
tml

For subnet topology use "offset 0" as default for
calculating DHCP server address, which makes it equal
to the network address.

There is no know reason why non-zero default offset
is needed. Besides, offset -1 breaks subnet /30 case,
which in some cases is pushed by OpenVPN Cloud product.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20211109015927.311-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23156.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/man-sections/windows-options.rst
src/openvpn/helper.c
src/openvpn/tun.c