The NetBSD Project

CVS log for src/sys/net/if_tun.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.139.2.5 / (download) - annotate - [select for diffs], Mon Mar 11 19:31:31 2024 UTC (2 weeks, 3 days ago) by martin
Branch: netbsd-8
Changes since 1.139.2.4: +3 -5 lines
Diff to previous 1.139.2.4 (colored) to branchpoint 1.139 (colored) next main 1.140 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1946):

	sys/net/if_tun.c: revision 1.175

tun(4): Allow IPv6 packets with TUNSLMODE configured.
PR kern/58013

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Mon Mar 11 19:30:06 2024 UTC (2 weeks, 3 days ago) by martin
Branch: netbsd-9
Changes since 1.156: +3 -5 lines
Diff to previous 1.156 (colored) next main 1.157 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1815):

	sys/net/if_tun.c: revision 1.175

tun(4): Allow IPv6 packets with TUNSLMODE configured.
PR kern/58013

Revision 1.173.4.2 / (download) - annotate - [select for diffs], Mon Mar 11 19:28:45 2024 UTC (2 weeks, 3 days ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6
Changes since 1.173.4.1: +3 -5 lines
Diff to previous 1.173.4.1 (colored) to branchpoint 1.173 (colored) next main 1.174 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by riastradh in ticket #627):

	sys/net/if_tun.c: revision 1.175

tun(4): Allow IPv6 packets with TUNSLMODE configured.
PR kern/58013

Revision 1.175 / (download) - annotate - [select for diffs], Sat Mar 9 13:55:27 2024 UTC (2 weeks, 5 days ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.174: +3 -5 lines
Diff to previous 1.174 (colored) to selected 1.173 (colored)

tun(4): Allow IPv6 packets with TUNSLMODE configured.

PR kern/58013

Revision 1.173.4.1 / (download) - annotate - [select for diffs], Sun Jan 14 15:18:37 2024 UTC (2 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3
Changes since 1.173: +3 -2 lines
Diff to previous 1.173 (colored)

Pull up following revision(s) (requested by chs in ticket #540):

	sys/net/if_tun.c: revision 1.174

tun: add missing kpreempt_enable() if pktq_enqueue() fails

Revision 1.174 / (download) - annotate - [select for diffs], Fri Dec 29 23:01:02 2023 UTC (2 months, 4 weeks ago) by chs
Branch: MAIN
Changes since 1.173: +3 -2 lines
Diff to previous 1.173 (colored)

tun: add missing kpreempt_enable() if pktq_enqueue() fails

Revision 1.173.8.1 / (download) - annotate - [select for diffs], Thu Nov 16 04:30:22 2023 UTC (4 months, 1 week ago) by thorpej
Branch: thorpej-ifq
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored) next main 1.174 (colored)

IFQ_CLASSIFY() -> ifq_classify_packet().

Revision 1.173 / (download) - annotate - [selected], Mon Mar 28 12:33:22 2022 UTC (2 years ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: thorpej-ifq, netbsd-10
Changes since 1.172: +3 -10 lines
Diff to previous 1.172 (colored)

driver(9): devsw_detach never fails.  Make it return void.

Prune a whole lotta dead branches as a result of this.  (Some logic
calling this is also wrong for other reasons; devsw_detach is final
-- you should never have any reason to decide to roll it back.  To be
cleaned up in subsequent commits...)

XXX kernel ABI change to devsw_detach signature requires bump

Revision 1.172 / (download) - annotate - [select for diffs], Tue Mar 15 00:05:17 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.171: +4 -2 lines
Diff to previous 1.171 (colored) to selected 1.173 (colored)

tun(4): Fix bug introduced in previous locking change.

Now that tun_lock runs at IPL_NONE, taking it does not have the side
effect of disabling preemption, but pktq_enqueue assumes the caller
has disabled preemption so it can safely schedule a softint.

This isn't a problem in most physical network drivers because the
pktq_enqueue call happens from within the driver's softint context
anyway.  But tun(4) is special -- here, the pktq_enqueue is triggered
by a userland write to the device, which is in thread context.  So
let's just disable preemption in tunwrite.

Reported-by: syzbot+21c2cb300f1ec2162b35@syzkaller.appspotmail.com

Revision 1.171 / (download) - annotate - [select for diffs], Sun Mar 13 21:42:39 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.170: +8 -3 lines
Diff to previous 1.170 (colored) to selected 1.173 (colored)

tun(4): Fix some error branches in tunwrite.

Revision 1.170 / (download) - annotate - [select for diffs], Sun Mar 13 21:32:43 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.169: +5 -19 lines
Diff to previous 1.169 (colored) to selected 1.173 (colored)

tun(4): Omit TUN_RWAIT micro-optimization.

cv_broadcast aleady has a fast path for no-waiters.

Revision 1.169 / (download) - annotate - [select for diffs], Sun Mar 13 21:32:35 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.168: +4 -6 lines
Diff to previous 1.168 (colored) to selected 1.173 (colored)

tun(4): Deliver SIGIO for hangup under tun_lock.

Otherwise, tp->tun_pgid is not stable.

Revision 1.168 / (download) - annotate - [select for diffs], Sun Mar 13 21:32:27 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.167: +3 -3 lines
Diff to previous 1.167 (colored) to selected 1.173 (colored)

tun(4): Reduce lock from IPL_NET to IPL_SOFTNET.

This is never taken from hardware interrupt handlers any more, as far
as I can tell -- only SOFTINT_NET soft interrupt handlers.

This avoids trying to take an adaptive lock, proc_lock, in fownsignal
while holding a spin lock.  Unfortunately, it doesn't entirely fix the
problem -- proc_lock is at IPL_NONE, and is held across some not
entirely trivial computations like allocating a new pid table.  So it
would really be better if we had some way to deliver SIGIO without
taking proc_lock.

Reported-by: syzbot+3dd54993d3e92e697e72@syzkaller.appspotmail.com
Reported-by: syzbot+aca29415f2f0bf23f082@syzkaller.appspotmail.com

Revision 1.167 / (download) - annotate - [select for diffs], Sun Mar 13 21:32:15 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.166: +3 -3 lines
Diff to previous 1.166 (colored) to selected 1.173 (colored)

tun(4): Reduce tun_softc_lock from IPL_NET to IPL_NONE.

This is always taken in process/thread context, never in interrupt
context, hard or soft.

Revision 1.166 / (download) - annotate - [select for diffs], Sun Mar 13 21:32:07 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.165: +59 -27 lines
Diff to previous 1.165 (colored) to selected 1.173 (colored)

tun(4): Factor out setup/teardown into separate routines.

- Reduce duplication.
- Plug softint leak on recycling tun.

(This recycling business seems kinda sketchy...)

Revision 1.165 / (download) - annotate - [select for diffs], Sun Mar 13 21:31:47 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.164: +3 -2 lines
Diff to previous 1.164 (colored) to selected 1.173 (colored)

tun(4): Add missing cv_destroy in tunclose.

Revision 1.164 / (download) - annotate - [select for diffs], Sun Sep 26 15:58:33 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.163: +5 -14 lines
Diff to previous 1.163 (colored) to selected 1.173 (colored)

Use seltrue_filtops rather than rolling our own with filt_seltrue.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:10 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.162: +4 -4 lines
Diff to previous 1.162 (colored) to selected 1.173 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:04 2021 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.161: +4 -7 lines
Diff to previous 1.161 (colored) next main 1.162 (colored) to selected 1.173 (colored)

Sync w/ HEAD.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Dec 18 01:31:49 2020 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.161: +4 -7 lines
Diff to previous 1.161 (colored) to selected 1.173 (colored)

Use sel{record,remove}_knote().

Revision 1.161 / (download) - annotate - [select for diffs], Sun Sep 27 19:25:54 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.160: +7 -3 lines
Diff to previous 1.160 (colored) to selected 1.173 (colored)

tun: Report link state based on if the interface has been opened or not

This mirrors tap(4).

Revision 1.160 / (download) - annotate - [select for diffs], Sat Aug 29 07:14:50 2020 UTC (3 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.159: +3 -6 lines
Diff to previous 1.159 (colored) to selected 1.173 (colored)

Correct my rev1.159, it was incomplete, the check must be done later
because the value can change in the meantime (and get set to zero).

Revision 1.159 / (download) - annotate - [select for diffs], Tue Jun 23 18:30:17 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
Changes since 1.158: +5 -2 lines
Diff to previous 1.158 (colored) to selected 1.173 (colored)

Hum. Fix NULL deref triggerable with just write(0).

Reported-by: syzbot+45b31355bf880e175b73@syzkaller.appspotmail.com

Revision 1.144.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:57 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.144.2.1: +9 -18 lines
Diff to previous 1.144.2.1 (colored) to branchpoint 1.144 (colored) next main 1.145 (colored) to selected 1.173 (colored)

Merge changes from current as of 20200406

Revision 1.157.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:06 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.157: +8 -17 lines
Diff to previous 1.157 (colored) next main 1.158 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.158 / (download) - annotate - [select for diffs], Wed Jan 29 04:34:10 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.157: +8 -17 lines
Diff to previous 1.157 (colored) to selected 1.173 (colored)

Adopt <net/if_stats.h>.

Revision 1.157 / (download) - annotate - [select for diffs], Fri Dec 13 14:13:55 2019 UTC (4 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored) to selected 1.173 (colored)

Read the len before pushing the packet, otherwise possible use-after-free.
Found by a custom query on LGTM.

Revision 1.144.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:45 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.144: +40 -27 lines
Diff to previous 1.144 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.156 / (download) - annotate - [select for diffs], Fri Apr 26 08:38:25 2019 UTC (4 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored) to selected 1.173 (colored)

Set the "required modules" to NULL, not to an empty string.

It really doesn't make that much difference to the code, but the output
from modstat(8) is different!  (With an empty string in the MODULE() macro
modstat reports an empty string, but with a NULL in the macro, modstat
prints a '-' just like it does for other "empty" fields.)

Revision 1.155 / (download) - annotate - [select for diffs], Mon Mar 25 10:04:48 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.154: +5 -3 lines
Diff to previous 1.154 (colored) to selected 1.173 (colored)

in tundetach(), error is only used #ifdef _MODULE so wrap its declaration.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Mar 25 09:07:24 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.153: +18 -11 lines
Diff to previous 1.153 (colored) to selected 1.173 (colored)

Resequence the stuff in tundetach() to ensure that no new device units
can be created by either 'ifconfig create' or 'open("/dev/tun0")' paths.

Note: previous efforts at fixing 'modunload if_tun' are abandoned, since
there is no bug.  Just need to ensure that the cloned interface is both
close(1)d _and_ 'ifconfig tunx destroy' before trying to unload.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Mar 25 04:06:36 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
Changes since 1.152: +3 -3 lines
Diff to previous 1.152 (colored) to selected 1.173 (colored)

 Revert rev. 1.151 and 1.152 to avoid compile error. Requested by pgoyette.

Revision 1.152 / (download) - annotate - [select for diffs], Mon Mar 25 02:58:28 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored) to selected 1.173 (colored)

Use correct list name

Revision 1.151 / (download) - annotate - [select for diffs], Mon Mar 25 01:06:34 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.150: +3 -3 lines
Diff to previous 1.150 (colored) to selected 1.173 (colored)

This should do it!

Remove the zombie unit from the zombie list, not the regular list!

Revision 1.150 / (download) - annotate - [select for diffs], Mon Mar 25 01:01:29 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.149: +2 -3 lines
Diff to previous 1.149 (colored) to selected 1.173 (colored)

And revert both of the previous.  It seems that the structure has
already been removed from the list in the find_zunit() code.

So now, off to really find out why the module won't unload.

Revision 1.149 / (download) - annotate - [select for diffs], Mon Mar 25 00:59:04 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored) to selected 1.173 (colored)

Fix previous - remove it from the list before freeing the memory.

Revision 1.148 / (download) - annotate - [select for diffs], Mon Mar 25 00:55:28 2019 UTC (5 years ago) by pgoyette
Branch: MAIN
Changes since 1.147: +3 -2 lines
Diff to previous 1.147 (colored) to selected 1.173 (colored)

If the unit being closed was a "zombie" (ie, the interface was destroyed
previously), remove it from the zombie list after freeing all of its
resources.

This should allow the module to be unloaded even if there was a zombie
at some point.  Without this change, the zombie list never gets emptied.

Revision 1.142.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:44 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.142.2.2: +20 -16 lines
Diff to previous 1.142.2.2 (colored) to branchpoint 1.142 (colored) next main 1.143 (colored) to selected 1.173 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.147 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.146: +4 -4 lines
Diff to previous 1.146 (colored) to selected 1.173 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.139.2.4 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:30 2018 UTC (5 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.139.2.3: +18 -14 lines
Diff to previous 1.139.2.3 (colored) to branchpoint 1.139 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #974):

	sys/net/if_tun.c: revision 1.145
	sys/net/if_tun.c: revision 1.146

tun: fix locking against myself

filt_tunread is called with tun_lock held from tun_output (via tun_output =>
selnotify => knote), so we must not take tun_lock in filt_tunread.  The bug
is triggered only if a tun is used through kqueue.

Found by k-goda@IIJ

Fix tun(4) kevent locking

filt_tunread gets called in two contexts:
- by calls to selnotify in if_tun.c (or knote, as the case may be,
  but not here), in which case tp->tun_lock is held; and
- by internal logic in kevent, in which tp->tun_lock is not held.

The standard convention to discriminate between these two cases is by
setting the kernel-only NOTE_SUBMIT bit in the hint to selnotify or
knote; then in filt_*:

        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_enter(&tp->tun_lock);
        ...
        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_exit(&tp->tun_lock);

Pointed out by and patch from riastradh@
Tested by ozaki-r@ (only the former path)

Revision 1.146 / (download) - annotate - [select for diffs], Mon Aug 6 03:58:59 2018 UTC (5 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.145: +18 -11 lines
Diff to previous 1.145 (colored) to selected 1.173 (colored)

Fix tun(4) kevent locking

filt_tunread gets called in two contexts:

- by calls to selnotify in if_tun.c (or knote, as the case may be,
  but not here), in which case tp->tun_lock is held; and

- by internal logic in kevent, in which tp->tun_lock is not held.

The standard convention to discriminate between these two cases is by
setting the kernel-only NOTE_SUBMIT bit in the hint to selnotify or
knote; then in filt_*:

        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_enter(&tp->tun_lock);
        ...
        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_exit(&tp->tun_lock);

Pointed out by and patch from riastradh@
Tested by ozaki-r@ (only the former path)

Revision 1.145 / (download) - annotate - [select for diffs], Fri Aug 3 09:54:40 2018 UTC (5 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.144: +5 -8 lines
Diff to previous 1.144 (colored) to selected 1.173 (colored)

tun: fix locking against myself

filt_tunread is called with tun_lock held from tun_output (via tun_output =>
selnotify => knote), so we must not take tun_lock in filt_tunread.  The bug
is triggered only if a tun is used through kqueue.

Found by k-goda@IIJ

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:10 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.142.2.1: +4 -4 lines
Diff to previous 1.142.2.1 (colored) to branchpoint 1.142 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.144 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:02 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728
Branch point for: phil-wifi
Changes since 1.143: +4 -4 lines
Diff to previous 1.143 (colored) to selected 1.173 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:51 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.142: +15 -5 lines
Diff to previous 1.142 (colored) to selected 1.173 (colored)

Synch with HEAD, resolve conflicts

Revision 1.139.2.3 / (download) - annotate - [select for diffs], Sat Mar 17 11:26:44 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.139.2.2: +15 -5 lines
Diff to previous 1.139.2.2 (colored) to branchpoint 1.139 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by tih in ticket #638):
	sys/net/if_tun.c: revision 1.143

Add packet filtering to tun(4) interfaces.

Calls to pfil_run_hooks() were missing in if_tun.c.  This meant that
filtering configuration could be added to e.g. /etc/npf.conf, but
would be ignored, because the filter never saw the packets.  This
change adds the required calls.

While here, correct the return value from tun_output(): it's been
returning 0 regardless of any error condition present, but will now
correctly propagate such information upward.

Thanks to maxv for guidance!
OK: christos, martin

Revision 1.143 / (download) - annotate - [select for diffs], Fri Mar 16 17:12:04 2018 UTC (6 years ago) by tih
Branch: MAIN
CVS Tags: pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Changes since 1.142: +15 -5 lines
Diff to previous 1.142 (colored) to selected 1.173 (colored)

Add packet filtering to tun(4) interfaces.

Calls to pfil_run_hooks() were missing in if_tun.c.  This meant that
filtering configuration could be added to e.g. /etc/npf.conf, but
would be ignored, because the filter never saw the packets.  This
change adds the required calls.

While here, correct the return value from tun_output(): it's been
returning 0 regardless of any error condition present, but will now
correctly propagate such information upward.

Thanks to maxv for guidance!

OK: christos, martin

Revision 1.139.2.2 / (download) - annotate - [select for diffs], Tue Jan 2 10:20:33 2018 UTC (6 years, 2 months ago) by snj
Branch: netbsd-8
Changes since 1.139.2.1: +3 -4 lines
Diff to previous 1.139.2.1 (colored) to branchpoint 1.139 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #456):
	sys/arch/arm/sunxi/sunxi_emac.c: 1.9
	sys/dev/ic/dwc_gmac.c: 1.43-1.44
	sys/dev/pci/if_iwm.c: 1.75
	sys/dev/pci/if_wm.c: 1.543
	sys/dev/pci/ixgbe/ixgbe.c: 1.112
	sys/dev/pci/ixgbe/ixv.c: 1.74
	sys/kern/sys_socket.c: 1.75
	sys/net/agr/if_agr.c: 1.43
	sys/net/bpf.c: 1.219
	sys/net/if.c: 1.397, 1.399, 1.401-1.403, 1.406-1.410, 1.412-1.416
	sys/net/if.h: 1.242-1.247, 1.250, 1.252-1.257
	sys/net/if_bridge.c: 1.140 via patch, 1.142-1.146
	sys/net/if_etherip.c: 1.40
	sys/net/if_ethersubr.c: 1.243, 1.246
	sys/net/if_faith.c: 1.57
	sys/net/if_gif.c: 1.132
	sys/net/if_l2tp.c: 1.15, 1.17
	sys/net/if_loop.c: 1.98-1.101
	sys/net/if_media.c: 1.35
	sys/net/if_pppoe.c: 1.131-1.132
	sys/net/if_spppsubr.c: 1.176-1.177
	sys/net/if_tun.c: 1.142
	sys/net/if_vlan.c: 1.107, 1.109, 1.114-1.121
	sys/net/npf/npf_ifaddr.c: 1.3
	sys/net/npf/npf_os.c: 1.8-1.9
	sys/net/rtsock.c: 1.230
	sys/netcan/if_canloop.c: 1.3-1.5
	sys/netinet/if_arp.c: 1.255
	sys/netinet/igmp.c: 1.65
	sys/netinet/in.c: 1.210-1.211
	sys/netinet/in_pcb.c: 1.180
	sys/netinet/ip_carp.c: 1.92, 1.94
	sys/netinet/ip_flow.c: 1.81
	sys/netinet/ip_input.c: 1.362
	sys/netinet/ip_mroute.c: 1.147
	sys/netinet/ip_output.c: 1.283, 1.285, 1.287
	sys/netinet6/frag6.c: 1.61
	sys/netinet6/in6.c: 1.251, 1.255
	sys/netinet6/in6_pcb.c: 1.162
	sys/netinet6/ip6_flow.c: 1.35
	sys/netinet6/ip6_input.c: 1.183
	sys/netinet6/ip6_output.c: 1.196
	sys/netinet6/mld6.c: 1.90
	sys/netinet6/nd6.c: 1.239-1.240
	sys/netinet6/nd6_nbr.c: 1.139
	sys/netinet6/nd6_rtr.c: 1.136
	sys/netipsec/ipsec_output.c: 1.65
	sys/rump/net/lib/libnetinet/netinet_component.c: 1.9-1.10
kmem_intr_free kmem_intr_[z]alloced memory
the underlying pools are the same but api-wise those should match
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE
If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.
This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.
Proposed on tech-kern@ and tech-net@
Ensure to hold if_ioctl_lock when calling if_flags_set
Fix locking against myself on ifpromisc
vlan_unconfig_locked could be called with holding if_ioctl_lock.
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes
And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)
Ensure to hold if_ioctl_lock on if_up and if_down
One exception for if_down is if_detach; in the case the lock isn't needed
because it's guaranteed that no other one can access ifp at that point.
Make if_link_queue MP-safe if IFEF_MPSAFE
if_link_queue is a queue to store events of link state changes, which is
used to pass events from (typically) an interrupt handler to
if_link_state_change softint. The queue was protected by KERNEL_LOCK so far,
but if IFEF_MPSAFE is enabled, it becomes unsafe because (perhaps) an interrupt
handler of an interface with IFEF_MPSAFE doesn't take KERNEL_LOCK. Protect it
by a spin mutex.
Additionally with this change KERNEL_LOCK of if_link_state_change softint is
omitted if NET_MPSAFE is enabled.
Note that the spin mutex is now ifp->if_snd.ifq_lock as well as the case of
if_timer (see the comment).
Use IFADDR_WRITER_FOREACH instead of IFADDR_READER_FOREACH
At that point no other one modifies the list so IFADDR_READER_FOREACH
is unnecessary. Use of IFADDR_READER_FOREACH is harmless in general though,
if we try to detect contract violations of pserialize, using it violates
the contract. So avoid using it makes life easy.
Ensure to call if_addr_init with holding if_ioctl_lock
Get rid of outdated comments
Fix build of kernels without ether
By throwing out if_enable_vlan_mtu and if_disable_vlan_mtu that
created a unnecessary dependency from if.c to if_ethersubr.c.
PR kern/52790
Rename IFNET_LOCK to IFNET_GLOBAL_LOCK
IFNET_LOCK will be used in another lock, if_ioctl_lock (might be renamed then).
Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
  destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
  pr_purgeif (otherwise destruction procedures can be tricky)
Ensure to call if_mcast_op with holding IFNET_LOCK
Note that CARP doesn't deal with IFNET_LOCK yet.
Remove IFNET_GLOBAL_LOCK where it's unnecessary because IFNET_LOCK is held
Describe which lock is used to protect each member variable of struct ifnet
Requested by skrll@
Write a guideline for converting an interface to IFEF_MPSAFE
Requested by skrll@
Note that IFNET_LOCK must not be held in softint
Don't set IFEF_MPSAFE unless NET_MPSAFE at this point
Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.
Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.

Revision 1.142 / (download) - annotate - [select for diffs], Wed Dec 6 07:40:16 2017 UTC (6 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.141: +3 -4 lines
Diff to previous 1.141 (colored) to selected 1.173 (colored)

Ensure to not turn on IFF_RUNNING of an interface until its initialization completes

And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)

Revision 1.115.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.115.6.1: +198 -186 lines
Diff to previous 1.115.6.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored) to selected 1.173 (colored)

update from HEAD

Revision 1.139.2.1 / (download) - annotate - [select for diffs], Wed Nov 8 22:20:59 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
Changes since 1.139: +3 -2 lines
Diff to previous 1.139 (colored) to selected 1.173 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #349):
	sys/net/if_l2tp.c: revision 1.14
	sys/net/if_tap.c: revision 1.101
	sys/net/if_tun.c: revision 1.141
	sys/net/if_vlan.c: revision 1.106
Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use
if_link_state_change

Revision 1.141 / (download) - annotate - [select for diffs], Mon Oct 30 16:01:19 2017 UTC (6 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored) to selected 1.173 (colored)

Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change

Revision 1.140 / (download) - annotate - [select for diffs], Wed Oct 25 08:12:40 2017 UTC (6 years, 5 months ago) by maya
Branch: MAIN
Changes since 1.139: +14 -6 lines
Diff to previous 1.139 (colored) to selected 1.173 (colored)

Use C99 initializer for filterops

Mostly done with spatch with touchups for indentation

@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- 	{ a, b, c, d
+ 	{
+ 	.f_isfd = a,
+ 	.f_attach = b,
+ 	.f_detach = c,
+ 	.f_event = d,
};

Revision 1.120.4.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:11 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.7: +3 -2 lines
Diff to previous 1.120.4.7 (colored) to branchpoint 1.120 (colored) next main 1.121 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.139 / (download) - annotate - [select for diffs], Wed May 24 06:52:14 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.138: +3 -2 lines
Diff to previous 1.138 (colored) to selected 1.173 (colored)

Call cv_destroy() to deactivate the tun_cv before calling kmem_intr_free()
to deallocate the containing memory chunk (the tunnel's softc).  Otherwise
a LOCKDEBUG kernel will panic in tun_clone_destroy().

Fixes PR kern/52255

Revision 1.138.4.2 / (download) - annotate - [select for diffs], Sat Apr 29 10:50:46 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.138.4.1: +2 -3 lines
Diff to previous 1.138.4.1 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.173 (colored)

Remove explicit inclusion of <sys/localcount.h> since there is no
explicit usage of localcounts here.  <sys/conf.h> will take care of
including as needed.

Revision 1.138.4.1 / (download) - annotate - [select for diffs], Fri Apr 28 03:46:57 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.138: +4 -2 lines
Diff to previous 1.138 (colored) to selected 1.173 (colored)

Add a localcount to the devsw so it can be loaded as a rump module

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:05 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.134: +94 -143 lines
Diff to previous 1.134 (colored) next main 1.135 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.127.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.127.2.1: +95 -143 lines
Diff to previous 1.127.2.1 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.120.4.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:58 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.6: +94 -144 lines
Diff to previous 1.120.4.6 (colored) to branchpoint 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.138 / (download) - annotate - [select for diffs], Sun Jan 29 18:30:33 2017 UTC (7 years, 1 month ago) by maya
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.137: +5 -4 lines
Diff to previous 1.137 (colored) to selected 1.173 (colored)

Most error paths that goto out; don't hold tun_lock.
so don't mutex_exit(tun_lock) in them, but only in
the one that needs it.

ok skrll

Revision 1.137 / (download) - annotate - [select for diffs], Thu Jan 26 21:38:11 2017 UTC (7 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored) to selected 1.173 (colored)

Fix logic inversion spotted by paulg

Revision 1.136 / (download) - annotate - [select for diffs], Thu Jan 26 21:13:19 2017 UTC (7 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.135: +65 -111 lines
Diff to previous 1.135 (colored) to selected 1.173 (colored)

Make MP-safe and use kmem(9)

Mostly from rmind-smpnet

Revision 1.135 / (download) - annotate - [select for diffs], Mon Jan 23 15:32:04 2017 UTC (7 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.134: +33 -37 lines
Diff to previous 1.134 (colored) to selected 1.173 (colored)

KNF. Same code before and after.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Jan 11 13:08:29 2017 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.133: +2 -3 lines
Diff to previous 1.133 (colored) to selected 1.173 (colored)

Get rid of unnecessary header inclusions

Revision 1.127.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:21 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.127: +3 -4 lines
Diff to previous 1.127 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.120.4.6 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:08 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.5: +82 -34 lines
Diff to previous 1.120.4.5 (colored) to branchpoint 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.133 / (download) - annotate - [select for diffs], Sun Oct 2 14:17:07 2016 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Changes since 1.132: +3 -4 lines
Diff to previous 1.132 (colored) to selected 1.173 (colored)

MFREE -> m_free

Revision 1.132 / (download) - annotate - [select for diffs], Wed Sep 7 10:27:44 2016 UTC (7 years, 6 months ago) by ozaki-r
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.131: +34 -31 lines
Diff to previous 1.131 (colored) to selected 1.173 (colored)

Fix tun_enable

Before the rearrangement of ifaddr initializations (in.c,v 1.169),
when we called tun_enable via ioctl(SIOCINITIFADDR), an ifaddr
in question was inserted in the interface address list. However,
after the change the ifaddr isn't in the list at that point. So
we shouldn't rely on that we can find the ifaddr by
IFADDR_READER_FOREACH. Instead simply use the ifaddr passed by
ioctl(SIOCINITIFADDR).

Revision 1.131 / (download) - annotate - [select for diffs], Wed Sep 7 10:24:57 2016 UTC (7 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.130: +5 -5 lines
Diff to previous 1.130 (colored) to selected 1.173 (colored)

Rename tuncreate to tun_enable

It should be more proper.

Revision 1.130 / (download) - annotate - [select for diffs], Mon Sep 5 02:25:37 2016 UTC (7 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.129: +13 -2 lines
Diff to previous 1.129 (colored) to selected 1.173 (colored)

Support tun devices on rump kernels

Revision 1.129 / (download) - annotate - [select for diffs], Mon Sep 5 01:57:54 2016 UTC (7 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored) to selected 1.173 (colored)

Fix typo in a comment

Revision 1.128 / (download) - annotate - [select for diffs], Sun Aug 7 17:38:34 2016 UTC (7 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.127: +41 -6 lines
Diff to previous 1.127 (colored) to selected 1.173 (colored)

modularize some more drivers and merge the module glue

Revision 1.120.4.5 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:21 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.4: +5 -5 lines
Diff to previous 1.120.4.4 (colored) to branchpoint 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.127 / (download) - annotate - [select for diffs], Thu Jul 7 09:32:02 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored) to selected 1.173 (colored)

Switch the address list of intefaces to pslist(9)

As usual, we leave the old list to avoid breaking kvm(3) users.

Revision 1.126 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:16 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored) to selected 1.173 (colored)

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.

Revision 1.120.4.4 / (download) - annotate - [select for diffs], Sun May 29 08:44:38 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.3: +4 -4 lines
Diff to previous 1.120.4.3 (colored) to branchpoint 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.125 / (download) - annotate - [select for diffs], Thu Apr 28 00:16:56 2016 UTC (7 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.124: +4 -4 lines
Diff to previous 1.124 (colored) to selected 1.173 (colored)

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.

Revision 1.120.4.3 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:17 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.2: +4 -5 lines
Diff to previous 1.120.4.2 (colored) to branchpoint 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.124 / (download) - annotate - [select for diffs], Wed Apr 20 09:01:04 2016 UTC (7 years, 11 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422
Changes since 1.123: +4 -5 lines
Diff to previous 1.123 (colored) to selected 1.173 (colored)

IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller

Revision 1.120.4.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:10 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120.4.1: +6 -3 lines
Diff to previous 1.120.4.1 (colored) to branchpoint 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Mon Aug 24 22:21:26 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.122: +4 -2 lines
Diff to previous 1.122 (colored) to selected 1.173 (colored)

sprinkle _KERNEL_OPT

Revision 1.122 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:19 2015 UTC (8 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.121: +4 -3 lines
Diff to previous 1.121 (colored) to selected 1.173 (colored)

include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:25 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.120: +5 -3 lines
Diff to previous 1.120 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.121 / (download) - annotate - [select for diffs], Mon Apr 20 10:19:54 2015 UTC (8 years, 11 months ago) by roy
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.120: +5 -3 lines
Diff to previous 1.120 (colored) to selected 1.173 (colored)

Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work
with RTF_LOCAL.
Fixes PR kern/49829.

Revision 1.115.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:34 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.115: +32 -38 lines
Diff to previous 1.115 (colored) to selected 1.173 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:15 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.117: +9 -14 lines
Diff to previous 1.117 (colored) next main 1.118 (colored) to selected 1.173 (colored)

Rebase.

Revision 1.120 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:40 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.119: +3 -2 lines
Diff to previous 1.119 (colored) to selected 1.173 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Jun 19 16:54:40 2014 UTC (9 years, 9 months ago) by ws
Branch: MAIN
Changes since 1.118: +4 -4 lines
Diff to previous 1.118 (colored) to selected 1.173 (colored)

Enqueue the mbuf with the start of the packet,
not some intermediate one (hi, rmind!).

Revision 1.118 / (download) - annotate - [select for diffs], Thu Jun 5 23:48:16 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.117: +8 -14 lines
Diff to previous 1.117 (colored) to selected 1.173 (colored)

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

Revision 1.114.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.114.2.1: +25 -26 lines
Diff to previous 1.114.2.1 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored) to selected 1.173 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.115.10.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:12 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.115.10.1: +20 -8 lines
Diff to previous 1.115.10.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored) to selected 1.173 (colored)

sync with head

Revision 1.117 / (download) - annotate - [select for diffs], Thu Mar 20 06:48:54 2014 UTC (10 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.116: +14 -24 lines
Diff to previous 1.116 (colored) to selected 1.173 (colored)

Mechanically replace simplelock with kmutex_t.

Revision 1.116 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:30 2014 UTC (10 years ago) by dholland
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.115: +13 -4 lines
Diff to previous 1.115 (colored) to selected 1.173 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.115.10.1 / (download) - annotate - [select for diffs], Wed Jul 17 03:16:31 2013 UTC (10 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.115: +260 -344 lines
Diff to previous 1.115 (colored) to selected 1.173 (colored)

Checkpoint work in progress:
- Move PCB structures under __INPCB_PRIVATE, adjust most of the callers
  and thus make IPv4 PCB structures mostly opaque.  Any volunteers for
  merging in6pcb with inpcb (see rpaulo-netinet-merge-pcb branch)?
- Move various global vars to the modules where they belong, make them static.
- Some preliminary work for IPv4 PCB locking scheme.
- Make raw IP code mostly MP-safe.  Simplify some of it.
- Rework "fast" IP forwarding (ipflow) code to be mostly MP-safe.  It should
  run from a software interrupt, rather than hard.
- Rework tun(4) pseudo interface to be MP-safe.
- Work towards making some other interfaces more strict.

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:38 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.114: +43 -38 lines
Diff to previous 1.114 (colored) to selected 1.173 (colored)

sync with head

Revision 1.114.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:38 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.114: +43 -38 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.173 (colored)

merge to -current.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Jan 28 01:02:27 2012 UTC (12 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.114: +43 -38 lines
Diff to previous 1.114 (colored) to selected 1.173 (colored)

Replace tun_lock with mutex(9).  XXX: too far from being MP-safe yet.

Revision 1.114 / (download) - annotate - [select for diffs], Fri Oct 28 22:08:14 2011 UTC (12 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.113: +2 -6 lines
Diff to previous 1.113 (colored) to selected 1.173 (colored)

For these interfaces, the implementation of SIOCSIFDSTADDR is identical
to SIOCINITIFADDR, and SIOCSIFDSTADDR callers always fall back to
SIOCINITIFADDR, so just get rid of the SIOCSIFDSTADDR case.

Revision 1.106.2.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:55 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106.2.3: +6 -8 lines
Diff to previous 1.106.2.3 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.112.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:18:01 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.112: +6 -8 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.173 (colored)

sync with head

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:20 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.112: +6 -8 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.113 / (download) - annotate - [select for diffs], Mon Apr 5 07:22:24 2010 UTC (13 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.112: +6 -8 lines
Diff to previous 1.112 (colored) to selected 1.173 (colored)

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.

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:27 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106.2.2: +6 -17 lines
Diff to previous 1.106.2.2 (colored) to branchpoint 1.106 (colored) to selected 1.173 (colored)

sync with head

Revision 1.112 / (download) - annotate - [select for diffs], Tue Jan 19 22:08:01 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.111: +6 -17 lines
Diff to previous 1.111 (colored) to selected 1.173 (colored)

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.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:49 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106.2.1: +5 -4 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored) to selected 1.173 (colored)

sync with head

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:20 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.110: +5 -4 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.173 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.111 / (download) - annotate - [select for diffs], Fri May 8 11:09:44 2009 UTC (14 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.110: +5 -4 lines
Diff to previous 1.110 (colored) to selected 1.173 (colored)

Add and use a network scope action/request for tun(4), similar to ppp(4),
sl(4), and strip(4).

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:15 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106: +9 -13 lines
Diff to previous 1.106 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:12 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.107: +7 -9 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.103.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:31 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.103.6.3: +5 -7 lines
Diff to previous 1.103.6.3 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:26 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.107: +7 -9 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.173 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.110 / (download) - annotate - [select for diffs], Thu Nov 20 21:55:15 2008 UTC (15 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.173 (colored)

Update comment for last.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Nov 20 21:54:42 2008 UTC (15 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.108: +4 -4 lines
Diff to previous 1.108 (colored) to selected 1.173 (colored)

In the new ifioctl order, tun_ioctl() can call itself through
ifioctl_common().  Since the first tun_ioctl() call already holds
the simplelock, the second tun_ioctl() call will wait forever to
acquire it: deadlock.

To fix this, wait to acquire the lock until tuninit().

Revision 1.108 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:13 2008 UTC (15 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.107: +4 -6 lines
Diff to previous 1.107 (colored) to selected 1.173 (colored)

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

Revision 1.103.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:19 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.103.6.2: +2 -4 lines
Diff to previous 1.103.6.2 (colored) to branchpoint 1.103 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.106.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:58 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.106: +4 -6 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.173 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.106.6.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:50 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.106: +4 -6 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:13 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.105.2.1: +4 -6 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Jun 15 16:37:21 2008 UTC (15 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Changes since 1.106: +4 -6 lines
Diff to previous 1.106 (colored) to selected 1.173 (colored)

- add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD)
- kill memsets where M_ZERO can be used.

Revision 1.103.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:22 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.103.6.1: +33 -7 lines
Diff to previous 1.103.6.1 (colored) to branchpoint 1.103 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:27 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.105: +35 -9 lines
Diff to previous 1.105 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa, simonb-wapbl
Changes since 1.105: +35 -9 lines
Diff to previous 1.105 (colored) to selected 1.173 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.103.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:07 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.103: +16 -9 lines
Diff to previous 1.103 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.76.8.11 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:09 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.10: +4 -4 lines
Diff to previous 1.76.8.10 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:23 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.103: +14 -7 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.97.16.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:05 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.97.16.2: +23 -18 lines
Diff to previous 1.97.16.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.173 (colored)

sync with HEAD

Revision 1.105 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored) to selected 1.173 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.76.8.10 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:41 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.9: +14 -7 lines
Diff to previous 1.76.8.9 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:52 2008 UTC (16 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.103: +14 -7 lines
Diff to previous 1.103 (colored) to selected 1.173 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.76.8.9 / (download) - annotate - [select for diffs], Wed Feb 27 08:37:01 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.8: +3 -3 lines
Diff to previous 1.76.8.8 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Wed Feb 20 17:05:53 2008 UTC (16 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.173 (colored)

s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:01 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.99.2.1: +11 -13 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.76.8.8 / (download) - annotate - [select for diffs], Mon Feb 11 15:00:00 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.7: +10 -12 lines
Diff to previous 1.76.8.7 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Feb 7 01:22:02 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.101: +10 -12 lines
Diff to previous 1.101 (colored) to selected 1.173 (colored)

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.

Revision 1.76.8.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:07 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.6: +3 -3 lines
Diff to previous 1.76.8.6 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head

Revision 1.97.16.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:15 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.97.16.1: +4 -4 lines
Diff to previous 1.97.16.1 (colored) to branchpoint 1.97 (colored) to selected 1.173 (colored)

sync with HEAD

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:49 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.101 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:16 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored) to selected 1.173 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.97.14.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:34 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.97.14.2: +3 -3 lines
Diff to previous 1.97.14.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:06 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:53 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.76.8.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:17 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.5: +3 -3 lines
Diff to previous 1.76.8.5 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head

Revision 1.100 / (download) - annotate - [select for diffs], Wed Dec 5 17:20:01 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) to selected 1.173 (colored)

Do not "return 1" from kqfilter for errors.  That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.

Revision 1.97.16.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:37 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored) to selected 1.173 (colored)

sync with HEAD

Revision 1.76.8.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:04 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.4: +3 -3 lines
Diff to previous 1.76.8.4 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.97.14.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:04 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.97.14.1: +3 -3 lines
Diff to previous 1.97.14.1 (colored) to branchpoint 1.97 (colored) to selected 1.173 (colored)

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.

Revision 1.98.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:40:07 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:18 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.97.2.1: +3 -3 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:45 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.173 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:43 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.97.14.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:58 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.76.8.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:42:21 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.3: +14 -14 lines
Diff to previous 1.76.8.3 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.97.10.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:12 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Sep 1 04:32:51 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.173 (colored)

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.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:14 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.95.2.1: +13 -13 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:17 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.96: +13 -13 lines
Diff to previous 1.96 (colored) to selected 1.173 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:45 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored) to selected 1.173 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.76.8.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:36 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.2: +6 -6 lines
Diff to previous 1.76.8.2 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Feb 17 22:34:10 2007 UTC (17 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored) to selected 1.173 (colored)

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.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:12 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.92.2.1: +3 -3 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Jan 4 19:07:03 2007 UTC (17 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) to selected 1.173 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.76.8.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:20 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76.8.1: +7 -11 lines
Diff to previous 1.76.8.1 (colored) to branchpoint 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.92.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:00 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.92.4.1: +11 -11 lines
Diff to previous 1.92.4.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:30 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.92: +4 -3 lines
Diff to previous 1.92 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:40 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.93: +11 -11 lines
Diff to previous 1.93 (colored) to selected 1.173 (colored)

__unused removal on arguments; approved by core.

Revision 1.92.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:25 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.92: +11 -10 lines
Diff to previous 1.92 (colored) to selected 1.173 (colored)

sync with head

Revision 1.93 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:29 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.92: +11 -10 lines
Diff to previous 1.92 (colored) to selected 1.173 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.82.2.6 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:55 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.82.2.5: +2 -7 lines
Diff to previous 1.82.2.5 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.78.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:06 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.78: +88 -16 lines
Diff to previous 1.78 (colored) next main 1.79 (colored) to selected 1.173 (colored)

sync with head

Revision 1.92 / (download) - annotate - [select for diffs], Thu Sep 7 02:40:33 2006 UTC (17 years, 6 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.91: +2 -7 lines
Diff to previous 1.91 (colored) to selected 1.173 (colored)

remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.

Revision 1.82.2.5 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:35 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.82.2.4: +3 -3 lines
Diff to previous 1.82.2.4 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Aug 30 17:00:15 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.173 (colored)

fix initializer

Revision 1.82.2.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:46:16 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.82.2.3: +4 -4 lines
Diff to previous 1.82.2.3 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

sync with head

Revision 1.90 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:13 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) to selected 1.173 (colored)

Use the LWP cached credentials where sane.

Revision 1.76.8.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:27 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.76: +135 -92 lines
Diff to previous 1.76 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.78.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:38 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.78.6.1: +4 -3 lines
Diff to previous 1.78.6.1 (colored) next main 1.79 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.82.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:44 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.82.6.1: +34 -5 lines
Diff to previous 1.82.6.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored) to selected 1.173 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.82.2.3 / (download) - annotate - [select for diffs], Wed May 24 10:58:56 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.82.2.2: +5 -4 lines
Diff to previous 1.82.2.2 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Sun May 14 21:19:33 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.88: +4 -3 lines
Diff to previous 1.88 (colored) to selected 1.173 (colored)

integrate kauth.

Revision 1.82.4.5 / (download) - annotate - [select for diffs], Thu May 11 23:31:08 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.82.4.4: +3 -3 lines
Diff to previous 1.82.4.4 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored) to selected 1.173 (colored)

sync with head

Revision 1.82.4.4 / (download) - annotate - [select for diffs], Sat May 6 23:31:59 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.82.4.3: +3 -2 lines
Diff to previous 1.82.4.3 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

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

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:06 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.78: +84 -8 lines
Diff to previous 1.78 (colored) to selected 1.173 (colored)

Sync with head.

Revision 1.82.4.3 / (download) - annotate - [select for diffs], Wed Apr 19 04:46:10 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.82.4.2: +35 -6 lines
Diff to previous 1.82.4.2 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Apr 18 19:30:49 2006 UTC (17 years, 11 months ago) by rpaulo
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.173 (colored)

Fix another typo... I must be on drugs...

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Tue Apr 11 11:55:48 2006 UTC (17 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.82.2.1: +34 -6 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Sat Apr 8 12:14:42 2006 UTC (17 years, 11 months ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4
Changes since 1.86: +8 -6 lines
Diff to previous 1.86 (colored) to selected 1.173 (colored)

IFHEAD and PREPADDR are mutually exclusive. From FreeBSD.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Apr 4 15:43:23 2006 UTC (17 years, 11 months ago) by rpaulo
Branch: MAIN
Changes since 1.85: +11 -2 lines
Diff to previous 1.85 (colored) to selected 1.173 (colored)

Add another bit from FreeBSD that I forgot: in tun_output, don't try to send
an AF_INET packet if TUN_IFHEAD is not set.
From FreeBSD and spotted (again) by DEGROOTE Arnaud.

Revision 1.85 / (download) - annotate - [select for diffs], Tue Apr 4 11:33:15 2006 UTC (17 years, 11 months ago) by rpaulo
Branch: MAIN
Changes since 1.84: +10 -4 lines
Diff to previous 1.84 (colored) to selected 1.173 (colored)

Fix a if-clause botched in a previous revision now that we have TUN_IFHEAD.
Spotted by DEGROOTE Arnaud <degroote@enseirb.fr>.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Apr 3 23:29:39 2006 UTC (17 years, 11 months ago) by rpaulo
Branch: MAIN
Changes since 1.83: +14 -3 lines
Diff to previous 1.83 (colored) to selected 1.173 (colored)

Implement TUN_IFHEAD, the missing piece that was breaking old applications.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:43 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.82.6.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:29 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored) to selected 1.173 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Mar 29 19:29:00 2006 UTC (18 years ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored) to selected 1.173 (colored)

Add missing break tunwrite() which was causing EAFNOSUPPORT to be
returned, thus making IPv6 support broken.
!@#$%^...

Revision 1.82.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 15:05:22 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.82.4.1: +3 -3 lines
Diff to previous 1.82.4.1 (colored) to branchpoint 1.82 (colored) to selected 1.173 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:11:55 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.173 (colored)

Adapt to kernel authorization KPI.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Mar 3 19:57:37 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored) to selected 1.173 (colored)

Some minor KNF.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Mar 3 19:46:35 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.173 (colored)

Fix typo in comment.

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:47 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.78.2.1: +46 -9 lines
Diff to previous 1.78.2.1 (colored) next main 1.79 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Feb 28 00:38:35 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Changes since 1.79: +46 -9 lines
Diff to previous 1.79 (colored) to selected 1.173 (colored)

Add full support for IPv6 tunnels. From DEGROOTE Arnaud in PR 32944.
The PR submitter and the PR handler were unable to test this code
using Teredo userland clients such as Miredo. However, the PR handler
dumped and analyzed some of the packets produced by Miredo and they
seemed fine.
(On a side note: I was unable to setup Teredo in Windows XP and the
problem seemed similar to what I currently see in NetBSD: lack of
replies from the Teredo relay).

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:23 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.78: +12 -2 lines
Diff to previous 1.78 (colored) to selected 1.173 (colored)

sync with head.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Feb 5 16:44:55 2006 UTC (18 years, 1 month ago) by rpaulo
Branch: MAIN
Changes since 1.78: +12 -2 lines
Diff to previous 1.78 (colored) to selected 1.173 (colored)

Add preliminary/not tested support for IPv6.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Dec 11 23:05:25 2005 UTC (18 years, 3 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.77: +47 -82 lines
Diff to previous 1.77 (colored) to selected 1.173 (colored)

ANSI function decls and application of static.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.76: +14 -13 lines
Diff to previous 1.76 (colored) to selected 1.173 (colored)

merge ktrace-lwp.

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:31 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.173 (colored)

sync with -current

Revision 1.63.2.7 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:44 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.63.2.6: +4 -4 lines
Diff to previous 1.63.2.6 (colored) next main 1.64 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 24 21:25:09 2005 UTC (19 years, 2 months ago) by matt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored) to selected 1.173 (colored)

Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.

Revision 1.63.2.6 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:51 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.63.2.5: +8 -11 lines
Diff to previous 1.63.2.5 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Dec 6 02:59:23 2004 UTC (19 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored) to selected 1.173 (colored)

Sprinkle #ifdef INET to make a GENERIC kernel compile with INET undefined.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Dec 4 23:22:58 2004 UTC (19 years, 3 months ago) by peter
Branch: MAIN
Changes since 1.73: +2 -7 lines
Diff to previous 1.73 (colored) to selected 1.173 (colored)

Remove redundant conditional; NTUN is always 1 when this file is compiled.
Also remove tun.h include, since it's no longer needed.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Dec 4 18:31:43 2004 UTC (19 years, 3 months ago) by peter
Branch: MAIN
Changes since 1.72: +6 -4 lines
Diff to previous 1.72 (colored) to selected 1.173 (colored)

Change ifc_destroy to return an int instead of void, so that it
can pass back errors to ifconfig.

Revision 1.63.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:41 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.63.2.4: +14 -13 lines
Diff to previous 1.63.2.4 (colored) to selected 1.173 (colored)

Fix the sync with head I botched.

Revision 1.63.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:16 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.63.2.3: +13 -14 lines
Diff to previous 1.63.2.3 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:59 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.63.2.2: +6 -30 lines
Diff to previous 1.63.2.2 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Aug 19 20:58:24 2004 UTC (19 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.71: +6 -30 lines
Diff to previous 1.71 (colored) to selected 1.173 (colored)

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.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:18 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.63.2.1: +266 -189 lines
Diff to previous 1.63.2.1 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Sun Jun 6 04:36:29 2004 UTC (19 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.70: +5 -13 lines
Diff to previous 1.70 (colored) to selected 1.173 (colored)

Use bpf_mtap2 in tun(4).

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Thu May 20 12:28:17 2004 UTC (19 years, 10 months ago) by grant
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.68.2.1: +4 -3 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.173 (colored)

Pull up revision 1.69 (requested by tron in ticket #325):

Initialize interface type to IFT_TUNNEL as suggested by Erik Äîggåòd
in PR kern/25555.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Sat May 15 13:42:19 2004 UTC (19 years, 10 months ago) by tron
Branch: netbsd-2-0
Changes since 1.68: +239 -140 lines
Diff to previous 1.68 (colored) to selected 1.173 (colored)

Pull up revision 1.70 (requested by pk in ticket #335):
Fix locking issues noticed by Tom Ivar Helbekkmo on tech-net:
	* always acquire the device instance lock at splnet()
	* missing unlocks in various places
Also, since this driver allows its device instances manipulated by two
independent subsystems (character device & interface clone create/destroy),
be careful not to rip away instance data in a clone destroy request if the
instance is still opened as a character device.

Revision 1.70 / (download) - annotate - [select for diffs], Fri May 14 13:23:12 2004 UTC (19 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.69: +239 -140 lines
Diff to previous 1.69 (colored) to selected 1.173 (colored)

Fix locking issues noticed by Tom Ivar Helbekkmo on tech-net:
	* always acquire the device instance lock at splnet()
	* missing unlocks in various places

Also, since this driver allows its device instances manipulated by two
independent subsystems (character device & interface clone create/destroy),
be careful not to rip away instance data in a clone destroy request if the
instance is still opened as a character device.

Revision 1.69 / (download) - annotate - [select for diffs], Thu May 13 11:31:09 2004 UTC (19 years, 10 months ago) by tron
Branch: MAIN
Changes since 1.68: +4 -3 lines
Diff to previous 1.68 (colored) to selected 1.173 (colored)

Initialize interface type to IFT_TUNNEL as suggested by Erik Äîggåòd
in PR kern/25555.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Mar 1 13:54:02 2004 UTC (20 years, 1 month ago) by tron
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.67: +8 -8 lines
Diff to previous 1.67 (colored) to selected 1.173 (colored)

Don't leak memory if a copyin fails.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Sep 22 20:49:39 2003 UTC (20 years, 6 months ago) by cl
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) to selected 1.173 (colored)

pass signo to fownsignal #ifdef ALTQ

Revision 1.66 / (download) - annotate - [select for diffs], Mon Sep 22 13:00:03 2003 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.65: +5 -4 lines
Diff to previous 1.65 (colored) to selected 1.173 (colored)

- pass signo to fownsignal [ok by jd]
- make urg signal handling use fownsignal
- remove out of band detection in sowakeup

Revision 1.65 / (download) - annotate - [select for diffs], Mon Sep 22 03:29:34 2003 UTC (20 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.64: +2 -3 lines
Diff to previous 1.64 (colored) to selected 1.173 (colored)

kill unused variable in #ifdef ALTQ part, to make this compile
with ALTQ configured in

Revision 1.64 / (download) - annotate - [select for diffs], Sun Sep 21 19:17:14 2003 UTC (20 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.63: +19 -34 lines
Diff to previous 1.63 (colored) to selected 1.173 (colored)

cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:56 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.63: +13 -12 lines
Diff to previous 1.63 (colored) to selected 1.173 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:51 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.62: +10 -11 lines
Diff to previous 1.62 (colored) to selected 1.173 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:07 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.61: +13 -12 lines
Diff to previous 1.61 (colored) to selected 1.173 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.61 / (download) - annotate - [select for diffs], Fri May 2 03:15:24 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) to selected 1.173 (colored)

KNF

Revision 1.60 / (download) - annotate - [select for diffs], Thu May 1 07:52:59 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored) to selected 1.173 (colored)

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.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 13 10:24:38 2003 UTC (21 years ago) by dsl
Branch: MAIN
Changes since 1.58: +11 -3 lines
Diff to previous 1.58 (colored) to selected 1.173 (colored)

Validate pgid arg to TIOCSPGRP

Revision 1.42.2.10 / (download) - annotate - [select for diffs], Sun Dec 29 20:55:45 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.42.2.9: +8 -2 lines
Diff to previous 1.42.2.9 (colored) next main 1.43 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Dec 25 08:40:20 2002 UTC (21 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.57: +8 -2 lines
Diff to previous 1.57 (colored) to selected 1.173 (colored)

count input/output bytes for tun device
Problem reported and patch provided in PR kern/19554 by Michael van Elst

Revision 1.42.2.9 / (download) - annotate - [select for diffs], Wed Dec 11 06:46:32 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.42.2.8: +3 -3 lines
Diff to previous 1.42.2.8 (colored) to selected 1.173 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Nov 26 18:51:19 2002 UTC (21 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored) to selected 1.173 (colored)

si_ -> sel_

Revision 1.42.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:15:03 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.7: +74 -3 lines
Diff to previous 1.42.2.7 (colored) to selected 1.173 (colored)

Catch up to -current

Revision 1.56 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:42 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.55: +76 -5 lines
Diff to previous 1.55 (colored) to selected 1.173 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.42.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:45:13 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.6: +1 -2 lines
Diff to previous 1.42.2.6 (colored) to selected 1.173 (colored)

Catch up to -current.

Revision 1.43.2.10 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:49 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.43.2.9: +16 -4 lines
Diff to previous 1.43.2.9 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.173 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.43.2.9 / (download) - annotate - [select for diffs], Wed Oct 2 22:02:30 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.43.2.8: +5 -5 lines
Diff to previous 1.43.2.8 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

do not need the (void *) cast for kn_hook anymore

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:11 2002 UTC (21 years, 6 months ago) by simonb
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.54: +2 -3 lines
Diff to previous 1.54 (colored) to selected 1.173 (colored)

Remove breaks after returns, unreachable returns and returns after
returns(!).

Revision 1.54 / (download) - annotate - [select for diffs], Mon Sep 23 04:26:17 2002 UTC (21 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.173 (colored)

uio_resid is a size_t (ie, unsigned), so don't check if it's less than 0.

Revision 1.42.2.6 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:56 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.5: +12 -0 lines
Diff to previous 1.42.2.5 (colored) to selected 1.173 (colored)

Catch up to -current.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 6 months ago) by gehenna
Branch: MAIN
Changes since 1.52: +14 -2 lines
Diff to previous 1.52 (colored) to selected 1.173 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.43.2.8 / (download) - annotate - [select for diffs], Fri Sep 6 08:49:00 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.43.2.7: +7 -2 lines
Diff to previous 1.43.2.7 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

sync kqueue branch with HEAD

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Thu Aug 29 00:56:43 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.51.4.1: +7 -2 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.173 (colored)

catch up with -current.

Revision 1.42.2.5 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:42 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.4: +5 -0 lines
Diff to previous 1.42.2.4 (colored) to selected 1.173 (colored)

Catch up to -current.

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Tue Jul 30 01:38:33 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.51: +7 -2 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.173 (colored)

Pull up revision 1.52 (requested by atatat in ticket #572):
Make tun interfaces perform auto-creation.  This means that if a
program opens /dev/tun# and tun# has not been SIOCIFCREATE'd already,
it will be SIOCIFCREATE'd automatically.  FreeBSD's tun interfaces
behave in a somewhat similar fashion.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jul 29 16:53:30 2002 UTC (21 years, 8 months ago) by atatat
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.51: +7 -2 lines
Diff to previous 1.51 (colored) to selected 1.173 (colored)

Make tun interfaces perform auto-creation.  This means that if a
program opens /dev/tun# and tun# has not been SIOCIFCREATE'd already,
it will be SIOCIFCREATE'd automatically.  FreeBSD's tun interfaces
behave in a somewhat similar fashion.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Thu May 16 03:57:33 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.51: +14 -2 lines
Diff to previous 1.51 (colored) to selected 1.173 (colored)

Add the character device switch.

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:48:25 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.3: +58 -17 lines
Diff to previous 1.42.2.3 (colored) to selected 1.173 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.43.2.7 / (download) - annotate - [select for diffs], Sat Mar 16 16:02:08 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.43.2.6: +59 -18 lines
Diff to previous 1.43.2.6 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

Catch up with -current.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 13 06:43:18 2002 UTC (22 years ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-6-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.173 (colored)

suppress -Wunused if !INET6

Revision 1.50 / (download) - annotate - [select for diffs], Tue Mar 5 04:13:01 2002 UTC (22 years ago) by itojun
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.49: +59 -18 lines
Diff to previous 1.49 (colored) to selected 1.173 (colored)

bring in latest ALTQ from kjc.  ALTQify some of the drivers.

Revision 1.43.2.6 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:16 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.43.2.5: +234 -56 lines
Diff to previous 1.43.2.5 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

Sync kqueue branch with -current.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:27 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.2: +233 -55 lines
Diff to previous 1.42.2.2 (colored) to selected 1.173 (colored)

Catch up to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Nov 13 00:49:36 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.48: +2 -5 lines
Diff to previous 1.48 (colored) to selected 1.173 (colored)

remove unnecessary #if NFOO > 0    .... #endif  wrappers

Revision 1.48 / (download) - annotate - [select for diffs], Mon Nov 12 23:49:45 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.47: +4 -1 lines
Diff to previous 1.47 (colored) to selected 1.173 (colored)

add RCSIDs

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:19 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.45: +230 -52 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.173 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Nov 5 18:02:16 2001 UTC (22 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.46: +3 -5 lines
Diff to previous 1.46 (colored) to selected 1.173 (colored)

Switch to using queue access macros instead of refering to the member
fields explicitly.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Oct 31 20:08:17 2001 UTC (22 years, 5 months ago) by atatat
Branch: MAIN
Changes since 1.45: +228 -48 lines
Diff to previous 1.45 (colored) to selected 1.173 (colored)

Turn the tun device/network interface into a cloning device.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:25 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.45.2.1: +32 -15 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.173 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.43.2.5 / (download) - annotate - [select for diffs], Sat Sep 8 18:12:21 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.43.2.4: +9 -1 lines
Diff to previous 1.43.2.4 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

Use the seltrue filter as appropriate (or, rather, as the "poll"
entry points of these drivers indicate).

Revision 1.43.2.4 / (download) - annotate - [select for diffs], Sat Sep 8 04:08:24 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.43.2.3: +3 -3 lines
Diff to previous 1.43.2.3 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

Oops, selwakeup() -> selnotify() for last.

Revision 1.43.2.3 / (download) - annotate - [select for diffs], Sat Sep 8 03:42:26 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.43.2.2: +63 -1 lines
Diff to previous 1.43.2.2 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

Add kqueue support.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:42 2001 UTC (22 years, 6 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.45: +28 -25 lines
Diff to previous 1.45 (colored) to selected 1.173 (colored)

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

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:59 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.43.2.1: +3 -9 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) to selected 1.173 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:12:16 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.1: +3 -4 lines
Diff to previous 1.42.2.1 (colored) to selected 1.173 (colored)

Catch up with -current.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Aug 3 21:11:57 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, thorpej-devvp
Changes since 1.44: +3 -9 lines
Diff to previous 1.44 (colored) to selected 1.173 (colored)

simplify previous fix (0-length mbuf in mbuf chain).  from freebsd

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:52 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.43: +6 -1 lines
Diff to previous 1.43 (colored) to selected 1.173 (colored)

update to -current

Revision 1.44 / (download) - annotate - [select for diffs], Thu Aug 2 13:37:51 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.43: +6 -1 lines
Diff to previous 1.43 (colored) to selected 1.173 (colored)

do not break from loop even if m_len == 0.  it's valid to have
mbuf with m_len == 0 in mbuf chain.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:08:17 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42: +10 -10 lines
Diff to previous 1.42 (colored) to selected 1.173 (colored)

Catch up to -current.

Revision 1.38.2.5 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:42 2001 UTC (22 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.4: +10 -10 lines
Diff to previous 1.38.2.4 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Fri Apr 13 23:30:18 2001 UTC (22 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: kqueue
Changes since 1.42: +10 -10 lines
Diff to previous 1.42 (colored) to selected 1.173 (colored)

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.

Revision 1.38.2.4 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:53 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.3: +1 -0 lines
Diff to previous 1.38.2.3 (colored) to branchpoint 1.38 (colored) to selected 1.173 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jan 17 00:30:52 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.41: +2 -1 lines
Diff to previous 1.41 (colored) to selected 1.173 (colored)

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

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:53 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.2: +1 -0 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) to selected 1.173 (colored)

Sync with HEAD

Revision 1.41 / (download) - annotate - [select for diffs], Mon Dec 18 19:50:45 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored) to selected 1.173 (colored)

Fill in if_dlt.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:33 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38.2.1: +6 -6 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) to selected 1.173 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.40 / (download) - annotate - [select for diffs], Tue Dec 12 18:00:31 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +6 -6 lines
Diff to previous 1.39 (colored) to selected 1.173 (colored)

Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:08 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored) to selected 1.173 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 30 09:45:37 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored) to selected 1.173 (colored)

Kill some more register declarations.

Revision 1.37.6.2 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:07 1999 UTC (24 years, 4 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.37.6.1: +0 -0 lines
Diff to previous 1.37.6.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.173 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:45:20 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.37: +9 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.173 (colored)

Sync w/ -current.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:48 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.37: +9 -1 lines
Diff to previous 1.37 (colored) to selected 1.173 (colored)

IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:36:56 1999 UTC (24 years, 9 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705, kame_14_19990628
Changes since 1.37: +9 -1 lines
Diff to previous 1.37 (colored) to selected 1.173 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 4 02:38:31 1999 UTC (25 years, 1 month ago) by mjacob
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Branch point for: kame, chs-ubc2
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored) to selected 1.173 (colored)

adjust format args for compiler changes

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Dec 11 04:53:06 1998 UTC (25 years, 3 months ago) by kenh
Branch: kenh-if-detach
Changes since 1.36: +41 -6 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.173 (colored)

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.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Nov 30 21:43:11 1998 UTC (25 years, 4 months ago) by sommerfe
Branch: MAIN
CVS Tags: kenh-if-detach-base
Branch point for: kenh-if-detach
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored) to selected 1.173 (colored)

Fix PR6473: allow sends to tun* devices using bpf.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Aug 20 19:55:07 1998 UTC (25 years, 7 months ago) by veego
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored) to selected 1.173 (colored)

Add some braces to stop the new egcs warnings.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Jul 5 06:49:17 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) to selected 1.173 (colored)

defopt NS, NSIP.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 5 00:51:27 1998 UTC (25 years, 9 months ago) by jonathan
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored) to selected 1.173 (colored)

defopt INET, NETATALK.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Mon Sep 29 07:21:15 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.30: +33 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.173 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Sep 25 13:11:58 1997 UTC (26 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.31: +21 -1 lines
Diff to previous 1.31 (colored) to selected 1.173 (colored)

Add SIOC{ADD|DEL}MULTI ioctl to support (for IFF_MULTICAST).

Revision 1.31 / (download) - annotate - [select for diffs], Wed Sep 24 19:45:11 1997 UTC (26 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.30: +13 -3 lines
Diff to previous 1.30 (colored) to selected 1.173 (colored)

Add support of SIOCIFMTU to vary mtu of interface.  Also allow IFF_MULTICAST
on TUNSIFMODE (sometimes you'd like to do IP multicast on tunnel devices).

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 15 18:12:29 1997 UTC (27 years ago) by is
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored) to selected 1.173 (colored)

New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Sun Mar 9 20:59:05 1997 UTC (27 years ago) by is
Branch: is-newarp
Changes since 1.29.4.1: +3 -3 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.173 (colored)

netinet/if_ether.h -> netinet/if_inarp.h

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Fri Feb 7 18:07:00 1997 UTC (27 years, 1 month ago) by is
Branch: is-newarp
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored) to selected 1.173 (colored)

Snapshot of new ARP code.

Our old ARP code was hardwired for 6-byte length medium
addresses, while the protocol is designed for any size.

This snapshot contains a first hack at getting rid of
Ethernet specific data structures. The ep driver is updated
(and tested on the PCI bus), the iy and fpa drivers have been
updated, but not real life tested yet.

If you want to test this with other drivers, you have to update
them first yourself, and probably tag the relevant directories.
Better contact me if you want to do this.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Oct 13 02:11:07 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base
Branch point for: is-newarp
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.173 (colored)

backout previous kprintf change

Revision 1.28 / (download) - annotate - [select for diffs], Thu Oct 10 22:59:52 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.173 (colored)

- printf -> kprintf, sprintf -> ksprintf

Revision 1.27 / (download) - annotate - [select for diffs], Sat Sep 7 12:41:26 1996 UTC (27 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +19 -19 lines
Diff to previous 1.26 (colored) to selected 1.173 (colored)

Implement poll(2).

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 25 22:15:13 1996 UTC (27 years, 9 months ago) by pk
Branch: MAIN
Changes since 1.25: +120 -33 lines
Diff to previous 1.25 (colored) to selected 1.173 (colored)

A couple of emulation enhancements from der mouse's PR#2411:
	- ability to be either a BROADCAST or POINTTOPOINT interface.
	- a humble beginning of link-layer addressing (differs from PR
	  by using a `struct sockaddr' instead of single byte).

Revision 1.25 / (download) - annotate - [select for diffs], Wed May 22 13:42:57 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.173 (colored)

Removing a completely unneeded reference to curproc.

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 7 02:40:48 1996 UTC (27 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.23: +26 -30 lines
Diff to previous 1.23 (colored) to selected 1.173 (colored)

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.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 30 21:57:35 1996 UTC (28 years ago) by christos
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.173 (colored)

Eliminate need for and remove net_conf.h

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 13 22:00:26 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.21: +24 -25 lines
Diff to previous 1.21 (colored) to selected 1.173 (colored)

Net prototypes

Revision 1.21 / (download) - annotate - [select for diffs], Mon Feb 5 17:39:25 1996 UTC (28 years, 1 month ago) by scottr
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.173 (colored)

Grammar police; noted by Peter Seebach <seebs@solon.com>.  Closes PR #1982.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 1 07:28:18 1996 UTC (28 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored) to selected 1.173 (colored)

Rename tunioctl() and tuncioctl() so that cdevsw points to the right one.
From der Mouse, PR 2005.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 13 23:47:40 1995 UTC (28 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored) to selected 1.173 (colored)

Return actual packet length in FIONREAD (noted by Bob Smart).

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 13 05:59:37 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.17: +8 -6 lines
Diff to previous 1.17 (colored) to selected 1.173 (colored)

Update to match data structure changes.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 12 01:09:20 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +18 -17 lines
Diff to previous 1.16 (colored) to selected 1.173 (colored)

Various cleanup, including:
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 8 02:57:09 1995 UTC (29 years ago) by cgd
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored) to selected 1.173 (colored)

fixed sized types, where appropriate.  when casting pointers to
integers to do math on them, cast to long.  ioctl commands are
u_longs.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 30 21:48:57 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.14: +5 -5 lines
Diff to previous 1.14 (colored) to selected 1.173 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 29 06:36:25 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.173 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 26 00:47:19 1994 UTC (29 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.173 (colored)

MIN -> min

Revision 1.12 / (download) - annotate - [select for diffs], Sun May 15 19:20:02 1994 UTC (29 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +10 -8 lines
Diff to previous 1.11 (colored) to selected 1.173 (colored)

repair protos and functions

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 3 23:02:07 1994 UTC (29 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +26 -17 lines
Diff to previous 1.10 (colored) to selected 1.173 (colored)

fixes from <brad@fcr.com> who claims it now works correctly

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 28 07:16:10 1994 UTC (30 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.173 (colored)

Fixed a bug with TUN_OPEN flag handling during tunclose(), as noted by
Mark Delany <markd@bushwire.apana.org.au>.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 24 03:20:59 1993 UTC (30 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored) to selected 1.173 (colored)

must pull in machine-cpu.h

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 13 05:06:33 1993 UTC (30 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +163 -98 lines
Diff to previous 1.7 (colored) to selected 1.173 (colored)

tunnel driver cleanup done by Brad Parker <brad@fcr.com> and myself

Revision 1.7 / (download) - annotate - [select for diffs], Sun Nov 14 20:33:26 1993 UTC (30 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +4 -6 lines
Diff to previous 1.6 (colored) to selected 1.173 (colored)

use one stop shopping selwakeup/selrecord

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 14 20:07:20 1993 UTC (30 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +401 -485 lines
Diff to previous 1.5 (colored) to selected 1.173 (colored)

cleaned up version of the tunnel driver

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Wed Nov 3 21:31:40 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.173 (colored)

Delete useless assignments to if_init.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 9 01:19:38 1993 UTC (30 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.4: +6 -3 lines
Diff to previous 1.4 (colored) to selected 1.173 (colored)

suser() was being called in the old 4.3 way

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 7 08:11:46 1993 UTC (30 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.3: +2 -44 lines
Diff to previous 1.3 (colored) to selected 1.173 (colored)

merge in changes from netbsd-0-9-ALPHA2

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Sat Jul 31 12:23:09 1993 UTC (30 years, 8 months ago) by cgd
Branch: netbsd-0-9
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.173 (colored)

give names, err, wmesg's, to my "pain" -- i.e. convert sleep() to tsleep()

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 22 11:42:13 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored) to selected 1.173 (colored)

add include of select.h if necessary for protos, or delete if extraneous

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 18 18:19:58 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +10 -17 lines
Diff to previous 1.1 (colored) to selected 1.173 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.173 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.173 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>