diff options
author | ache <ache@FreeBSD.org> | 1996-03-08 09:03:09 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-03-08 09:03:09 +0000 |
commit | 60108c50eda0b8364cdd265fad8bf523a1a4d49f (patch) | |
tree | 434653e4c736dc05201645fd555da448e439f078 /usr.sbin/ppp/chat.c | |
parent | 9acf1cecfc141db5d0fc49519e5b2ed71a4a5996 (diff) | |
download | FreeBSD-src-60108c50eda0b8364cdd265fad8bf523a1a4d49f.zip FreeBSD-src-60108c50eda0b8364cdd265fad8bf523a1a4d49f.tar.gz |
1) Add multi-phone dialing/redialing, several phones separated by ':'
2) Improve on-line help subsystem
3) Make 'term' mode works even carrier dropped (old code
close line forever here)
4) Make 'term' mode 8bit clean.
5) Improve manual page
6) #ifdef DEBUG diagnostic about missing optional files.
7) Don't put interactive dialing info to logfile
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 5d49a1b..6982f11 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -18,7 +18,7 @@ * Columbus, OH 43221 * (614)451-1883 * - * $Id: chat.c,v 1.4 1995/05/30 03:50:29 rgrimes Exp $ + * $Id: chat.c,v 1.5 1995/09/02 17:20:50 amurai Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -113,7 +113,7 @@ char **pvect; * \r Carrige return character * \s Space character * \n Line feed character - * \T Telephone number (defined via `set phone' + * \T Telephone number(s) (defined via `set phone') * \t Tab character */ char * @@ -123,6 +123,7 @@ char *result; int sendmode; { int addcr = 0; + char *phone; if (sendmode) addcr = 1; @@ -152,8 +153,13 @@ int sendmode; result += strlen(VarAuthKey); break; case 'T': - bcopy(VarPhone, result, strlen(VarPhone)); - result += strlen(VarPhone); + if (VarNextPhone == NULL) + VarNextPhone = VarPhoneList; + phone = strsep(&VarNextPhone, ":"); + bcopy(phone, result, strlen(phone)); + result += strlen(phone); + if ((mode & (MODE_INTER|MODE_AUTO)) == MODE_INTER) + fprintf(stderr, "Phone: %s\n", phone); break; case 'U': bcopy(VarAuthName, result, strlen(VarAuthName)); |