Browse code

Correctly state the default dhcp server address in man page

Also correct the default ifconfig-pool end in docs and comments

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1480707729-19578-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13387.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Selva Nair authored on 2016/12/03 04:42:09
Showing 2 changed files
... ...
@@ -2793,7 +2793,7 @@ expands as follows:
2793 2793
  if dev tap OR (dev tun AND topology == subnet):
2794 2794
    ifconfig 10.8.0.1 255.255.255.0
2795 2795
    if !nopool:
2796
-     ifconfig\-pool 10.8.0.2 10.8.0.254 255.255.255.0
2796
+     ifconfig\-pool 10.8.0.2 10.8.0.253 255.255.255.0
2797 2797
    push "route\-gateway 10.8.0.1"
2798 2798
    if route\-gateway unset:
2799 2799
      route\-gateway 10.8.0.2
... ...
@@ -5594,7 +5594,7 @@ virtual DHCP server address.  In
5594 5594
 .B \-\-dev tun
5595 5595
 mode, OpenVPN will cause the DHCP server to masquerade as if it were
5596 5596
 coming from the remote endpoint.  The optional offset parameter is
5597
-an integer which is > \-256 and < 256 and which defaults to 0.
5597
+an integer which is > \-256 and < 256 and which defaults to -1.
5598 5598
 If offset is positive, the DHCP server will masquerade as the IP
5599 5599
 address at network address + offset.
5600 5600
 If offset is negative, the DHCP server will masquerade as the IP
... ...
@@ -228,7 +228,7 @@ helper_client_server (struct options *o)
228 228
    * if tap OR (tun AND topology == subnet):
229 229
    *   ifconfig 10.8.0.1 255.255.255.0
230 230
    *   if !nopool: 
231
-   *     ifconfig-pool 10.8.0.2 10.8.0.254 255.255.255.0
231
+   *     ifconfig-pool 10.8.0.2 10.8.0.253 255.255.255.0
232 232
    *   push "route-gateway 10.8.0.1"
233 233
    *   if route-gateway unset:
234 234
    *     route-gateway 10.8.0.2