summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd/options.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-10-10 06:02:57 +0000
committerpeter <peter@FreeBSD.org>1997-10-10 06:02:57 +0000
commit272f35378bb5e1abaf91ce93316ca11f0cdf70fc (patch)
tree1cb2aff402ffe6d6e2dca2afc7c2feaf04796d24 /usr.sbin/pppd/options.c
parent26d413f37411a4cf84d19b4e4ad62f1024ad052a (diff)
downloadFreeBSD-src-272f35378bb5e1abaf91ce93316ca11f0cdf70fc.zip
FreeBSD-src-272f35378bb5e1abaf91ce93316ca11f0cdf70fc.tar.gz
Revive some things that were lost during the ppp-2.3.1 update.
- (see auth.c rev 1.13) allow the pap/chap secrets file to specify an override for the otherwise hard coded IP addresses. This allows specific users to dial in on a rotary which would otherwise get a dynamic address forced to authenticate and get their own fixed addresses. - (see options.c rev 1.9) recognize the old dns1 and dns2 options. This is a hack (TM). :-)
Diffstat (limited to 'usr.sbin/pppd/options.c')
-rw-r--r--usr.sbin/pppd/options.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/pppd/options.c b/usr.sbin/pppd/options.c
index ee5bac2..0b34449 100644
--- a/usr.sbin/pppd/options.c
+++ b/usr.sbin/pppd/options.c
@@ -18,7 +18,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: options.c,v 1.14 1997/08/22 15:50:09 peter Exp $";
#endif
#include <ctype.h>
@@ -133,7 +133,6 @@ pcap_t pc; /* Fake struct pcap so we can compile expr */
* Prototypes
*/
static int setdevname __P((char *, int));
-static int setipaddr __P((char *));
static int setspeed __P((char *));
static int setdebug __P((char **));
static int setkdebug __P((char **));
@@ -375,6 +374,10 @@ static struct cmd {
{"papcrypt", 0, setpapcrypt}, /* PAP passwords encrypted */
{"idle", 1, setidle}, /* idle time limit (seconds) */
{"holdoff", 1, setholdoff}, /* set holdoff time (seconds) */
+/* backwards compat hack */
+ {"dns1", 1, setdnsaddr}, /* DNS address for the peer's use */
+ {"dns2", 1, setdnsaddr}, /* DNS address for the peer's use */
+/* end compat hack */
{"ms-dns", 1, setdnsaddr}, /* DNS address for the peer's use */
{"ms-wins", 1, setwinsaddr}, /* Nameserver for SMB over TCP/IP for peer */
{"noipx", 0, resetipxproto}, /* Disable IPXCP (and IPX) */
@@ -1684,7 +1687,7 @@ setdevname(cp, quiet)
/*
* setipaddr - Set the IP address
*/
-static int
+int
setipaddr(arg)
char *arg;
{
OpenPOWER on IntegriCloud