Home | History | Annotate | Download | only in net
History log of /src/sys/net/if_pppvar.h
RevisionDateAuthorComments
 1.28  28-Apr-2016  ozaki-r Constify rtentry of if_output

We no longer need to change rtentry below if_output.

The change makes it clear where rtentries are changed (or not)
and helps forthcoming locking (os psrefing) rtentries.
 1.27  20-Feb-2008  matt branches: 1.27.54; 1.27.74;
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)
 1.26  14-Jul-2007  ad branches: 1.26.8;
Generic soft interrupts are mandatory.
 1.25  04-Mar-2007  christos branches: 1.25.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.24  17-Feb-2007  dyoung KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous
parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
in6_src.c, avoid casts by changing several route_in6 pointers
to struct route pointers. Remove unnecessary casts to caddr_t
elsewhere.

Pave the way for eliminating address family-specific route caches:
soon, struct route will not embed a sockaddr, but it will hold
a reference to an external sockaddr, instead. We will set the
destination sockaddr using rtcache_setdst(). (I created a stub
for it, but it isn't used anywhere, yet.) rtcache_free() will
free the sockaddr. I have extracted from rtcache_free() a helper
subroutine, rtcache_clear(). rtcache_clear() will "forget" a
cached route, but it will not forget the destination by releasing
the sockaddr. I use rtcache_clear() instead of rtcache_free()
in rtcache_update(), because rtcache_update() is not supposed
to forget the destination.

Constify:

1 Introduce const accessor for route->ro_dst, rtcache_getdst().

2 Constify the 'dst' argument to ifnet->if_output(). This
led me to constify a lot of code called by output routines.

3 Constify the sockaddr argument to protosw->pr_ctlinput. This
led me to constify a lot of code called by ctlinput routines.

4 Introduce const macros for converting from a generic sockaddr
to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
satocsin, et cetera.
 1.23  23-Jul-2006  ad branches: 1.23.10;
Use the LWP cached credentials where sane.
 1.22  28-Dec-2005  christos branches: 1.22.4; 1.22.8;
PR/5901: Felix A. Croes: PPP fast queue blocks traffic at normal priority.
Applied fix, similar to the one suggested in the PR. We use a counter to
limit the number of consecutive packets accepted from the fast queue. This
number can be set via ioctl, but this has not been implemented. Since there
are only 2 queues other proposed solutions such as ALTQ are overkill and
they have not been implemented in the past 7 years. Now LCP echos can be
used to detect that the line is up.
 1.21  11-Dec-2005  thorpej ANSI function decls and application of static.
 1.20  10-Dec-2005  elad Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.
 1.19  05-Dec-2004  christos branches: 1.19.12;
Make ppp a cloning device. Based on the work of Quentin Garnier.
 1.18  01-Sep-2003  christos Add a new ioctl PPPIOCGRAWIN to get the last characters we got from the
remote site.
 1.17  08-Jul-2003  itojun prototype must not have variable name
 1.16  13-Sep-2002  itojun branches: 1.16.6;
copyright clarification. from openbsd

1.
Paul Mackerras and the Australian National University have worked things
out, and as a result, Paul now owns copyright on all these files, with the
proper terms.

2.
and... we managed to contact "Eric Rosenquist" <eric@rosenquist.com> through
the help of people who found him: first one was nick.stott@cogeco.ca
This now has a better license. Two authors left to go.
 1.15  01-Jul-2002  itojun new copyright boilerplate from CMU. from openbsd
 1.14  12-May-2002  matt branches: 1.14.2;
Make ppp_softc[] extern and declare in if_ppp.c
 1.13  15-Jan-2001  thorpej branches: 1.13.2; 1.13.4; 1.13.6;
For SLIP/STRIP/PPP, use generic soft interrupts, if available.
 1.12  12-Dec-2000  thorpej Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.
 1.11  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.10  30-Jul-1999  itojun branches: 1.10.2;
remove reference to in6_systm.h (file itself will be removed afterwords)
 1.9  12-May-1999  thorpej Decouple inbound and outbound filters. Now instead of using "active-filter"
and "pass-filter" and "inbound" and "outbound" qualifiers in the filter
expression, use new "active-filter-in", "active-filter-out", "pass-filter-in",
and "pass-filter-out" without these qualifiers.

This is necessary due to the horrible, awful way "inbound" and "outbound"
were specified for the filter programs when a packet was passed through them.
Basically, the "address" byte in the serial PPP header was overwritten with
a value to indicate the direction. However, the "address" byte doesn't even
exist on PPP headers for all other PPP encaps! So, this old method worked
only for serial encaps, and corrupted packets for all others (PPPoE, ATM, etc.)
 1.8  09-Feb-1998  perry branches: 1.8.6; 1.8.10;
add multiple inclusion protection (and cleanup).
 1.7  17-May-1997  christos Update to ppp-2.3b5
 1.6  12-Mar-1997  christos Update to ppp-2.3b4; from Paul Mackerras
 1.5  03-Jan-1997  mikel hide softc array and kernel routine prototypes from userland; PR misc/3070
 1.4  07-May-1996  thorpej Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)()
