Home | History | Annotate | Download | only in net
History log of /src/sys/net/if_sppp.h
RevisionDateAuthorComments
 1.36  14-May-2021  yamaguchi Add a parameter to change keepalive interval in each PPPoE I/F
 1.35  11-May-2021  yamaguchi clear authentication protocol when SPPP_AUTHPROTO_NONE is specified
 1.34  11-May-2021  yamaguchi Added ioctl commands for configuring NCP of pppoe(4)
 1.33  11-May-2021  yamaguchi Revert previous commit because of mistake of commit log

back to r1.230(if_spppsubr.c) and r1.31(if_sppp.h)
 1.32  11-May-2021  yamaguchi Added keywords that are ipcp, noipcp, ipv6cp, noipv6cp
for configuring NCP
 1.31  23-Apr-2021  yamaguchi branches: 1.31.2; 1.31.4;
Introduct a new flag to accept different authentication protocol
in myauthproto and hisauthproto

When the flag is enabled, a authentication protocol notified
at LCP negotiation is used as my authentication protocol.
When the flags is NOT enabled, my authentication protoco is
not changed at LCP negotiation.
 1.30  02-Dec-2020  wiz comparision -> comparison
 1.29  25-Nov-2020  yamaguchi Add commands to refer params of control protocols in if_spppsubr.c

reviewed by knakahara@n.o.
 1.28  06-Sep-2015  dholland branches: 1.28.30;
More on PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers (I think) all the MI headers outside of external/ (and dist/).
 1.27  20-Apr-2010  jmcneill branches: 1.27.18; 1.27.36;
COMPAT_50 support for SPPP[GS]ETIDLETO and SPPP[GS]ETKEEPALIVE, ok martin@
 1.26  28-Apr-2008  martin branches: 1.26.20; 1.26.22;
Remove clause 3 and 4 from TNF licenses
 1.25  20-Feb-2008  matt branches: 1.25.6; 1.25.8; 1.25.10;
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)
 1.24  10-Dec-2005  elad branches: 1.24.46;
Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.
 1.23  26-Dec-2003  martin branches: 1.23.16;
Add a new ioctl SPPPGETSTATUSNCP to query the PPP phase and check wether
any NCP is UP.
 1.22  28-Nov-2003  keihan s/netbsd.org/NetBSD.org/g
 1.21  11-Sep-2003  martin Fix copy & pasto (luckily, for most archs the structs had the same size,
so this went unnoticed for quite some time now). Noticed by Thomas Bieg.
 1.20  05-Sep-2003  martin Fix copy & pasto.
 1.19  03-Sep-2003  martin Rearange dead link detection slightly:
As long as we receive data from the peer, don't worry. When we have not
received anything within the "max_noreceive" period, we start sending LCP
echo requests and count them, until we receive an answer (or some data)
or the "maxalive" count of not answered echo requests is reached.
All this is checked at a global 10 seconds interval for all interfaces.
The "max_noreceive" period and the "maxalive" count are configurable per
interface.
 1.18  06-Jan-2003  wiz branches: 1.18.2;
successful with only one l.
 1.17  14-Apr-2002  martin Fix copyright notice.
 1.16  02-Mar-2002  martin Add support to query the peer for DNS addreses when negotiating IPCP.
Add ioctls to retrieve the results.

While here remove a malloc()/free() of an unused buffer.
 1.15  15-Jan-2002  martin Make fields in ioctl parameters that are not allowed to be negative u_ints.
Better range & sanity checking for ioctl arguments (thanks, Jaromir!)
 1.14  07-Jan-2002  martin Implement a retry counter for failed authorizations and limit it to
a configurable maximum (default: 5).

Some ISPs shut down accounts (at least temporarily) after to many bad
retries. This hit me recently due to a stupid pilot error and the fast
retry rate.
 1.13  06-Jan-2002  martin Implement an activity timestamp, recording the last time payload data
passed through.

Implement optional idle timeout.
 1.12  04-Jan-2002  martin Move net/if_sppp.h to net/if_spppvar.h, create a new net/if_sppp.h
containing the userland visible thinks (i.e. ioctl definitions).

Remove all (both) old ioctls, as they had a brain dead API and made keeping
binary compatibility more or less impossible.

Replace by several new ioctls. While there, remove any arbitrary limits
(resulting from the old, broken ioctls) and allow any length of names
and passwords.
 1.11  31-Dec-2001  thorpej Fix a "pointers are not permitted as case values" gcc 3.1 warning.
 1.10  08-Dec-2001  martin Change the way IPCP negotiation is handled.

Collect both local and remote address and set them to the interface in
one step (the peer adress was not set at all before).

This causes the peer address now to show up on the interface and all
messages to the routing socket to be send with correct data. The latter
has been the last missing piece to complete PPPoE support.
 1.9  09-Apr-2001  martin branches: 1.9.2;
Add another option for encapsulation: PP_NOFRAMING.
In this mode, the PPP packets start with the protocol identifier and don't
have any explicit framing (which may be added by the lower level driver).

Make input/output statistics a little bit more correct by adding a hardware
driver adjustable framing length for each packet (instead of the constant
value "3" used before).

While there, bump authentication name length from 32 to 48 (I have a
connection where I need more than 32). XXX - this should not be artificialy
limited at all.
 1.8  25-Mar-2001  martin Make the 'cmd' argument to ioctl an unsigned long, as it is everywhere
else.
 1.7  10-Aug-2000  ad branches: 1.7.2;
Define SIOC[SG]IFGENERIC in <sys/sockio.h>, as FreeBSD and OpenBSD do.
 1.6  02-May-2000  itojun IPv6CP support. if IPv6 link-local address is configured to the interface,
the interface tries to negotiate ifid with the other end by using IPv6CP.

other changes:
- do not share ppp sequence number across protocols.
- if LCP proto-rej is received, drop the protocol mentioned by the message.
this is to be friendly with non-IPv6 peer (if the peer complains due to
lack of IPv6CP, drop IPv6CP). this basically implements "RXJ+" state
transition in the RFC.
- cleanup debugging message. always print blank just before message.

CAVEAT:
- if the peer uses the same MAC address as our side (pretty unlikely)
the code may go into req-rej loop.
- even though we negotiate ifid, we don't configure destination address
onto the interface. it is not really necessary to do so (IMHO).
- I've tested this code on a NetBSD 1.4.2 node, which was with fair amount
of modifications. not sure if the committed code does it right... (please
test and send reports)
 1.5  23-Mar-2000  thorpej New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.4  04-Apr-1999  explorer branches: 1.4.2;
Add NetBSD rcsid tags, and preserve old ones from i4b source
 1.3  04-Apr-1999  explorer switch to the i4b version of if_sppp*.[ch] (with mods)
 1.2  25-Mar-1999  explorer branches: 1.2.2;
put RCS ids in the right place. And yes, this is a SYNC ppp interface,
used for high-speed (T1, HSSI, DS3) interfaces.
 1.1  25-Mar-1999  explorer port FreeBSD's serial ppp layer to NetBSD. The PPP part seems broken still,
but the lmc driver uses the HDLC bits from here anyway.
 1.2.2.1  04-Apr-1999  explorer branches: 1.2.2.1.2;
Pull up recent changes to if_sppp*.[ch] (i4b code) with RCS id fixes
 1.2.2.1.2.1  21-Jun-1999  thorpej Sync w/ -current.
 1.4.2.3  21-Apr-2001  bouyer Sync with HEAD
 1.4.2.2  27-Mar-2001  bouyer Sync with HEAD.
 1.4.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.7.2.8  07-Jan-2003  thorpej Sync with HEAD.
 1.7.2.7  17-Apr-2002  nathanw Catch up to -current.
 1.7.2.6  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.7.2.5  28-Feb-2002  nathanw Catch up to -current.
 1.7.2.4  11-Jan-2002  nathanw More catchup.
 1.7.2.3  08-Jan-2002  nathanw Catch up to -current.
 1.7.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.7.2.1  09-Apr-2001  nathanw Catch up with -current.
 1.9.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.9.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.9.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.4  11-Dec-2005  christos Sync with head.
 1.18.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1  03-Aug-2004  skrll Sync with HEAD
 1.23.16.2  27-Feb-2008  yamt sync with head.
 1.23.16.1  21-Jun-2006  yamt sync with head.
 1.24.46.1  23-Mar-2008  matt sync with HEAD
 1.25.10.2  11-Aug-2010  yamt sync with head.
 1.25.10.1  16-May-2008  yamt sync with head.
 1.25.8.1  18-May-2008  yamt sync with head.
 1.25.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.26.22.1  30-May-2010  rmind sync with head
 1.26.20.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.27.36.1  22-Sep-2015  skrll Sync with HEAD
 1.27.18.1  03-Dec-2017  jdolecek update from HEAD
 1.28.30.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.31.4.1  31-May-2021  cjep sync with head
 1.31.2.2  17-Jun-2021  thorpej Sync w/ HEAD.
 1.31.2.1  13-May-2021  thorpej Sync with HEAD.

RSS XML Feed