diff options
author | brian <brian@FreeBSD.org> | 1997-06-01 03:43:26 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-06-01 03:43:26 +0000 |
commit | e39002afc27c9ffda52400838c668a0af8e9982c (patch) | |
tree | ef1d02091667d6794da32fccb39ee68afa6d5265 /usr.sbin/ppp/main.c | |
parent | 0e779533082753004e1e3529858c07205320d59e (diff) | |
download | FreeBSD-src-e39002afc27c9ffda52400838c668a0af8e9982c.zip FreeBSD-src-e39002afc27c9ffda52400838c668a0af8e9982c.tar.gz |
Remove initial startup printf's in -direct mode.
Make "same magic" error send a NAK (as per rfc).
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r-- | usr.sbin/ppp/main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 5cf2f4a..ec01a47 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: main.c,v 1.57 1997/05/26 00:44:06 brian Exp $ + * $Id: main.c,v 1.58 1997/05/29 02:29:12 brian Exp $ * * TODO: * o Add commands for traffic summary, version display, etc. @@ -330,7 +330,8 @@ char **argv; mode = MODE_INTER; /* default operation is interactive mode */ netfd = server = modem = tun_in = -1; ProcessArgs(argc, argv); - Greetings(); + if (!(mode & MODE_DIRECT)) + Greetings(); GetUid(); IpcpDefAddress(); @@ -340,9 +341,11 @@ char **argv; switch ( LocalAuthInit() ) { case NOT_FOUND: - fprintf(stderr,LAUTH_M1); - fprintf(stderr,LAUTH_M2); - fflush (stderr); + if (!(mode & MODE_DIRECT)) { + fprintf(stderr,LAUTH_M1); + fprintf(stderr,LAUTH_M2); + fflush (stderr); + } /* Fall down */ case VALID: VarLocalAuth = LOCAL_AUTH; |