Go to file
Paul Mackerras 2cd2d134fb plugins/pppoe: Use value from pppoe-padi-* options
Reading the values of pppoe_padi_timeout and pppoe_padi_attempts in
PPPOEInitDevice() means that they get sampled when the parsing the
ethernet device name.  If the user provides the pppoe-padi-attempts or
pppoe-padi-timeout option after the ethernet device name, the value
given is effectively ignored.

Instead, read those variables in pppoe_check_options, which is called
after all options have been parsed, so that any user-specified values
don't get missed.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2024-05-16 20:31:37 +10:00
.github/workflows CI: Updated the 'checkout' actions that were using Node.js 16 to Node.js 20. (#489) 2024-04-26 19:11:31 +10:00
chat chat: Fix loop condition to avoid possible 1-byte buffer overrun 2023-03-18 17:34:07 +11:00
common
contrib Move pppgetpass.8 to EXTRA_DIST (#412) 2023-05-01 13:33:10 +10:00
etc.ppp
include Remove include/net/slcompress.h 2023-12-27 15:30:07 +00:00
m4 Use pkg-config to detect PAM when possible (#479) 2024-04-26 19:10:16 +10:00
modules Change my paulus@samba.org email address to paulus@ozlabs.org 2023-11-09 12:19:59 +11:00
pppd plugins/pppoe: Use value from pppoe-padi-* options 2024-05-16 20:31:37 +10:00
pppdump Change my paulus@samba.org email address to paulus@ozlabs.org 2023-11-09 12:19:59 +11:00
pppstats Remove <linux/if_ppp.h> and <net/if_ppp.h> headers 2023-11-09 17:20:36 +11:00
sample
scripts scripts/lcp_rtt_exporter: include content length in response (#467) 2023-12-21 19:51:57 +00:00
solaris Change my paulus@samba.org email address to paulus@ozlabs.org 2023-11-09 12:19:59 +11:00
.gitignore
AUTHORS Change my paulus@samba.org email address to paulus@ozlabs.org 2023-11-09 12:19:59 +11:00
autogen.sh
ChangeLog
Changes-2.3
Changes-2.4 Further updates to README for 2.5.0 release 2023-03-18 20:11:05 +11:00
configure.ac Fix for failure to detect the presence of sockaddr_ll in linux/if_packet.h (#456) 2023-11-08 16:58:01 +11:00
COPYING
FAQ
LICENSE.BSD Add LICENSE.* for GPLv2 and BSD licenses covered by this project 2023-01-23 09:18:39 -08:00
LICENSE.GPL-2 Add LICENSE.* for GPLv2 and BSD licenses covered by this project 2023-01-23 09:18:39 -08:00
Makefile.am
NEWS
PLUGINS
README README: Update for 2.5.1 release 2023-11-09 12:15:12 +11:00
README.cbcp
README.eap-srp
README.eap-tls
README.linux Change my paulus@samba.org email address to paulus@ozlabs.org 2023-11-09 12:19:59 +11:00
README.MPPE
README.MSCHAP80
README.MSCHAP81
README.pppoe
README.pppol2tp
README.pwfd
README.sol2
SECURITY.md
SETUP
Submitting-patches.md

This is the README file for ppp-2.5, a package which implements the
Point-to-Point Protocol (PPP) to provide Internet connections over
serial lines and other types of links which can be considered to be
point-to-point links.


Introduction.
*************

The Point-to-Point Protocol (PPP) provides a standard way to establish
a network connection over a serial link.  At present, this package
supports IP and IPV6 and the protocols layered above them, such as TCP
and UDP.

This PPP implementation consists of two parts:

- Kernel code, which establishes a network interface and passes
packets between the serial port, the kernel networking code and the
PPP daemon (pppd).  This code is implemented using STREAMS modules on
Solaris, and as a line discipline under Linux.

- The PPP daemon (pppd), which negotiates with the peer to establish
the link and sets up the ppp network interface.  Pppd includes support
for authentication, so you can control which other systems may make a
PPP connection and what IP addresses they may use.

The platforms supported by this package are Linux and Solaris.  I have
code for NeXTStep, FreeBSD, SunOS 4.x, SVR4, Tru64 (Digital Unix), AIX
and Ultrix but no active maintainers for these platforms.  Code for
all of these except AIX is included in the ppp-2.3.11 release.

The kernel code for Linux is no longer distributed with this package,
since the relevant kernel code is in the official Linux kernel source
(and has been for many years) and is included in all reasonably modern
Linux distributions.  The Linux kernel code supports using PPP over
things other than serial ports, such as PPP over Ethernet and PPP over
ATM.


Installation.
*************

The file SETUP contains general information about setting up your
system for using PPP.  There is also a README file for each supported
system, which contains more specific details for installing PPP on
that system.  The supported systems, and the corresponding README
files, are:

	Linux				README.linux
	Solaris				README.sol2

In each case you start by running the ./configure script.  This works
out which operating system you are using and creates the appropriate
makefiles.  You then run `make' to compile the user-level code, and
(as root) `make install' to install the user-level programs pppd, chat
and pppstats.

N.B. Since 2.3.0, leaving the permitted IP addresses column of the
pap-secrets or chap-secrets file empty means that no addresses are
permitted.  You need to put a "*" in that column to allow the peer to
use any IP address.  (This only applies where the peer is
authenticating itself to you, of course.)


What's new in ppp-2.5.1
***********************

* Pppd can now measure and log the round-trip time (RTT) of LCP
  echo-requests and record them in a binary file structured as a
  circular buffer.  Other programs or scripts can examine the file and
  provide real-time statistics on link latency.  This is enabled by a
  new "lcp-rtt-file" option.

* New scripts net-init, net-pre-up and net-down are executed in the
  process of bringing the network interface up and down.  They provide
  additional, more deterministic ways for pppd to interact with the
  rest of the networking configuration.

* Pppd will now create the directory for the TDB connection database
  if it doesn't already exist.

* Various other bug fixes and minor enhancements.


What was new in ppp-2.5.0.
**************************

The 2.5.0 release is a major release of pppd which contains breaking 
changes for third-party plugins, a complete revamp of the build-system
and that allows for flexibility of configuring features as needed.

In Summary:
* Support for PEAP authentication by Eivind Næss and Rustam Kovhaev
* Support for loading PKCS12 certificate envelopes 
* Adoption of GNU Autoconf / Automake build environment, by Eivind Næss
  and others.
* Support for pkgconfig tool has been added by Eivind Næss.
* Bunch of fixes and cleanup to PPPoE and IPv6 support by Pali Rohár.
* Major revision to PPPD's Plugin API by Eivind Næss.
  - Defines in which describes what features was included in pppd
  - Functions now prefixed with explicit ppp_* to indicate that
    pppd functions being called.
  - Header files were renamed to better align with their features,
    and now use proper include guards
  - A pppdconf.h file is supplied to allow third-party modules to use
    the same feature defines pppd was compiled with.
  - No extern declarations of internal variable names of pppd, 
    continued use of these extern variables are considered 
    unstable.
* Lots of internal fixes and cleanups for Radius and PPPoE by Jaco Kroon
* Dropped IPX support, as Linux has dropped support in version 5.15
  for this protocol.
* Many more fixes and cleanups.
* Pppd is no longer installed setuid-root.
* New pppd options:
  - ipv6cp-noremote, ipv6cp-nosend, ipv6cp-use-remotenumber,
    ipv6-up-script, ipv6-down-script
  - -v, show-options
  - usepeerwins, ipcp-no-address, ipcp-no-addresses, nosendip
* On Linux, any baud rate can be set on a serial port provided the
  kernel serial driver supports that.

Note that if you have built and installed previous versions of this
package and you want to continue having configuration and TDB files in
/etc/ppp, you will need to use the --sysconfdir option to ./configure.

For a list of the changes made during the 2.4 series releases of this
package, see the Changes-2.4 file.


Compression methods.
********************

This package supports two packet compression methods: Deflate and
BSD-Compress.  Other compression methods which are in common use
include Predictor, LZS, and MPPC.  These methods are not supported for
two reasons - they are patent-encumbered, and they cause some packets
to expand slightly, which pppd doesn't currently allow for.
BSD-Compress and Deflate (which uses the same algorithm as gzip) don't
ever expand packets.


Contacts.
*********

Most communication relating to this package happens on github at
https://github.com/ppp-project/ppp/.  The linux-ppp@vger.kernel.org
mailing list also exists and can be used.

If you find bugs in this package, the best thing to do is to create an
issue on github.  If you can't or don't want to do that, you can post
to linux-ppp@vger.kernel.org, or report them to the maintainer for the
port for the operating system you are using:

Linux			Paul Mackerras <paulus@ozlabs.org>
Solaris			James Carlson <carlson@workingcode.com>


Copyrights:
***********

All of the code can be freely used and redistributed.  The individual
source files each have their own copyright and permission notice.
Pppd, pppstats and pppdump are under BSD-style notices.  Some of the
pppd plugins are GPL'd.  Chat is public domain.


Distribution:
*************

The primary site for releases of this software is:

	ftp://ftp.samba.org/pub/ppp/