History log of /freebsd-current/libexec/pppoed/pppoed.c
Revision Date Author Comments
# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\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


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

libexec: 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.


# 789732b9 16-Dec-2011 Dimitry Andric <dim@FreeBSD.org>

In libexec/pppoed/pppoed.c, use the correct printf length modifier for a
size_t.

MFC after: 1 week


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


# 2966d28c 03-Jul-2007 Sean Farley <scf@FreeBSD.org>

Significantly reduce the memory leak as noted in BUGS section for
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.

Convert all calls to POSIX from historic BSD API:
- unsetenv returns an int.
- putenv takes a char * instead of const char *.
- putenv no longer makes a copy of the input string.
- errno is set appropriately for POSIX. Exceptions involve bad environ
variable and internal initialization code. These both set errno to
EFAULT.

Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit. A few I re-wrote to use setenv()
instead of putenv().

New regression module for tools/regression/environ to test these
functions. It also can be used to test the performance.

Bump __FreeBSD_version to 700050 due to API change.

PR: kern/99826
Approved by: wes
Approved by: re (kensmith)


# ba174a5e 01-May-2007 Andrey A. Chernov <ache@FreeBSD.org>

Back out all POSIXified *env() changes.

Not because I admit they are technically wrong and not because of bug
reports (I receive nothing). But because I surprisingly meets so
strong opposition and resistance so lost any desire to continue that.

Anyone who interested in POSIX can dig out what changes and how
through cvs diffs.


# f03351ff 29-Apr-2007 Andrey A. Chernov <ache@FreeBSD.org>

Prepare for upcoming POSIXed putenv() rewrite:
don't allow putenv() arg be on the stack, replace putenv() with setenv()


# ee3b44f5 09-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sync program's usage() with manpage's SYNOPSIS.


# 89624a34 15-Nov-2003 Hartmut Brandt <harti@FreeBSD.org>

Replace all uses of the old netgraph constants NG_*LEN by the new
constants NG_*SIZ that include the trailing NUL byte. This change
is mostly mechanical except for the replacement of a couple of snprintf()
and sprintf() calls with strlcpy.


# 629d0dd5 13-May-2002 Brian Somers <brian@FreeBSD.org>

Understand the new NGM_PPPOE_SESSIONID message and set SESSIONID
in the environment to it's value.

Approved by: archie (after a very cursory glance)


# d3974088 22-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


# 7f77b559 20-Feb-2002 Brian Somers <brian@FreeBSD.org>

Handle NGM_PPPOE_ACNAME messages.

Submitted by: Andre Albsmeier <andre@albsmeier.net>
Approved by: julian


# 71233f4f 17-Feb-2002 Warner Losh <imp@FreeBSD.org>

o __P removal
o use Ansi-style function definitions


# 219736e4 03-Feb-2002 Kris Kennaway <kris@FreeBSD.org>

Prototype a function as __printflike() to avoid a FORMAT_AUDIT warning.

MFC after: 1 week


# b5c025b8 21-Nov-2001 Brian Somers <brian@FreeBSD.org>

Don't leave dodgy looking spaces in HISMACADDR


# 49bc93d7 20-Nov-2001 Brian Somers <brian@FreeBSD.org>

Set HISMACADDR in the environment before envoking ppp.

MFC after: 1 week


# d1c27021 25-Aug-2001 Brian Somers <brian@FreeBSD.org>

Put a parenthesis in the right place (DUH!).
This fixes the apparent immediate client timeout problem.


# 321d268b 24-Aug-2001 Brian Somers <brian@FreeBSD.org>

Understand that a return value of 0 from NgRecvMsg() means that the
socket was closed.

This prevents erroneous ``Unexpected netgraph version'' from turning
up in the log.


# a63c2b97 31-Jul-2001 Brian Somers <brian@FreeBSD.org>

Don't use SA_RESETHAND here. We gain nothing.

Suggested by: bde


# e9ffffff 31-Jul-2001 Brian Somers <brian@FreeBSD.org>

Add a -l flag used to specify a label when no -p flag is given.
Start new sentences on new lines in pppoed.8.

MFC after: 1 week


# 7042cfcd 31-Jul-2001 Brian Somers <brian@FreeBSD.org>

Use sigaction() without SA_RESTART rather than signal() so that we
don't block in NgRecvData() after receiving a signal.

MFC after: 1 week


# 5d2ed9f1 11-Jul-2001 Brian Somers <brian@FreeBSD.org>

Remove an extraneous space


# 7bc6d015 09-Jul-2001 Brian Somers <brian@FreeBSD.org>

Fix the type of the NULL arg to execl()

Idea from: Theo de Raadt <deraadt@openbsd.org>


# 05eff81e 12-Dec-2000 Julian Elischer <julian@FreeBSD.org>

Add support for advertising the service we support if the
PADI packet contains a NULL service. This is apparently the desired
behaviour in this case, though we only allow advertising one
service. You could run multiple pppoeds to advertise multiple services.


# b884490b 04-Dec-2000 Brian Somers <brian@FreeBSD.org>

Drop out of our main loop due to a signal rather than handling things in the
signal handler.
Fix a spelling error.

Subtley pointed out by: bde

Make some stuff static


# ffd40070 19-Nov-2000 Kris Kennaway <kris@FreeBSD.org>

Format string paranoia


# 80e2e6b6 16-Nov-2000 Brian Somers <brian@FreeBSD.org>

Go back to populating data_len in struct ngpppoe_init_data.


# fbf03853 30-Oct-2000 Brian Somers <brian@FreeBSD.org>

Use the new-style ngpppoe_init_data structure.

Approved by: archie


# fd845ee4 03-Oct-2000 Brian Somers <brian@FreeBSD.org>

o Load netgraph.ko, ng_ether.ko and ng_pppoe.ko as required (I'm sure this
used not to be necessary).
o Allow ``-n ngdebug'' to specify something to pass to NgSetDebug()
and redirect NgSetDebug() output to syslog(8) in daemon() mode.
o Xref ng_ether(8) and NgSetDebug(4).
o Correct the type of the response passed to NgRecvData.


# 97cba131 22-Nov-1999 Brian Somers <brian@FreeBSD.org>

Add a ``-P pidfile'' option


# dbc7ba8d 21-Nov-1999 Brian Somers <brian@FreeBSD.org>

pppoed(8) - a server to accept PPPoE connections