Ticket #920: ipv6-pool-max.patch

File ipv6-pool-max.patch, 584 bytes (added by znerol, 2 years ago)
  • src/openvpn/pool.c

    diff --git a/src/openvpn/pool.c b/src/openvpn/pool.c
    index a8f15b96..0e6437f2 100644
    a b ifconfig_pool_init(int type, in_addr_t start, in_addr_t end, 
    183183    if (pool->ipv6)
    184184    {
    185185        pool->base_ipv6 = ipv6_base;
    186         pool->size_ipv6 = ipv6_netbits>96 ? ( 1<<(128-ipv6_netbits) )
     186        pool->size_ipv6 = ipv6_netbits>112 ? ( 1<<(128-ipv6_netbits) )
    187187                          : IFCONFIG_POOL_MAX;
    188188
    189189        msg( D_IFCONFIG_POOL, "IFCONFIG POOL IPv6: (IPv4) size=%d, size_ipv6=%d, netbits=%d, base_ipv6=%s",