History log of /freebsd-current/sys/netgraph/ng_pppoe.h
Revision Date Author Comments
# 95ee2897 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


# 7fc0ffda 02-Apr-2022 Gordon Bergling <gbe@FreeBSD.org>

ng_pppoe(4): Fix a typo in a source code comment

- s/asychronous/asynchronous/

MFC after: 3 days


# 662c1305 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

net: clean up empty lines in .c and .h files


# 8be8c756 14-Feb-2018 Eugene Grosbein <eugen@FreeBSD.org>

ng_pppoe(8): add support for user-supplied Host-Uniq tag.

A few ISP filter PADI requests based on such tag,
to force the use of their own routers.
The custom Host-Uniq tag is passed in the NGM_PPPOE_CONNECT
control message, so it can be used with FreeBSD ppp(8)
and mpd without any other change.

Add support to send and receive PADM messages,
HURL and MOTM, often used by service providers to provide
ACS information and other configuration settings
to the user CPE.

Submitted by: ale
Approved by: mav (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D9270


# 5b363c09 11-Sep-2015 Alexander Motin <mav@FreeBSD.org>

Add support for PPP-Max-Payload PPPoE tag (RFC4638).

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks


# 5c6d5d55 23-Jul-2013 Gleb Smirnoff <glebius@FreeBSD.org>

Add constant for PPP-Max-PayLoad tag.

Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>


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


# 60d234c5 03-Mar-2009 Ed Schouten <ed@FreeBSD.org>

Make Netgraph compile with Clang.

Clang disallows structs with variable length arrays to be nested inside
other structs, because this is in violation with ISO C99. Even though we
can keep bugging the LLVM folks about this issue, we'd better just fix
our code to not do this. This code seems to be the only code in the
entire source tree that does this.

I haven't tested this patch by using the kernel modules in question, but
Diane Bruce and I have compared disassembled versions of these kernel
modules. We would have expected them to be exactly the same, but due to
randomness in the register allocator and reordering of instructions,
there were some minor differences.

Approved by: julian


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

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


# b06ccdea 26-Dec-2007 Alexander Motin <mav@FreeBSD.org>

Remove some prehistoric never used defines.


# b1ba28df 09-Aug-2006 Gleb Smirnoff <glebius@FreeBSD.org>

Fix ng_pppoe(4) after turning off "autosrc feature" on ng_ether(4).

- Store the Ethernet header in node softc.
- Initialize header with dst addr and ethertype in node
constructor method.
- In node connect method send NGM_ETHER_GET_ENADDR message
downwards.
- If received reply from ng_ether(4) store the src addr
in softc.
- Add NGM_PPPOE_SETENDADDR message that allows user to
override the address with whatever he/she wants.


# 1c8aa594 27-Jan-2006 Gleb Smirnoff <glebius@FreeBSD.org>

o Introduce D-Link compat mode, that is default to off and can be set
by NGM_PPPOE_SETMODE message. When D-Link compat mode is on, we will
broadcast PADI with empty Service-Name to all listening hooks.
o Rewrite the compatibility options. Before we had two modes - standard
and non-standard (aka 3Com). Now we have standard mode and two compat
flags, that can be combined.
o Be consistent and do s/STUPID/3COM/g. I don't say that 3Com mode isn't
stupid, just want to make code easier to read.


# d56ace09 28-Oct-2005 Ruslan Ermilov <ru@FreeBSD.org>

Use variable-sized arrays where appropriate.


# c398230b 06-Jan-2005 Warner Losh <imp@FreeBSD.org>

/* -> /*- for license, minor formatting changes


# fdc755d1 27-Jul-2004 Gleb Smirnoff <glebius@FreeBSD.org>

When node is server serve both standard RFC2516 and non-standard 3Com
clients simultaneously. When node is client its mode is configured
with a control message.

sysctl net.graph.nonstandard_pppoe is deprecated but kept for
backward compatibility for some time.

Approved by: julian


# f6fee71d 17-Mar-2004 David Malone <dwmalone@FreeBSD.org>

Make the vaule of PTT_RELAY_SID match the RFC. This should help PPPoE
users that are working with relayed PPPoE.

Submitted by: Bodo Rüskamp <jordbaer@mac.com>
PR: 44936
Approved by: julian
MFC after: 1 week


# 87e2c66a 26-Jan-2004 Hartmut Brandt <harti@FreeBSD.org>

Get rid of the deprecated *LEN constants in favour of the new
*SIZ constants that include the trailing \0 byte.


# e20480bf 10-Nov-2003 Ruslan Ermilov <ru@FreeBSD.org>

Use a single style of multiple inclusion protection for Netgraph headers.

Reviewed by: archie, harti, emax


# 4f492bfa 23-Sep-2002 Alfred Perlstein <alfred@FreeBSD.org>

use __packed.


# f0184ff8 31-May-2002 Archie Cobbs <archie@FreeBSD.org>

Fix GCC warnings caused by initializing a zero length array. In the process,
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.

MFC after: 2 weeks


# 87c4cce0 13-May-2002 Brian Somers <brian@FreeBSD.org>

Add a NGM_PPPOE_SESSIONID message to the ng_pppoe node.
This message is sent to the control socket when the SessionID
is established.

Approved by: archie (after a very cursory glance)


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

Send a NGM_PPPOE_ACNAME message to userland when a node is connected.

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


# bfa7e882 23-Feb-2001 Julian Elischer <julian@FreeBSD.org>

Shuffle sysctls a bit (thankyou whoever made them dynamic for modules)
and add a sysctl to pppoe to activate non standard ethertypes
so that idiot ISPs (apparently in France) who use
equipment from idiot suppliers (rumour says 3com)
who use nonstandard ethertypes can still connect.

"yep, sure we do pppoe, we use a different identifier to that dictated in
the standard, but sure it's pppoe!"

sysctl -w net.graph.stupid_isp=1 enables the changeover.


# 7600241b 12-Dec-2000 Julian Elischer <julian@FreeBSD.org>

I have no idea at all why this file was not included in the last commit.


# 27121ab1 16-Nov-2000 Brian Somers <brian@FreeBSD.org>

Go back to using data_len in struct ngpppoe_init_data after discussions
with Julian and Archie.

Implement a new ``sizedstring'' parse type for dealing with field pairs
consisting of a uint16_t followed by a data field of that size, and use
this to deal with the data_len and data fields.

Written by: Archie with some input by me
Agreed in principle by: julian


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

Change the format of ngpppoe_init_data so that the provider is NUL
terminated and the data_len field is no longer necessary.

Add ASCII2BINARY and BINARY2ASCII capabilities.

The old format is still understood and dealt with, but can't do
the ASCII2BINARY and BINARY2ASCII stuff.

Approved by: archie


# cc3bbd68 24-Oct-2000 Julian Elischer <julian@FreeBSD.org>

Since neither archie nor I work at Whistle any more, change our email
addresses to be the more usefu @freebsd.org ones
so we can keep getting bug-reports.
- man pages to follow..


# d0fef808 01-Dec-1999 Julian Elischer <julian@FreeBSD.org>

change intial timeout for session negotiation from 1 to 2 seconds.
One second was being hit too many times in normal situations.


# 12f035e0 08-Nov-1999 Julian Elischer <julian@FreeBSD.org>

Remove a null pointer reference

Submitted by: Brian Somers (brian@freebsd.org)


# dc90cad9 31-Oct-1999 Julian Elischer <julian@FreeBSD.org>

Start making the contents of the generic framework opaque to the nodes.
This step: IDs are no-longer the address of the node.
Reviewd by: Archie@freebsd.org


# 8876b55d 27-Oct-1999 Julian Elischer <julian@FreeBSD.org>

change PPPoE occurences to pppoe. Not JUST a cosmeting change.
some occurrances needed to be the same as the filenmnae which was pppoe
not PPPoE.


# b58a8a3b 22-Oct-1999 Julian Elischer <julian@FreeBSD.org>

Now that Netgraph is in the system there are some cleanups we can do.
Also save a slightly closer to completion version of the PPPOE code.

Submitted by: Archie Cobbs <archie@freebsd.org>


# 4cf49a43 21-Oct-1999 Julian Elischer <julian@FreeBSD.org>

Whistle's Netgraph link-layer (sometimes more) networking infrastructure.
Been in production for 3 years now. Gives Instant Frame relay to if_sr
and if_ar drivers, and PPPOE support soon. See:
ftp://ftp.whistle.com/pub/archie/netgraph/index.html
for on-line manual pages.

Reviewed by: Doug Rabson (dfr@freebsd.org)
Obtained from: Whistle CVS tree