If it isn't a typo, I wonder if it is the equivalence of
`pool_end_reserve`. As with the subnet topology, each client takes up
1 address in contrast to 4 with net30.

So perhaps the question is, what's the purpose of pool_end_reserve?

On Wed, 13 Nov 2019 at 18:07, Tom Yan <tom.t...@gmail.com> wrote:
>
> It appears to be a copy-and-paste kind of typo (pool start is network address 
> + 2).
> ---
>  src/openvpn/helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/openvpn/helper.c b/src/openvpn/helper.c
> index 5b2ca0cc..6e2f0891 100644
> --- a/src/openvpn/helper.c
> +++ b/src/openvpn/helper.c
> @@ -349,7 +349,7 @@ helper_client_server(struct options *o)
>              {
>                  o->ifconfig_pool_defined = true;
>                  o->ifconfig_pool_start = o->server_network + ptp + 1;
> -                o->ifconfig_pool_end = (o->server_network | 
> ~o->server_netmask) - ptp * 2;
> +                o->ifconfig_pool_end = (o->server_network | 
> ~o->server_netmask) - ptp;
>                  ifconfig_pool_verify_range(M_USAGE, o->ifconfig_pool_start, 
> o->ifconfig_pool_end);
>              }
>              o->ifconfig_pool_netmask = o->server_netmask;
> --
> 2.24.0
>


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to