to take a struct ifnet *, rather than a unit number.
 1.3  15-Mar-1996  paulus Added packet filtering, support for "PPP Deflate" packet compression,
trivial multicast support, and support for xon/xoff output flow
control to the PPP subsystem. Fixed several bugs, including making
the accumulation and resetting of statistics more consistent. State
for the VJ compressor is now dynamically allocated.
 1.2  04-Jul-1995  briggs Use the right prototype for pppioctl().
 1.1  04-Jul-1995  paulus Latest version of PPP stuff, with packet compression and other
improvements. The PPP kernel code is now split into if_ppp.c,
containing generic PPP support, and ppp_tty.c, which specifically
supports PPP on async tty devices (as a line discipline). This is
so that other devices can be supported without making them look
like ttys.
 1.8.10.2  02-Aug-1999  thorpej Update from trunk.
 1.8.10.1  21-Jun-1999  thorpej Sync w/ -current.
 1.8.6.1  11-Dec-1998  kenh The beginnings of interface detach support. Still some bugs, but mostly
works for me.

This work was originally by Bill Studenmund, and cleaned up by me.
 1.10.2.3  18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.10.2.2  13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.10.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.13.6.1  13-Oct-2001  fvdl Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.
 1.13.4.3  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.13.4.2  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.13.4.1  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.13.2.3  17-Sep-2002  nathanw Catch up to -current.
 1.13.2.2  01-Aug-2002  nathanw Catch up to -current.
 1.13.2.1  20-Jun-2002  nathanw Catch up to -current.
 1.14.2.1  15-Jul-2002  gehenna catch up with -current.
 1.16.6.5  11-Dec-2005  christos Sync with head.
 1.16.6.4  18-Dec-2004  skrll Sync with HEAD.
 1.16.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.16.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.16.6.1  03-Aug-2004  skrll Sync with HEAD
 1.19.12.5  27-Feb-2008  yamt sync with head.
 1.19.12.4  03-Sep-2007  yamt sync with head.
 1.19.12.3  26-Feb-2007  yamt sync with head.
 1.19.12.2  30-Dec-2006  yamt sync with head.
 1.19.12.1  21-Jun-2006  yamt sync with head.
 1.22.8.1  11-Aug-2006  yamt sync with head
 1.22.4.1  09-Sep-2006  rpaulo sync with head
 1.23.10.2  12-Mar-2007  rmind Sync with HEAD.
 1.23.10.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.25.2.1  15-Jul-2007  ad Sync with head.
 1.26.8.1  23-Mar-2008  matt sync with HEAD
 1.27.74.1  29-May-2016  skrll Sync with HEAD
 1.27.54.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed