Commit Graph

19 Commits

Author SHA1 Message Date
brian
d038080049 Remove bogus timeout code in Receive().
Don't read(fd, buffer, 0) and think ppp has closed the
connection when `buffer' is full, instead, flush most of
buffer to the terminal and read() for a reasonable length.
This fixes "show route" when there's more than 2k of
routing output.
1997-12-27 13:44:42 +00:00
brian
579e751cd3 Add (BSD) copyright headers. 1997-12-21 12:11:13 +00:00
brian
46576b0453 Cosmetic: Tidy up.
Submitted by:	Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21 02:37:49 +00:00
brian
6432d2fafd Zero struct sockaddr_??s before filling them in.
Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-21 02:27:32 +00:00
brian
57020bef87 Correct the "how to find out if the line is up" example. 1997-12-21 01:21:40 +00:00
brian
71fc17164f "No reply from ppp" -> "Connection closed".
"No reply" sounds like the message didn't get through (for
example when you `pppctl xxxx quit all'.
1997-12-18 00:29:56 +00:00
brian
c3425c1022 Remove an unnecessary (and wrong) cast. 1997-12-17 00:26:58 +00:00
brian
7bfd07097d Add Id string. 1997-11-18 00:22:07 +00:00
brian
12fd795d92 Notice that ppp has closed the connection properly.
Remove the timeout hack to notice that ppp has closed the connection.
Remove the ``special case'' hacks for "quit" and "bye", as pppctl
now exits immediately when the connection is closed by ppp.
Suggest a secure "set server" line for connecting ppp & pppctl.
Tidy up and correct a few man page typos.
1997-11-18 00:20:29 +00:00
brian
3008d1c558 Use select() instead of poll() for portabilities sake. 1997-11-11 13:27:47 +00:00
brian
90324e9327 Poll the socket descriptor while in el_gets()
so that our display is scribbled over as we
requested.
1997-11-11 12:28:02 +00:00
brian
e1f7ff985c Prompt correctly when ppp *doesn't* ask for a password. 1997-11-09 18:50:34 +00:00
brian
7b18487ba9 Style police.
bzero -> memset
index -> strchr
rindex -> strrchr
Use libedit (this should make pppctl a lot more attractive than telnet).
1997-11-07 20:20:15 +00:00
brian
e4fdd13249 Support interactive mode. 1997-11-07 02:54:49 +00:00
brian
98dd7f981c Add a few examples. 1997-10-05 14:21:30 +00:00
wosch
8ee659dd96 Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
brian
62296c6450 Allow hosts specified by IP number (avoiding
a DNS lookup)
Update doc including the [host:]port syntax.
1997-07-28 22:17:48 +00:00
brian
253d097eb2 Support "host:port" as first arg. 1997-07-12 19:26:49 +00:00
brian
4cd0616eed Allow command line control of ppp through both
TCP and AF_LOCAL sockets.
1997-06-28 01:04:54 +00:00