Home | History | Annotate | Download | only in net
History log of /src/sys/net/if_sl.c
RevisionDateAuthorComments
 1.136  26-Oct-2022  riastradh branches: 1.136.6;
sl(4): Convert to ttylock/ttyunlock.
 1.135  03-Sep-2022  thorpej Garbage-collect the remaining vestiges of netisr.
 1.134  27-Aug-2022  thorpej Ensure that all queues passed to ifq_enqueue2() have a valid ifq_lock.
 1.133  27-Aug-2022  thorpej Use IFQ_SET_MAXLEN() rather than open-coding it.
 1.132  29-Jan-2020  thorpej Adopt <net/if_stats.h>.
 1.131  24-Jan-2019  knakahara branches: 1.131.6;
Add comments about D_MPSAFE to functions called as struct linesw.l_ioctl.
 1.130  22-Dec-2018  maxv Replace: M_MOVE_PKTHDR -> m_move_pkthdr. No functional change, since the
former is a macro to the latter.
 1.129  20-Apr-2018  knakahara branches: 1.129.2;
SIOCSIFDSTADDR uses struct ifreq instead of struct ifaddr or struct in_aliasreq.

SIOCSIFDSTADDR is not used by base package commands...

I checked sys/net*/* only.
 1.128  13-Apr-2017  maya branches: 1.128.10;
if MGETHDR fails, don't try to copy to single mbuf and deref null.

reduce ifdefs.
 1.127  02-Oct-2016  christos branches: 1.127.2;
MFREE -> m_free
 1.126  07-Aug-2016  christos modularize some more drivers and merge the module glue
 1.125  06-Aug-2016  christos make strip and slip modular, and cosmetic for ppp.
 1.124  10-Jun-2016  ozaki-r branches: 1.124.2;
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.123  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.122  20-Apr-2016  knakahara IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller
 1.121  24-Aug-2015  pooka sprinkle _KERNEL_OPT
 1.120  20-Aug-2015  uebayasi Honor pseudo attach decl generated by config(1).
 1.119  05-Jun-2014  rmind branches: 1.119.4;
- Implement pktqueue interface for lockless IP input queue.
- Replace ipintrq and ip6intrq with the pktqueue mechanism.
- Eliminate kernel-lock from ipintr() and ip6intr().
- Some preparation work to push softnet_lock out of ipintr().

Discussed on tech-net.
 1.118  23-Sep-2011  christos branches: 1.118.12; 1.118.26;
Change obsolete CBSIZE constant (48), to a power of two constant (64) that
is close enough to match the original assumptions.
 1.117  05-Apr-2010  joerg Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
 1.116  19-Jan-2010  pooka branches: 1.116.2; 1.116.4;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.115  07-May-2009  elad Introduce actions/requests to handle authorization for ppp(4), sl(4),
strip(4), btuart(4) and bcsp(4) network interfaces and devices.

Mailing list reference:

http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004955.html
 1.114  17-Dec-2008  cegger branches: 1.114.2;
kill MALLOC and FREE macros.
 1.113  07-Nov-2008  dyoung *** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address. (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior. Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability. KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr. That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR. For example, pull ..._init() out of any switch
statement that looks like this:

switch (...->sa_family) {
case ...:
..._init();
...
break;
...
default:
..._init();
...
break;
}

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

switch (x & (IFF_UP|IFF_RUNNING)) {
case 0:
...
break;
case IFF_RUNNING:
...
break;
case IFF_UP:
...
break;
case IFF_UP|IFF_RUNNING:
...
break;
}

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure. Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls. In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source. In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset. Delete unnecessary casts to void *. Use
sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with
NULL instead of "testing truth". Replace some instances of (type
*)0 with NULL. Change some K&R prototypes to ANSI C, and join
lines.
 1.112  15-Jun-2008  christos branches: 1.112.2; 1.112.4;
- add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD)
- kill memsets where M_ZERO can be used.
 1.111  24-Apr-2008  ad branches: 1.111.2; 1.111.4; 1.111.6;
Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.
 1.110  07-Feb-2008  dyoung branches: 1.110.6; 1.110.8;
Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs. This will ease extending the kernel and sharing of code
between drivers.

First steps: Make the signature of ifioctl_common() match struct
ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
 1.109  10-Nov-2007  ad Call ttyflush() with tty_lock held.
 1.108  08-Oct-2007  ad branches: 1.108.2; 1.108.4;
Use the softint API.
 1.107  01-Sep-2007  dyoung branches: 1.107.2;
Use ifreq_setaddr(), ifreq_getaddr(), sockaddr_in_init(), and
sockaddr_copy(). Constify. Compare pointers with NULL, not 0.
Don't "test truth" of pointers, but compare with NULL.
 1.106  14-Jul-2007  ad branches: 1.106.2; 1.106.6; 1.106.8;
Generic soft interrupts are mandatory.
 1.105  04-Mar-2007  christos branches: 1.105.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.104  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.103  04-Jan-2007  elad branches: 1.103.2;
Consistent usage of KAUTH_GENERIC_ISSUSER.
 1.102  16-Nov-2006  christos __unused removal on arguments; approved by core.
 1.101  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.100  23-Jul-2006  ad branches: 1.100.4; 1.100.6;
Use the LWP cached credentials where sane.
 1.99  08-Jul-2006  tsutsui KNF.
 1.98  07-Jun-2006  kardel branches: 1.98.2;
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
 1.97  14-May-2006  elad branches: 1.97.2;
integrate kauth.
 1.96  02-Mar-2006  christos branches: 1.96.2; 1.96.4; 1.96.6;
Provide ppp like statistics instead of grovelling through the kernel
symbols.
 1.95  11-Dec-2005  thorpej branches: 1.95.4; 1.95.6;
ANSI function decls and application of static.
 1.94  11-Dec-2005  christos merge ktrace-lwp.
 1.93  27-Nov-2005  thorpej Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
registering those disciplines with the system. The linesw
structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
be held. ttyldisc_release() releases the reference. Attempts to
detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().
 1.92  18-Aug-2005  yamt branches: 1.92.6;
- introduce M_MOVE_PKTHDR and use it where appropriate.
intended to be mostly API compatible with openbsd/freebsd.
- remove a glue #define in netipsec/ipsec_osdep.h.
 1.91  31-Mar-2005  christos branches: 1.91.2;
factor out the interface queueing code into two functions. One used by
the non point-to-point interfaces that has one queue, and one used by
the point to point interfaces that has two queues. No functional changes.
XXX: The ALTQ stuff makes the code ugly.
XXX: More cleanup to come
 1.90  06-Dec-2004  christos branches: 1.90.4;
Sprinkle #ifdef INET to make a GENERIC kernel compile with INET undefined.
 1.89  05-Dec-2004  peter Don't forget to call bpfdetach in the clone destroy function.
While here, add a missing static and change some spaces to tabs.
 1.88  05-Dec-2004  he Fix what must have been an omission: missing brace and a leftover
use of `i', which is no longer defined. Fixes build problem for ports
not defining __HAVE_GENERIC_SOFT_INTERRUPTS.
 1.87  05-Dec-2004  christos clonify strip and sl.
 1.86  19-Aug-2004  christos Factor out the hand-crafting of mbufs from the interface files. Reviewed by
gimpy. XXX: I could have used bpf_mtap2 on some of the new functions, but I
chose not to, because I just wanted to do what amounts to a code move.
 1.85  21-Apr-2004  itojun kill sprintf, use snprintf
 1.84  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.83  01-May-2003  itojun branches: 1.83.2;
bpf_mtap() does not care about M_PKTHDR at the top. M_COPY_PKTHDR has some
consequences, so avoid it. if we need to attach dummy headers, we should
use M_PREPEND instead.
 1.82  26-Feb-2003  matt Add MBUFTRACE kernel option.
Do a little mbuf rework while here. Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *). These are not performance critical and making them
call m_get saves considerable space. Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.
 1.81  11-Sep-2002  itojun KNF - return is not a function.
 1.80  17-Mar-2002  atatat Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.79  14-Jan-2002  kleink Include <machine/intr.h> unconditionally, instead of only doing so if
__HAVE_GENERIC_SOFT_INTERRUPTS and relying on <sys/param.h> to provide it
otherwise; pointed out by Aymeric Vincent.
 1.78  12-Nov-2001  lukem add RCSIDs
 1.77  15-Jul-2001  martin branches: 1.77.2;
Fix slight glitch from rev. 1.70: bp is not adjusted for next loop after
outputting some data.
Fix provided by isaki@par.odn.ne.jp in PR kern/13472.
 1.76  14-Jun-2001  itojun branches: 1.76.2;
change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific
interfaces only).

was: if_lastchange get updated on every packet transmission/receipt.
now: if_lastchange get updated when IFF_UP is changed.
 1.75  30-May-2001  itojun fix mbuf leak due to meaningless MGETHDR. from niels provos
 1.74  13-Apr-2001  thorpej Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
 1.73  31-Mar-2001  enami Remove unnecessary test of tp->t_linesw against NULL; they are results
of confusion while correcting compilation error after t_line is
replaced with t_linesw.
 1.72  17-Jan-2001  thorpej branches: 1.72.2;
Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.

Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach(). Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).

Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach(). Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.

While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).
 1.71  15-Jan-2001  thorpej For SLIP/STRIP/PPP, use generic soft interrupts, if available.
 1.70  12-Jan-2001  thorpej After freeing the input buffer, set the pointer to it to NULL.
 1.69  12-Jan-2001  thorpej Don't use splimp() to block both net and tty interrupts. Instead,
block both interrupt levels as appropriate.
 1.68  11-Jan-2001  thorpej Plug a memory leak.
 1.67  11-Jan-2001  thorpej Defer output processing to the software interrupt.
 1.66  10-Jan-2001  thorpej Move the VJ uncompress code into the software interrupt.
 1.65  09-Jan-2001  thorpej Once we have a complete frame, schedule a SLIP software interrupt,
and manipulate ipintrq from there. This will allow us to clean up
the use of splimp() in this file later.
 1.64  09-Jan-2001  thorpej Make the buffer management in SLIP just a little less evil.
 1.63  18-Dec-2000  thorpej ALTQ'ify.
 1.62  18-Dec-2000  thorpej Fill in if_dlt.
 1.61  12-Dec-2000  thorpej Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.
 1.60  02-Nov-2000  itohy Set the default line discipline to t_linesw, rather than just NULL it.
 1.59  02-Nov-2000  itohy Adapt to the new line discipline scheme.
 1.58  12-Jul-2000  thorpej NetBSD -> __NetBSD__ in an #ifdef, and nuke sc_bpf; there's one in
the ifnet already.
 1.57  30-Mar-2000  augustss Kill some more register declarations.
 1.56  29-Mar-2000  simonb Don't need to include <sys/conf.h> here.
 1.55  27-Mar-1999  dbj branches: 1.55.8;
fixes to compile if NBPFILTER == 0
 1.54  25-Mar-1999  tron Make it possible to set MTU via "ifconfig" at run time. "SLMTU" is now
used to set the initial value.
 1.53  06-Oct-1998  kleink branches: 1.53.4;
Use #error instead of causing parse errors; noticed by Heiko.
 1.52  26-Aug-1998  mrg use __NetBSD__ not NetBSD
 1.51  06-Jul-1998  jtk use #ifdef INET so this compiles again
 1.50  05-Jul-1998  jonathan defopt INET, NETATALK.
 1.49  23-Mar-1998  enami Add missing comma.
 1.48  23-Mar-1998  fair add the ability to run SLIP with CLOCAL set, per PR#3586
 1.47  01-Mar-1998  fvdl Merge with Lite2 + local changes
 1.46  17-May-1997  christos Update to ppp-2.3b5
 1.45  27-Mar-1997  thorpej Update for the new mbuf code, in a slighly kludgy way. Basically, these
drivers played a somewhat evil trick with clusters, which is now
replaced by a somewhat evil trick with regular malloc'd memory.
 1.44  13-Oct-1996  christos backout previous kprintf change
 1.43  10-Oct-1996  christos - printf -> kprintf, sprintf -> ksprintf
 1.42  09-Aug-1996  mrg use sc_unit instead of pointer arthimetic.
 1.41  10-Jul-1996  cgd print difference between pointers with %ld, so that -Wformat works
on the Alpha and for consistency. Also, other minor formatting cleanups.
 1.40  02-Jun-1996  thorpej Move a mis-placed line on slattach() so that SLIOCGUNIT works properly.
From Jonathan O'Brien <obrien@phoenix.sfsu.edu>.
 1.39  07-May-1996  thorpej branches: 1.39.4;
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.38  13-Feb-1996  christos Net prototypes
 1.37  12-Aug-1995  mycroft splnet --> splsoftnet
 1.36  13-Jun-1995  mycroft There's no reason to set if_next here.
 1.35  21-Mar-1995  mycroft Update to use timer{add,sub}().
 1.34  08-Mar-1995  cgd fixed sized types, where appropriate. when casting pointers to
integers to do math on them, cast to long. ioctl commands are
u_longs.
 1.33  11-Dec-1994  mycroft timevalsub --> __timersub
 1.32  30-Oct-1994  cgd be more careful with types, also pull in headers where necessary.
 1.31  16-Jul-1994  cgd use NetBSD (defined in param.h) not __NetBSD__ to allow x-compilation
with native compiler.
 1.30  15-Jul-1994  cgd kill bogus external declaration of time
 1.29  29-Jun-1994  cgd branches: 1.29.2;
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
 1.28  13-May-1994  mycroft Update to 4.4-Lite networking code, with a few local changes.
 1.27  08-Mar-1994  cgd Some stability/safety/extensibility patches. Inspired by Christoph Badura.
Always make sure our buffer is large enough, and restart hung lines.
 1.26  10-Feb-1994  cgd mccanne convinced me that slip.h *should* exist. this is what
i "implemented" for 4.4, and the adjustments to the other files to
match.
 1.25  05-Feb-1994  mycroft Remove an #ifdef we no longer need.
 1.24  02-Feb-1994  hpeyerl Multicast is no longer optional
 1.23  08-Jan-1994  cgd quench the grammar flames!
 1.22  20-Dec-1993  cgd serious cleanup
 1.21  19-Dec-1993  cgd include machine/cpu.h, for machines which define soft interrupt stuff
there. marked XXX; they prolly shouldn't do that...
 1.20  18-Dec-1993  mycroft Canonicalize all #includes.
 1.19  10-Dec-1993  cgd move slip compression configuration into the interface flags,
and diddle a couple of related things.
 1.18  06-Dec-1993  hpeyerl multicast support.
From Chris Maeda, cmaeda@cs.washington.edu
These patches are derived from the IP Multicast patches for BSDI.
 1.17  09-Nov-1993  glass T_LINEP member of struct tty becomes t_sc. This replaces the
#define t_sc T_LINEP
that appear in tty_tb.c, if_sl.c, and if_ppp.h
 1.16  31-Oct-1993  glass removed slip and ppp specific prototypes from tty.h where they didn't belong.
moved them to tty_conf.c within #if Nwhatever > 0 where they do belong.
made sure that if_sl.c, and if_ppp.c still compile quietly.
 1.15  02-Oct-1993  mycroft Call output routine redundantly to possible avoid some hangs due to missed
interrupts.
 1.14  02-Oct-1993  mycroft Ignore carrier if not using hardware carrier detect (i.e. CLOCAL is set).
 1.13  23-Sep-1993  mycroft Ignore TS_CARR_ON when CLOCAL is set.
 1.12  09-Aug-1993  deraadt branches: 1.12.2;
add an additional suser() check.
regular users should not be able to change slip interface characteristics!
 1.11  01-Aug-1993  mycroft Add RCS identifiers (this time on the correct side of the branch), and
incorporate recent changes in netbsd-0-9 branch.
 1.10  12-Jul-1993  mycroft Change tty code to use clist interface, but with ring buffer implementation.
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.
 1.9  27-Jun-1993  andrew ANSIfications - removed all implicit function return types and argument
definitions. Ensured that all files include "systm.h" to gain access to
general prototypes. Casts where necessary.
 1.8  22-May-1993  cgd add include of select.h if necessary for protos, or delete if extraneous
 1.7  18-May-1993  cgd make kernel select interface be one-stop shopping & clean it all up.
 1.6  10-May-1993  deraadt ring buffer now uses rbchar's (shorts) instead of chars.
 1.5  09-Apr-1993  cgd bump slip MTU back down to 296...
 1.4  25-Mar-1993  cgd one line got botched during bpf patch installation
 1.3  25-Mar-1993  cgd added BPF support, as provided by David Greenman (davidg@implode.rain.com)
 1.2  21-Mar-1993  cgd after 0.2.2 "stable" patches applied
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  01-Mar-1998  fvdl Import 4.4BSD-Lite2
 1.1.1.2  01-Mar-1998  fvdl Import 4.4BSD-Lite for reference
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.2.9  10-Dec-1993  cgd update from trunk
 1.12.2.8  14-Nov-1993  mycroft T_LINEP --> t_sc, from trunk.
 1.12.2.7  14-Nov-1993  mycroft Canonicalize all #includes.
 1.12.2.6  03-Nov-1993  mycroft Add prototypes for slioctl(), sloutput(), and slstart(), to eliminate compiler
warnings.
 1.12.2.5  18-Oct-1993  mycroft Remove bogus declaration of ttrstrt(), as it is now in tty.h.
 1.12.2.4  16-Oct-1993  mycroft Nuke references to machine/mtpr.h.
 1.12.2.3  06-Oct-1993  mycroft Merge changes from trunk.
 1.12.2.2  24-Sep-1993  mycroft Make all files using spl*() #include cpu.h. Changes from trunk.
 1.12.2.1  23-Sep-1993  mycroft Ignore TS_CARR_ON when CLOCAL is set.
 1.29.2.2  16-Jul-1994  cgd update from trunk
 1.29.2.1  15-Jul-1994  cgd updates from trunk. basically, C language errors.
 1.39.4.2  26-Jan-1997  rat Pullup 1.41 -> 1.42. Use sc_unit instead of pointer arthimetic.
 1.39.4.1  02-Jun-1996  thorpej Pull up mis-placed line fix from trunk.
 1.53.4.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.55.8.6  21-Apr-2001  bouyer Sync with HEAD
 1.55.8.5  18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.55.8.4  05-Jan-2001  bouyer Sync with HEAD
 1.55.8.3  13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.55.8.2  22-Nov-2000  bouyer Sync with HEAD.
 1.55.8.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.72.2.10  17-Sep-2002  nathanw Catch up to -current.
 1.72.2.9  12-Jul-2002  nathanw No longer need to pull in lwp.h; proc.h pulls it in for us.
 1.72.2.8  24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.72.2.7  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.72.2.6  28-Feb-2002  nathanw Catch up to -current.
 1.72.2.5  14-Nov-2001  nathanw Catch up to -current.
 1.72.2.4  24-Aug-2001  nathanw Catch up with -current.
 1.72.2.3  21-Jun-2001  nathanw Catch up to -current.
 1.72.2.2  09-Apr-2001  nathanw Catch up with -current.
 1.72.2.1  05-Mar-2001  nathanw Initial commit of scheduler activations and lightweight process support.
 1.76.2.5  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.76.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.76.2.3  11-Feb-2002  jdolecek Sync w/ -current.
 1.76.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.76.2.1  03-Aug-2001  lukem update to -current
 1.77.2.1  07-Sep-2001  thorpej Commit my "devvp" changes to the thorpej-devvp branch. This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).
 1.83.2.8  11-Dec-2005  christos Sync with head.
 1.83.2.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.83.2.6  01-Apr-2005  skrll Sync with HEAD.
 1.83.2.5  18-Dec-2004  skrll Sync with HEAD.
 1.83.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.83.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.83.2.2  25-Aug-2004  skrll Sync with HEAD.
 1.83.2.1  03-Aug-2004  skrll Sync with HEAD
 1.90.4.1  29-Apr-2005  kent sync with -current
 1.91.2.7  11-Feb-2008  yamt sync with head.
 1.91.2.6  15-Nov-2007  yamt sync with head.
 1.91.2.5  27-Oct-2007  yamt sync with head.
 1.91.2.4  03-Sep-2007  yamt sync with head.
 1.91.2.3  26-Feb-2007  yamt sync with head.
 1.91.2.2  30-Dec-2006  yamt sync with head.
 1.91.2.1  21-Jun-2006  yamt sync with head.
 1.92.6.1  29-Nov-2005  yamt sync with head.
 1.95.6.3  01-Jun-2006  kardel Sync with head.
 1.95.6.2  22-Apr-2006  simonb Sync with head.
 1.95.6.1  04-Feb-2006  simonb Adapt for timecounters: mostly use get*time(), use bintime's for timeout
calculations and use "time_second" instead of "time.tv_sec".
 1.95.4.1  09-Sep-2006  rpaulo sync with head
 1.96.6.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.96.4.3  06-May-2006  christos - Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
that need it.

Approved by core.
 1.96.4.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.96.4.1  08-Mar-2006  elad Adapt to kernel authorization KPI.
 1.96.2.3  11-Aug-2006  yamt sync with head
 1.96.2.2  26-Jun-2006  yamt sync with head.
 1.96.2.1  24-May-2006  yamt sync with head.
 1.97.2.1  19-Jun-2006  chap Sync with head.
 1.98.2.1  13-Jul-2006  gdamore Merge from HEAD.
 1.100.6.2  10-Dec-2006  yamt sync with head.
 1.100.6.1  22-Oct-2006  yamt sync with head
 1.100.4.2  12-Jan-2007  ad Sync with head.
 1.100.4.1  18-Nov-2006  ad Sync with head.
 1.103.2.2  12-Mar-2007  rmind Sync with HEAD.
 1.103.2.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.105.2.4  09-Oct-2007  ad Sync with head.
 1.105.2.3  15-Jul-2007  ad Sync with head.
 1.105.2.2  15-Jul-2007  ad Sync with head.
 1.105.2.1  17-Jun-2007  ad - Increase the number of thread priorities from 128 to 256. How the space
is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
is provided, with hooks for fast-path MD code that can run the interrupt
threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.
 1.106.8.3  23-Mar-2008  matt sync with HEAD
 1.106.8.2  09-Jan-2008  matt sync with HEAD
 1.106.8.1  06-Nov-2007  matt sync with HEAD
 1.106.6.3  11-Nov-2007  joerg Sync with HEAD.
 1.106.6.2  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.106.6.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.106.2.1  03-Sep-2007  skrll Sync with HEAD.
 1.107.2.1  14-Oct-2007  yamt sync with head.
 1.108.4.2  18-Feb-2008  mjf Sync with HEAD.
 1.108.4.1  19-Nov-2007  mjf Sync with HEAD.
 1.108.2.1  13-Nov-2007  bouyer Sync with HEAD
 1.110.8.2  17-Jun-2008  yamt sync with head.
 1.110.8.1  18-May-2008  yamt sync with head.
 1.110.6.3  17-Jan-2009  mjf Sync with HEAD.
 1.110.6.2  29-Jun-2008  mjf Sync with HEAD.
 1.110.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.111.6.1  18-Jun-2008  simonb Sync with head.
 1.111.4.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.111.2.4  11-Aug-2010  yamt sync with head.
 1.111.2.3  11-Mar-2010  yamt sync with head
 1.111.2.2  16-May-2009  yamt sync with head
 1.111.2.1  04-May-2009  yamt sync with head.
 1.112.4.1  19-Jan-2009  skrll Sync with HEAD.
 1.112.2.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.114.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.116.4.1  30-May-2010  rmind sync with head
 1.116.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.118.26.1  10-Aug-2014  tls Rebase.
 1.118.12.2  03-Dec-2017  jdolecek update from HEAD
 1.118.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.119.4.6  28-Aug-2017  skrll Sync with HEAD
 1.119.4.5  05-Oct-2016  skrll Sync with HEAD
 1.119.4.4  09-Jul-2016  skrll Sync with HEAD
 1.119.4.3  29-May-2016  skrll Sync with HEAD
 1.119.4.2  22-Apr-2016  skrll Sync with HEAD
 1.119.4.1  22-Sep-2015  skrll Sync with HEAD
 1.124.2.2  26-Apr-2017  pgoyette Sync with HEAD
 1.124.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.127.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.128.10.3  26-Jan-2019  pgoyette Sync with HEAD
 1.128.10.2  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.128.10.1  22-Apr-2018  pgoyette Sync with HEAD
 1.129.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.129.2.1  10-Jun-2019  christos Sync with HEAD
 1.131.6.1  29-Feb-2020  ad Sync with head.
 1.136.6.2  16-Nov-2023  thorpej IFQ_CLASSIFY() -> ifq_classify_packet().
 1.136.6.1  15-Nov-2023  thorpej Rename ifq_enqueue() -> if_enqueue(), ifq_enqueue2() -> if_enqueue2().

RSS XML Feed