History log of /freebsd-10.0-release/usr.sbin/pppctl/pppctl.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 138808 13-Dec-2004 brian

Handle select() returning -1/EINTR - fairly common in these KSE days.

PR: 74972
MFC after: 3 days


# 123229 07-Dec-2003 tjr

Add IPv6 support to pppctl by using getaddrinfo() and trying each address
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


# 117280 06-Jul-2003 charnier

add FBSDID


# 84262 01-Oct-2001 obrien

Adjust to the libedit enhancements some functions now take more parameters.

Partially submitted by: kris


# 84261 01-Oct-2001 obrien

*** empty log message ***


# 81904 18-Aug-2001 brian

Better handling of the return from snprintf


# 80381 26-Jul-2001 sheldonh

Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by: David Hill <david@phobia.ms>


# 74793 25-Mar-2001 brian

Issue a ``quit'' after other ppp commands given on the command line and
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).


# 73558 04-Mar-2001 brian

A NetBSD specific fix
Kind-of obtained from: NetBSD


# 69245 27-Nov-2000 brian

Change interactive mode so that a monitor thread keeps an eye on the
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


# 65354 02-Sep-2000 brian

libutil is no longer required as setproctitle() has moved to libc


# 64703 16-Aug-2000 brian

If the -p option is used, use setproctitle() to hide it's argument
(a password) asap.


# 51448 20-Sep-1999 brian

NetBSD has changed the el_init() prototype

Submitted by: Kazuyoshi Kato <kazk@yyy.or.jp>


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 49376 02-Aug-1999 brian

Use err[x]/warn[x] and improve error reporting
Submitted by: charnier


# 46084 26-Apr-1999 brian

Add support for NetBSD (history() from libedit is different).


# 43462 31-Jan-1999 brian

Mention the error when we fail to connect().


# 34771 21-Mar-1998 brian

Quiet -Wall in gcc-2.8.1
Obtained from: OpenBSD


# 32020 27-Dec-1997 brian

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.


# 31921 21-Dec-1997 brian

Add (BSD) copyright headers.


# 31914 21-Dec-1997 brian

Zero struct sockaddr_??s before filling them in.
Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>


# 31829 17-Dec-1997 brian

"No reply from ppp" -> "Connection closed".
"No reply" sounds like the message didn't get through (for
example when you `pppctl xxxx quit all'.


# 31792 16-Dec-1997 brian

Remove an unnecessary (and wrong) cast.


# 31205 17-Nov-1997 brian

Add Id string.


# 31204 17-Nov-1997 brian

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.


# 31119 11-Nov-1997 brian

Use select() instead of poll() for portabilities sake.


# 31117 11-Nov-1997 brian

Poll the socket descriptor while in el_gets()
so that our display is scribbled over as we
requested.


# 31079 09-Nov-1997 brian

Prompt correctly when ppp *doesn't* ask for a password.


# 31031 07-Nov-1997 brian

Style police.
bzero -> memset
index -> strchr
rindex -> strrchr
Use libedit (this should make pppctl a lot more attractive than telnet).


# 31006 07-Nov-1997 brian

Support interactive mode.


# 27747 28-Jul-1997 brian

Allow hosts specified by IP number (avoiding
a DNS lookup)
Update doc including the [host:]port syntax.


# 27347 12-Jul-1997 brian

Support "host:port" as first arg.


# 27008 27-Jun-1997 brian

Allow command line control of ppp through both
TCP and AF_LOCAL sockets.