History log of /freebsd-current/usr.sbin/pppctl/pppctl.c
Revision Date Author Comments
# 4d65a7c6 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# d282086d 29-Jan-2018 Pedro F. Giffuni <pfg@FreeBSD.org>

pppctl88) Avoid strcpy() copies on overlapping string.

This may lead to unpredicatable behaviour on different platforms or C
library implementations. Use an intermediate variable.

Obtained from: DragonFlyBSD (git a861a526)


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# cf4bdb6e 13-Dec-2004 Brian Somers <brian@FreeBSD.org>

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

PR: 74972
MFC after: 3 days


# 8b455488 07-Dec-2003 Tim J. Robbins <tjr@FreeBSD.org>

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


# 54ede02d 05-Jul-2003 Philippe Charnier <charnier@FreeBSD.org>

add FBSDID


# 757eeda0 01-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

*** empty log message ***


# ad96855d 18-Aug-2001 Brian Somers <brian@FreeBSD.org>

Better handling of the return from snprintf


# e1b4d8d0 26-Jul-2001 Sheldon Hearn <sheldonh@FreeBSD.org>

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>


# 2da5df67 25-Mar-2001 Brian Somers <brian@FreeBSD.org>

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).


# af5b1096 04-Mar-2001 Brian Somers <brian@FreeBSD.org>

A NetBSD specific fix
Kind-of obtained from: NetBSD


# 8a407aad 26-Nov-2000 Brian Somers <brian@FreeBSD.org>

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


# ea327426 01-Sep-2000 Brian Somers <brian@FreeBSD.org>

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


# 087a20b8 15-Aug-2000 Brian Somers <brian@FreeBSD.org>

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


# e83358b4 20-Sep-1999 Brian Somers <brian@FreeBSD.org>

NetBSD has changed the el_init() prototype

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


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# e1e9e152 02-Aug-1999 Brian Somers <brian@FreeBSD.org>

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


# b941043f 26-Apr-1999 Brian Somers <brian@FreeBSD.org>

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


# ea567911 30-Jan-1999 Brian Somers <brian@FreeBSD.org>

Mention the error when we fail to connect().


# 23e877a8 21-Mar-1998 Brian Somers <brian@FreeBSD.org>

Quiet -Wall in gcc-2.8.1
Obtained from: OpenBSD


# fcabffd8 27-Dec-1997 Brian Somers <brian@FreeBSD.org>

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.


# c39934ea 20-Dec-1997 Brian Somers <brian@FreeBSD.org>

Add (BSD) copyright headers.


# 2e14bb46 20-Dec-1997 Brian Somers <brian@FreeBSD.org>

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


# 31746f55 17-Dec-1997 Brian Somers <brian@FreeBSD.org>

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


# 4754552a 16-Dec-1997 Brian Somers <brian@FreeBSD.org>

Remove an unnecessary (and wrong) cast.


# f5c9fce9 17-Nov-1997 Brian Somers <brian@FreeBSD.org>

Add Id string.


# f3a51f7a 17-Nov-1997 Brian Somers <brian@FreeBSD.org>

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.


# d2bb1901 11-Nov-1997 Brian Somers <brian@FreeBSD.org>

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


# f960587c 10-Nov-1997 Brian Somers <brian@FreeBSD.org>

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


# 2d77cf0b 09-Nov-1997 Brian Somers <brian@FreeBSD.org>

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


# 7d0a1bac 07-Nov-1997 Brian Somers <brian@FreeBSD.org>

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


# fbff0da4 06-Nov-1997 Brian Somers <brian@FreeBSD.org>

Support interactive mode.


# 437b5af6 28-Jul-1997 Brian Somers <brian@FreeBSD.org>

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


# de68f5c5 12-Jul-1997 Brian Somers <brian@FreeBSD.org>

Support "host:port" as first arg.


# c957ff40 27-Jun-1997 Brian Somers <brian@FreeBSD.org>

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