summaryrefslogtreecommitdiff
path: root/pppd/pppd.8
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2021-10-16 14:01:46 +1100
committerGitHub <noreply@github.com>2021-10-16 14:01:46 +1100
commit92c5612fdb77e83e49c524ae46110c129e13429e (patch)
tree0dbd4d56767b706ef9ed614b2720f3aa2d1e0c1e /pppd/pppd.8
parent4e895b5d9727fbbbf7c50c6ceedea5139da85f5d (diff)
parent61940d9540d27d8a66e12e163da57f7e641a8f2d (diff)
downloadppp-92c5612fdb77e83e49c524ae46110c129e13429e.tar.gz
Merge pull request #297 from mjeveritt/patch-11-test-pr
pppd: Add option to ask peer for WINS address This adds a 'usepeerwins' option, analogous to the usepeerdns option, to ask the peer for WINS server addresses. Nothing is done with the addresses provided other than to pass them to the ip-up script in environment variables. With this, if the peer sends an IPCP Configure-NAK containing WINS addresses, we will request them in the following IPCP Configure-Request. Co-authored-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Michael Everitt <gentoo@veremit.xyz> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> Signed-off-by: Michael Everitt <michael@2e0cer.net>
Diffstat (limited to 'pppd/pppd.8')
-rw-r--r--pppd/pppd.819
1 files changed, 19 insertions, 0 deletions
diff --git a/pppd/pppd.8 b/pppd/pppd.8
index b007406..7417a36 100644
--- a/pppd/pppd.8
+++ b/pppd/pppd.8
@@ -1240,6 +1240,16 @@ USEPEERDNS will be set to 1. In addition, pppd will create an
/etc/ppp/resolv.conf file containing one or two nameserver lines with
the address(es) supplied by the peer.
.TP
+.B usepeerwins
+Ask the peer for up to 2 WINS server addresses. The addresses supplied
+by the peer (if any) are passed to the /etc/ppp/ip\-up script in the
+environment variables WINS1 and WINS2, and the environment variable
+USEPEERWINS will be set to 1.
+.LP
+Please note that some modems (like the Huawei E220) requires this option in
+order to avoid a race condition that results in the incorrect DNS servers
+being assigned.
+.TP
.B user \fIname
Sets the name used for authenticating the local system to the peer to
\fIname\fR.
@@ -1842,6 +1852,15 @@ option was given).
If the peer supplies DNS server addresses, this variable is set to the
second DNS server address supplied (whether or not the usepeerdns
option was given).
+.TP
+.B WINS1
+If the peer supplies WINS server addresses, this variable is set to the
+first WINS server address supplied.
+.TP
+.B WINS2
+If the peer supplies WINS server addresses, this variable is set to the
+second WINS server address supplied.
+.P
.P
Pppd invokes the following scripts, if they exist. It is not an error
if they don't exist.