summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppctl/pppctl.c
Commit message (Collapse)AuthorAgeFilesLines
* Handle select() returning -1/EINTR - fairly common in these KSE days.brian2004-12-131-1/+5
| | | | | PR: 74972 MFC after: 3 days
* Add IPv6 support to pppctl by using getaddrinfo() and trying each addresstjr2003-12-071-89/+115
| | | | | | | it returns. This allows it to connect to the server side again, which has been listening on IPv6 addresses exclusively for more than 2 years. PR: 59369
* add FBSDIDcharnier2003-07-061-2/+3
|
* *** empty log message ***obrien2001-10-011-9/+9
|
* Better handling of the return from snprintfbrian2001-08-181-3/+8
|
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-261-7/+7
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* Issue a ``quit'' after other ppp commands given on the command line andbrian2001-03-251-0/+5
| | | | | | | | then wait for the connection to be closed by the peer. This means that commands such as ``pppctl ... show links'' will display the correct output again (rather than truncating it depending on how much data arrived in the last packet).
* A NetBSD specific fixbrian2001-03-051-2/+8
| | | | Kind-of obtained from: NetBSD
* Change interactive mode so that a monitor thread keeps an eye on thebrian2000-11-271-70/+238
| | | | | | | | | | | | ppp descriptor and signals the terminal thread when there's something to read on that descriptor. This means that the main loop doesn't have to alarm() itself into dropping out of el_gets() frequently to check the descriptor. This dropping out was disturbing syscons (via ioctl()s from libedit) enough to reset the screensaver timeout every .5 of a second. PR: 20345
* libutil is no longer required as setproctitle() has moved to libcbrian2000-09-021-3/+0
|
* If the -p option is used, use setproctitle() to hide it's argumentbrian2000-08-161-2/+35
| | | | (a password) asap.
* NetBSD has changed the el_init() prototypebrian1999-09-201-1/+2
| | | | Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err[x]/warn[x] and improve error reportingbrian1999-08-021-23/+25
| | | | Submitted by: charnier
* Add support for NetBSD (history() from libedit is different).brian1999-04-261-2/+9
|
* Mention the error when we fail to connect().brian1999-01-311-4/+10
|
* Quiet -Wall in gcc-2.8.1brian1998-03-221-2/+3
| | | | Obtained from: OpenBSD
* Remove bogus timeout code in Receive().brian1997-12-271-7/+13
| | | | | | | | 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.
* Add (BSD) copyright headers.brian1997-12-211-2/+26
|
* Zero struct sockaddr_??s before filling them in.brian1997-12-211-1/+3
| | | | Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
* "No reply from ppp" -> "Connection closed".brian1997-12-181-2/+2
| | | | | "No reply" sounds like the message didn't get through (for example when you `pppctl xxxx quit all'.
* Remove an unnecessary (and wrong) cast.brian1997-12-171-2/+2
|
* Add Id string.brian1997-11-181-0/+4
|
* Notice that ppp has closed the connection properly.brian1997-11-181-36/+23
| | | | | | | | 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.
* Use select() instead of poll() for portabilities sake.brian1997-11-111-6/+8
|
* Poll the socket descriptor while in el_gets()brian1997-11-111-1/+36
| | | | | so that our display is scribbled over as we requested.
* Prompt correctly when ppp *doesn't* ask for a password.brian1997-11-091-2/+3
|
* Style police.brian1997-11-071-24/+67
| | | | | | | bzero -> memset index -> strchr rindex -> strrchr Use libedit (this should make pppctl a lot more attractive than telnet).
* Support interactive mode.brian1997-11-071-23/+41
|
* Allow hosts specified by IP number (avoidingbrian1997-07-281-3/+13
| | | | | a DNS lookup) Update doc including the [host:]port syntax.
* Support "host:port" as first arg.brian1997-07-121-6/+19
|
* Allow command line control of ppp through bothbrian1997-06-281-0/+273
TCP and AF_LOCAL sockets.
OpenPOWER on IntegriCloud