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


Keyword substitution: kv
Default branch: MAIN


Revision 1.173.4.3: download - view: text, markup, annotated - select for diffs
Sat Sep 21 12:17:27 2024 UTC (3 months, 4 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.173.4.2: preferred, colored; branchpoint 1.173: preferred, colored; next MAIN 1.174: preferred, colored
Changes since revision 1.173.4.2: +3 -3 lines
Pull up following revision(s) (requested by rin in ticket #899):

	sys/net/if_tun.c: revision 1.177

tun(4): Mark tunread_filtops `FILTEROP_MPSAFE`

Filter handlers have already been MP-safe since 2018:
https://mail-index.netbsd.org/source-changes/2018/08/06/msg097317.html

Note that we do not expect deadlocks similar to bpf(4) (PR kern/58531),
b/w KERNEL_LOCK and spin mutex for TX queue.

For tun(4), filt_tunread() acquires adaptive mutex. This is forbidden
when spin mutex is already held.

Such a path must have already been detected if present.

Thanks ozaki-r@ for discussion.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Wed Sep 18 23:20:20 2024 UTC (4 months ago) by rin
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +3 -3 lines
tun(4): Mark tunread_filtops `FILTEROP_MPSAFE`

Filter handlers have already been MP-safe since 2018:
https://mail-index.netbsd.org/source-changes/2018/08/06/msg097317.html

Note that we do not expect deadlocks similar to bpf(4) (PR kern/58531),
b/w KERNEL_LOCK and spin mutex for TX queue.

For tun(4), filt_tunread() acquires adaptive mutex. This is forbidden
when spin mutex is already held.

Such a path must have already been detected if present.

Thanks ozaki-r@ for discussion.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:53 2024 UTC (6 months, 2 weeks ago) by rin
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +3 -4 lines
sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@

Revision 1.139.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 11 19:31:31 2024 UTC (10 months, 1 week ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.139.2.4: preferred, colored; branchpoint 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.2.4: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 11 19:30:06 2024 UTC (10 months, 1 week ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 11 19:28:45 2024 UTC (10 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6
Diff to: previous 1.173.4.1: preferred, colored; branchpoint 1.173: preferred, colored
Changes since revision 1.173.4.1: +3 -5 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 9 13:55:27 2024 UTC (10 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +3 -5 lines
tun(4): Allow IPv6 packets with TUNSLMODE configured.

PR kern/58013

Revision 1.173.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 14 15:18:37 2024 UTC (12 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Dec 29 23:01:02 2023 UTC (12 months, 3 weeks ago) by chs
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -2 lines
tun: add missing kpreempt_enable() if pktq_enqueue() fails

Revision 1.173.8.1: download - view: text, markup, annotated - select for diffs
Thu Nov 16 04:30:22 2023 UTC (14 months ago) by thorpej
Branches: thorpej-ifq
Diff to: previous 1.173: preferred, colored; next MAIN 1.174: preferred, colored
Changes since revision 1.173: +3 -3 lines
IFQ_CLASSIFY() -> ifq_classify_packet().

Revision 1.173: download - view: text, markup, annotated - select for diffs
Mon Mar 28 12:33:22 2022 UTC (2 years, 9 months ago) by riastradh
Branches: 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
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -10 lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 15 00:05:17 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 13 21:42:39 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +8 -3 lines
tun(4): Fix some error branches in tunwrite.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Sun Mar 13 21:32:43 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +5 -19 lines
tun(4): Omit TUN_RWAIT micro-optimization.

cv_broadcast aleady has a fast path for no-waiters.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Sun Mar 13 21:32:35 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +4 -6 lines
tun(4): Deliver SIGIO for hangup under tun_lock.

Otherwise, tp->tun_pgid is not stable.

Revision 1.168: download - view: text, markup, annotated - select for diffs
Sun Mar 13 21:32:27 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 13 21:32:15 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 13 21:32:07 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +59 -27 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 13 21:31:47 2022 UTC (2 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -2 lines
tun(4): Add missing cv_destroy in tunclose.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Sun Sep 26 15:58:33 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +5 -14 lines
Use seltrue_filtops rather than rolling our own with filt_seltrue.

Revision 1.163: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:10 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:04 2021 UTC (4 years ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.161: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161: +4 -7 lines
Sync w/ HEAD.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Fri Dec 18 01:31:49 2020 UTC (4 years, 1 month ago) by thorpej
Branches: 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
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +4 -7 lines
Use sel{record,remove}_knote().

Revision 1.161: download - view: text, markup, annotated - select for diffs
Sun Sep 27 19:25:54 2020 UTC (4 years, 3 months ago) by roy
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +7 -3 lines
tun: Report link state based on if the interface has been opened or not

This mirrors tap(4).

Revision 1.160: download - view: text, markup, annotated - select for diffs
Sat Aug 29 07:14:50 2020 UTC (4 years, 4 months ago) by maxv
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +3 -6 lines
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 - view: text, markup, annotated - select for diffs
Tue Jun 23 18:30:17 2020 UTC (4 years, 6 months ago) by maxv
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +5 -2 lines
Hum. Fix NULL deref triggerable with just write(0).

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

Revision 1.144.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:57 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.144.2.1: preferred, colored; branchpoint 1.144: preferred, colored; next MAIN 1.145: preferred, colored
Changes since revision 1.144.2.1: +9 -18 lines
Merge changes from current as of 20200406

Revision 1.157.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:06 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.157: preferred, colored; next MAIN 1.158: preferred, colored
Changes since revision 1.157: +8 -17 lines
Sync with head.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Wed Jan 29 04:34:10 2020 UTC (4 years, 11 months ago) by thorpej
Branches: 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
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +8 -17 lines
Adopt <net/if_stats.h>.

Revision 1.157: download - view: text, markup, annotated - select for diffs
Fri Dec 13 14:13:55 2019 UTC (5 years, 1 month ago) by maxv
Branches: MAIN
CVS tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:45 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +40 -27 lines
Sync with HEAD

Revision 1.156: download - view: text, markup, annotated - select for diffs
Fri Apr 26 08:38:25 2019 UTC (5 years, 8 months ago) by pgoyette
Branches: 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
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 25 10:04:48 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: isaki-audio2-base, isaki-audio2
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +5 -3 lines
in tundetach(), error is only used #ifdef _MODULE so wrap its declaration.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Mon Mar 25 09:07:24 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +18 -11 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 25 04:06:36 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +3 -3 lines
 Revert rev. 1.151 and 1.152 to avoid compile error. Requested by pgoyette.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Mon Mar 25 02:58:28 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -3 lines
Use correct list name

Revision 1.151: download - view: text, markup, annotated - select for diffs
Mon Mar 25 01:06:34 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +3 -3 lines
This should do it!

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

Revision 1.150: download - view: text, markup, annotated - select for diffs
Mon Mar 25 01:01:29 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 25 00:59:04 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +3 -3 lines
Fix previous - remove it from the list before freeing the memory.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Mon Mar 25 00:55:28 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:44 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.142.2.2: preferred, colored; branchpoint 1.142: preferred, colored; next MAIN 1.143: preferred, colored
Changes since revision 1.142.2.2: +20 -16 lines
Sync with HEAD

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

Revision 1.147: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:35 2018 UTC (6 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 15 12:07:30 2018 UTC (6 years, 5 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.139.2.3: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.3: +18 -14 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 6 03:58:59 2018 UTC (6 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +18 -11 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 3 09:54:40 2018 UTC (6 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +5 -8 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:10 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.142.2.1: preferred, colored; branchpoint 1.142: preferred, colored
Changes since revision 1.142.2.1: +4 -4 lines
Sync with HEAD

Revision 1.144: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:02 2018 UTC (6 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0728
Branch point for: phil-wifi
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +4 -4 lines
 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 - view: text, markup, annotated - select for diffs
Thu Mar 22 01:44:51 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +15 -5 lines
Synch with HEAD, resolve conflicts

Revision 1.139.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 17 11:26:44 2018 UTC (6 years, 10 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.139.2.2: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.2: +15 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 16 17:12:04 2018 UTC (6 years, 10 months ago) by tih
Branches: 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
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +15 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 2 10:20:33 2018 UTC (7 years ago) by snj
Branches: netbsd-8
Diff to: previous 1.139.2.1: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.1: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 6 07:40:16 2017 UTC (7 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -4 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (7 years, 1 month ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.115.6.1: preferred, colored; branchpoint 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115.6.1: +198 -186 lines
update from HEAD

Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 8 22:20:59 2017 UTC (7 years, 2 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 30 16:01:19 2017 UTC (7 years, 2 months ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +3 -2 lines
Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change

Revision 1.140: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:12:40 2017 UTC (7 years, 2 months ago) by maya
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +14 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (7 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.7: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.4.7: +3 -2 lines
Sync with HEAD

Revision 1.139: download - view: text, markup, annotated - select for diffs
Wed May 24 06:52:14 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: 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
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 29 10:50:46 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.138.4.1: preferred, colored; branchpoint 1.138: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138.4.1: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 28 03:46:57 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -2 lines
Add a localcount to the devsw so it can be loaded as a rump module

Revision 1.134.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:05 2017 UTC (7 years, 9 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134: +94 -143 lines
Sync with HEAD

Revision 1.127.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:50 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.127.2.1: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.2.1: +95 -143 lines
Sync with HEAD

Revision 1.120.4.7: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:58 2017 UTC (7 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.6: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.4.6: +94 -144 lines
Sync with HEAD

Revision 1.138: download - view: text, markup, annotated - select for diffs
Sun Jan 29 18:30:33 2017 UTC (7 years, 11 months ago) by maya
Branches: 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
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +5 -4 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 26 21:38:11 2017 UTC (7 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3 lines
Fix logic inversion spotted by paulg

Revision 1.136: download - view: text, markup, annotated - select for diffs
Thu Jan 26 21:13:19 2017 UTC (7 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +65 -111 lines
Make MP-safe and use kmem(9)

Mostly from rmind-smpnet

Revision 1.135: download - view: text, markup, annotated - select for diffs
Mon Jan 23 15:32:04 2017 UTC (7 years, 11 months ago) by skrll
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +33 -37 lines
KNF. Same code before and after.

Revision 1.134: download - view: text, markup, annotated - select for diffs
Wed Jan 11 13:08:29 2017 UTC (8 years ago) by ozaki-r
Branches: MAIN
CVS tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -3 lines
Get rid of unnecessary header inclusions

Revision 1.127.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:21 2016 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -4 lines
Sync with HEAD

Revision 1.120.4.6: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:08 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.5: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.4.5: +82 -34 lines
Sync with HEAD

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sun Oct 2 14:17:07 2016 UTC (8 years, 3 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +3 -4 lines
MFREE -> m_free

Revision 1.132: download - view: text, markup, annotated - select for diffs
Wed Sep 7 10:27:44 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +34 -31 lines
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 - view: text, markup, annotated - select for diffs
Wed Sep 7 10:24:57 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +5 -5 lines
Rename tuncreate to tun_enable

It should be more proper.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Sep 5 02:25:37 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +13 -2 lines
Support tun devices on rump kernels

Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Sep 5 01:57:54 2016 UTC (8 years, 4 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3 lines
Fix typo in a comment

Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:38:34 2016 UTC (8 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +41 -6 lines
modularize some more drivers and merge the module glue

Revision 1.120.4.5: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:21 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.4: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.4.4: +5 -5 lines
Sync with HEAD

Revision 1.127: download - view: text, markup, annotated - select for diffs
Thu Jul 7 09:32:02 2016 UTC (8 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 2016 UTC (8 years, 7 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun May 29 08:44:38 2016 UTC (8 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.3: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.4.3: +4 -4 lines
Sync with HEAD

Revision 1.125: download - view: text, markup, annotated - select for diffs
Thu Apr 28 00:16:56 2016 UTC (8 years, 8 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 22 15:44:17 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.2: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.4.2: +4 -5 lines
Sync with HEAD

Revision 1.124: download - view: text, markup, annotated - select for diffs
Wed Apr 20 09:01:04 2016 UTC (8 years, 9 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20160422
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +4 -5 lines
IFQ_ENQUEUE refactor (3/3) : eliminate pktattr argument from IFQ_ENQUEUE caller

Revision 1.120.4.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:10 2015 UTC (9 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120.4.1: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.4.1: +6 -3 lines
Sync with HEAD

Revision 1.123: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:21:26 2015 UTC (9 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -2 lines
sprinkle _KERNEL_OPT

Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:19 2015 UTC (9 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -3 lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.120.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:25 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +5 -3 lines
Sync with HEAD

Revision 1.121: download - view: text, markup, annotated - select for diffs
Mon Apr 20 10:19:54 2015 UTC (9 years, 9 months ago) by roy
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +5 -3 lines
Introduce p2p_rtrequest() so that IFF_POINTOPOINT interfaces can work
with RTF_LOCAL.
Fixes PR kern/49829.

Revision 1.115.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:34 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +32 -38 lines
Rebase to HEAD as of a few days ago.

Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:15 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +9 -14 lines
Rebase.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:40 2014 UTC (10 years, 5 months ago) by dholland
Branches: 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
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 19 16:54:40 2014 UTC (10 years, 7 months ago) by ws
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -4 lines
Enqueue the mbuf with the start of the packet,
not some intermediate one (hi, rmind!).

Revision 1.118: download - view: text, markup, annotated - select for diffs
Thu Jun 5 23:48:16 2014 UTC (10 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +8 -14 lines
- 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 - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.114.2.1: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.2.1: +25 -26 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:46:12 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.115.10.1: preferred, colored; branchpoint 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115.10.1: +20 -8 lines
sync with head

Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Mar 20 06:48:54 2014 UTC (10 years, 10 months ago) by skrll
Branches: 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
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +14 -24 lines
Mechanically replace simplelock with kmutex_t.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:30 2014 UTC (10 years, 10 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +13 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 17 03:16:31 2013 UTC (11 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +260 -344 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:38 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +43 -38 lines
sync with head

Revision 1.114.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:38 2012 UTC (12 years, 11 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +43 -38 lines
merge to -current.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sat Jan 28 01:02:27 2012 UTC (12 years, 11 months ago) by rmind
Branches: 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
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +43 -38 lines
Replace tun_lock with mutex(9).  XXX: too far from being MP-safe yet.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Fri Oct 28 22:08:14 2011 UTC (13 years, 2 months ago) by dyoung
Branches: 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
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -6 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:55 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.106.2.3: preferred, colored; branchpoint 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.2.3: +6 -8 lines
sync with head.

Revision 1.112.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:01 2010 UTC (14 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112: +6 -8 lines
sync with head

Revision 1.112.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:20 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112: +6 -8 lines
Sync with HEAD.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:22:24 2010 UTC (14 years, 9 months ago) by joerg
Branches: 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
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +6 -8 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:27 2010 UTC (14 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.106.2.2: preferred, colored; branchpoint 1.106: preferred, colored
Changes since revision 1.106.2.2: +6 -17 lines
sync with head

Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:08:01 2010 UTC (15 years ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +6 -17 lines
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 - view: text, markup, annotated - select for diffs
Sat May 16 10:41:49 2009 UTC (15 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.106.2.1: preferred, colored; branchpoint 1.106: preferred, colored
Changes since revision 1.106.2.1: +5 -4 lines
sync with head

Revision 1.110.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:20 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +5 -4 lines
Sync with HEAD.

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

Revision 1.111: download - view: text, markup, annotated - select for diffs
Fri May 8 11:09:44 2009 UTC (15 years, 8 months ago) by elad
Branches: 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
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +5 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon May 4 08:14:15 2009 UTC (15 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +9 -13 lines
sync with head.

Revision 1.107.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:12 2009 UTC (16 years ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +7 -9 lines
Sync with HEAD.

Revision 1.103.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:31 2009 UTC (16 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.103.6.3: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.6.3: +5 -7 lines
Sync with HEAD.

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:26 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +7 -9 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu Nov 20 21:55:15 2008 UTC (16 years, 2 months ago) by dyoung
Branches: 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
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3 lines
Update comment for last.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Nov 20 21:54:42 2008 UTC (16 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:13 2008 UTC (16 years, 2 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +4 -6 lines
*** 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 - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:19 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.103.6.2: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.6.2: +2 -4 lines
Sync with HEAD.

Revision 1.106.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:58 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106: +4 -6 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.106.6.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:50 2008 UTC (16 years, 7 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106: +4 -6 lines
Sync with head.

Revision 1.105.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:13 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.105.2.1: preferred, colored; branchpoint 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.2.1: +4 -6 lines
sync with head.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Sun Jun 15 16:37:21 2008 UTC (16 years, 7 months ago) by christos
Branches: 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
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -6 lines
- 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 - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:22 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.103.6.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.6.1: +33 -7 lines
Sync with HEAD.

Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:27 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +35 -9 lines
sync with head.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:30 2008 UTC (16 years, 8 months ago) by ad
Branches: 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
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +35 -9 lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:07 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +16 -9 lines
Sync with HEAD.

Revision 1.76.8.11: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:09 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.10: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.8.10: +4 -4 lines
sync with head.

Revision 1.103.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:23 2008 UTC (16 years, 10 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103: +14 -7 lines
sync with head.

Revision 1.97.16.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:05 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.97.16.2: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.16.2: +23 -18 lines
sync with HEAD

Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -4 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.76.8.10: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:41 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.9: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.9: +14 -7 lines
sync with head.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:52 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +14 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 27 08:37:01 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.8: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.8: +3 -3 lines
sync with head.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Feb 20 17:05:53 2008 UTC (16 years, 11 months ago) by matt
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3 lines
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)

Revision 1.99.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:01 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.99.2.1: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.2.1: +11 -13 lines
Sync with HEAD.

Revision 1.76.8.8: download - view: text, markup, annotated - select for diffs
Mon Feb 11 15:00:00 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.7: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.7: +10 -12 lines
sync with head.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:22:02 2008 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: mjf-devfs-base
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +10 -12 lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:07 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.6: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.6: +3 -3 lines
sync with head

Revision 1.97.16.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:15 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.97.16.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.16.1: +4 -4 lines
sync with HEAD

Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:49 2008 UTC (17 years ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +3 -3 lines
Sync with HEAD

Revision 1.101: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:18:16 2008 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:34 2007 UTC (17 years, 1 month ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.97.14.2: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.14.2: +3 -3 lines
Sync with HEAD.

Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:21:06 2007 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3 lines
Sync with HEAD.

Revision 1.99.4.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:53 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking2
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +3 -3 lines
Sync with head.

Revision 1.76.8.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:34:17 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.5: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.5: +3 -3 lines
sync with head

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Dec 5 17:20:01 2007 UTC (17 years, 1 month ago) by pooka
Branches: 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
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 6 23:33:37 2007 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -4 lines
sync with HEAD

Revision 1.76.8.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:04 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.4: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.4: +3 -3 lines
sync with head.

Revision 1.97.14.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:04 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.97.14.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.14.1: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 25 22:40:07 2007 UTC (17 years, 2 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98: +3 -3 lines
Sync with HEAD.

Revision 1.97.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:18 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.97.2.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.2.1: +3 -3 lines
Sync with head.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:16:45 2007 UTC (17 years, 3 months ago) by ad
Branches: MAIN
CVS tags: vmlocking2-base1, vmlocking-nbase, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, mjf-devfs
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3 lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:43 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
Sync with head.

Revision 1.97.14.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:58 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
Sync with HEAD.

Revision 1.76.8.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:21 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.3: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.3: +14 -14 lines
sync with head.

Revision 1.97.10.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:23:12 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +3 -3 lines
Sync with HEAD.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Sep 1 04:32:51 2007 UTC (17 years, 4 months ago) by dyoung
Branches: 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
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:14 2007 UTC (17 years, 10 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.95.2.1: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.2.1: +13 -13 lines
Sync with HEAD.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:17 2007 UTC (17 years, 10 months ago) by christos
Branches: 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
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +13 -13 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:45 2007 UTC (17 years, 10 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -5 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.76.8.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:36 2007 UTC (17 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.2: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.2: +6 -6 lines
sync with head.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:34:10 2007 UTC (17 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: ad-audiomp-base, ad-audiomp
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:12 2007 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.1: +3 -3 lines
Sync with head.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Jan 4 19:07:03 2007 UTC (18 years ago) by elad
Branches: MAIN
CVS tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3 lines
Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.76.8.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:20 2006 UTC (18 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76.8.1: preferred, colored; branchpoint 1.76: preferred, colored
Changes since revision 1.76.8.1: +7 -11 lines
sync with head.

Revision 1.92.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:00 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.92.4.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.4.1: +11 -11 lines
sync with head.

Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:30 2006 UTC (18 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +4 -3 lines
Sync with head.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:40 2006 UTC (18 years, 2 months ago) by christos
Branches: 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
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +11 -11 lines
__unused removal on arguments; approved by core.

Revision 1.92.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:25 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +11 -10 lines
sync with head

Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:29 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +11 -10 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.82.2.6: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:55 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.82.2.5: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.2.5: +2 -7 lines
sync with head.

Revision 1.78.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:06 2006 UTC (18 years, 4 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +88 -16 lines
sync with head

Revision 1.92: download - view: text, markup, annotated - select for diffs
Thu Sep 7 02:40:33 2006 UTC (18 years, 4 months ago) by dogcow
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -7 lines
remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.

Revision 1.82.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:35 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.82.2.4: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.4: +3 -3 lines
sync with head.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Aug 30 17:00:15 2006 UTC (18 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base8
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines
fix initializer

Revision 1.82.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:46:16 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.82.2.3: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.3: +4 -4 lines
sync with head

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:13 2006 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4 lines
Use the LWP cached credentials where sane.

Revision 1.76.8.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:27 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +135 -92 lines
sync with head.

Revision 1.78.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:38 2006 UTC (18 years, 7 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.78.6.1: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.6.1: +4 -3 lines
Sync with head.

Revision 1.82.6.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:44 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.82.6.1: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.6.1: +34 -5 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.82.2.3: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:56 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.82.2.2: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.2: +5 -4 lines
sync with head.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun May 14 21:19:33 2006 UTC (18 years, 8 months ago) by elad
Branches: 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
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3 lines
integrate kauth.

Revision 1.82.4.5: download - view: text, markup, annotated - select for diffs
Thu May 11 23:31:08 2006 UTC (18 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.82.4.4: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.4.4: +3 -3 lines
sync with head

Revision 1.82.4.4: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:59 2006 UTC (18 years, 8 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.82.4.3: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.4.3: +3 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:06 2006 UTC (18 years, 9 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +84 -8 lines
Sync with head.

Revision 1.82.4.3: download - view: text, markup, annotated - select for diffs
Wed Apr 19 04:46:10 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.82.4.2: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.4.2: +35 -6 lines
sync with head.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Apr 18 19:30:49 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
Fix another typo... I must be on drugs...

Revision 1.82.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 11 11:55:48 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.82.2.1: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.1: +34 -6 lines
sync with head

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sat Apr 8 12:14:42 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-pdpolicy-base4
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +8 -6 lines
IFHEAD and PREPADDR are mutually exclusive. From FreeBSD.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Apr 4 15:43:23 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +11 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 4 11:33:15 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +10 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 3 23:29:39 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +14 -3 lines
Implement TUN_IFHEAD, the missing piece that was breaking old applications.

Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:43 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -2 lines
sync with head.

Revision 1.82.6.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:29 2006 UTC (18 years, 9 months ago) by tron
Branches: peter-altq
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -2 lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Mar 29 19:29:00 2006 UTC (18 years, 9 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-pdpolicy-base3
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -2 lines
Add missing break tunwrite() which was causing EAFNOSUPPORT to be
returned, thus making IPv6 support broken.
!@#$%^...

Revision 1.82.4.2: download - view: text, markup, annotated - select for diffs
Fri Mar 10 15:05:22 2006 UTC (18 years, 10 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.82.4.1: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.4.1: +3 -3 lines
generic_authorize() -> kauth_authorize_generic().

Revision 1.82.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:11:55 2006 UTC (18 years, 10 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
Adapt to kernel authorization KPI.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Mar 3 19:57:37 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -4 lines
Some minor KNF.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Mar 3 19:46:35 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
Fix typo in comment.

Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:47 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.78.2.1: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.1: +46 -9 lines
sync with head.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Feb 28 00:38:35 2006 UTC (18 years, 10 months ago) by rpaulo
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +46 -9 lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:23 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +12 -2 lines
sync with head.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Feb 5 16:44:55 2006 UTC (18 years, 11 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +12 -2 lines
Add preliminary/not tested support for IPv6.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Dec 11 23:05:25 2005 UTC (19 years, 1 month ago) by thorpej
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +47 -82 lines
ANSI function decls and application of static.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:51 2005 UTC (19 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +14 -13 lines
merge ktrace-lwp.

Revision 1.75.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:31 2005 UTC (19 years, 8 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +4 -4 lines
sync with -current

Revision 1.63.2.7: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:47:44 2005 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.63.2.6: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.6: +4 -4 lines
Sync with HEAD.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Jan 24 21:25:09 2005 UTC (19 years, 11 months ago) by matt
Branches: 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
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4 lines
Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.

Revision 1.63.2.6: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:32:51 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.63.2.5: preferred, colored
Changes since revision 1.63.2.5: +8 -11 lines
Sync with HEAD.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Dec 6 02:59:23 2004 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
Sprinkle #ifdef INET to make a GENERIC kernel compile with INET undefined.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Dec 4 23:22:58 2004 UTC (20 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -7 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 4 18:31:43 2004 UTC (20 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -4 lines
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 - view: text, markup, annotated - select for diffs
Tue Sep 21 13:36:41 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.63.2.4: preferred, colored
Changes since revision 1.63.2.4: +14 -13 lines
Fix the sync with head I botched.

Revision 1.63.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:54:16 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.63.2.3: preferred, colored
Changes since revision 1.63.2.3: +13 -14 lines
Sync with HEAD.

Revision 1.63.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:58:59 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.63.2.2: preferred, colored
Changes since revision 1.63.2.2: +6 -30 lines
Sync with HEAD.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Aug 19 20:58:24 2004 UTC (20 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -30 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:18 2004 UTC (20 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.63.2.1: preferred, colored
Changes since revision 1.63.2.1: +266 -189 lines
Sync with HEAD

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Jun 6 04:36:29 2004 UTC (20 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -13 lines
Use bpf_mtap2 in tun(4).

Revision 1.68.2.2: download - view: text, markup, annotated - select for diffs
Thu May 20 12:28:17 2004 UTC (20 years, 8 months ago) by grant
Branches: 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
Diff to: previous 1.68.2.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.2.1: +4 -3 lines
Pull up revision 1.69 (requested by tron in ticket #325):

Initialize interface type to IFT_TUNNEL as suggested by Erik Änggård
in PR kern/25555.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Sat May 15 13:42:19 2004 UTC (20 years, 8 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +239 -140 lines
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 - view: text, markup, annotated - select for diffs
Fri May 14 13:23:12 2004 UTC (20 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +239 -140 lines
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 - view: text, markup, annotated - select for diffs
Thu May 13 11:31:09 2004 UTC (20 years, 8 months ago) by tron
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -3 lines
Initialize interface type to IFT_TUNNEL as suggested by Erik Änggård
in PR kern/25555.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Mon Mar 1 13:54:02 2004 UTC (20 years, 10 months ago) by tron
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +8 -8 lines
Don't leak memory if a copyin fails.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Sep 22 20:49:39 2003 UTC (21 years, 4 months ago) by cl
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -4 lines
pass signo to fownsignal #ifdef ALTQ

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Sep 22 13:00:03 2003 UTC (21 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +5 -4 lines
- pass signo to fownsignal [ok by jd]
- make urg signal handling use fownsignal
- remove out of band detection in sowakeup

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Sep 22 03:29:34 2003 UTC (21 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -3 lines
kill unused variable in #ifdef ALTQ part, to make this compile
with ALTQ configured in

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Sep 21 19:17:14 2003 UTC (21 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +19 -34 lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:56 2003 UTC (21 years, 6 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +13 -12 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:51 2003 UTC (21 years, 6 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +10 -11 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 28 14:22:07 2003 UTC (21 years, 6 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +13 -12 lines
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 - view: text, markup, annotated - select for diffs
Fri May 2 03:15:24 2003 UTC (21 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
KNF

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu May 1 07:52:59 2003 UTC (21 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 13 10:24:38 2003 UTC (21 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +11 -3 lines
Validate pgid arg to TIOCSPGRP

Revision 1.42.2.10: download - view: text, markup, annotated - select for diffs
Sun Dec 29 20:55:45 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.42.2.9: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.9: +8 -2 lines
Sync with HEAD.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Dec 25 08:40:20 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +8 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 11 06:46:32 2002 UTC (22 years, 1 month ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.42.2.8: preferred, colored
Changes since revision 1.42.2.8: +3 -3 lines
Sync with HEAD.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Nov 26 18:51:19 2002 UTC (22 years, 1 month ago) by christos
Branches: MAIN
CVS tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -5 lines
si_ -> sel_

Revision 1.42.2.8: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:15:03 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.7: preferred, colored
Changes since revision 1.42.2.7: +74 -3 lines
Catch up to -current

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:14:42 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +76 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 18 02:45:13 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.6: preferred, colored
Changes since revision 1.42.2.6: +1 -2 lines
Catch up to -current.

Revision 1.43.2.10: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:49 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.43.2.9: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.9: +16 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 2 22:02:30 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.43.2.8: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.8: +5 -5 lines
do not need the (void *) cast for kn_hook anymore

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Sep 23 05:51:11 2002 UTC (22 years, 4 months ago) by simonb
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -3 lines
Remove breaks after returns, unreachable returns and returns after
returns(!).

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Sep 23 04:26:17 2002 UTC (22 years, 4 months ago) by simonb
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
uio_resid is a size_t (ie, unsigned), so don't check if it's less than 0.

Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:22:56 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.5: preferred, colored
Changes since revision 1.42.2.5: +12 -0 lines
Catch up to -current.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 4 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +14 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 6 08:49:00 2002 UTC (22 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.43.2.7: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.7: +7 -2 lines
sync kqueue branch with HEAD

Revision 1.51.4.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 00:56:43 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.51.4.1: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.4.1: +7 -2 lines
catch up with -current.

Revision 1.42.2.5: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:42 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.4: preferred, colored
Changes since revision 1.42.2.4: +5 -0 lines
Catch up to -current.

Revision 1.51.6.1: download - view: text, markup, annotated - select for diffs
Tue Jul 30 01:38:33 2002 UTC (22 years, 5 months ago) by lukem
Branches: 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
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 29 16:53:30 2002 UTC (22 years, 5 months ago) by atatat
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -2 lines
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 - view: text, markup, annotated - select for diffs
Thu May 16 03:57:33 2002 UTC (22 years, 8 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +14 -2 lines
Add the character device switch.

Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:48:25 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.3: preferred, colored
Changes since revision 1.42.2.3: +58 -17 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.43.2.7: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:02:08 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.43.2.6: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.6: +59 -18 lines
Catch up with -current.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Mar 13 06:43:18 2002 UTC (22 years, 10 months ago) by itojun
Branches: MAIN
CVS tags: netbsd-1-6-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
suppress -Wunused if !INET6

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Mar 5 04:13:01 2002 UTC (22 years, 10 months ago) by itojun
Branches: MAIN
CVS tags: newlock-base, newlock
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +59 -18 lines
bring in latest ALTQ from kjc.  ALTQify some of the drivers.

Revision 1.43.2.6: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:02:16 2002 UTC (23 years ago) by thorpej
Branches: kqueue
Diff to: previous 1.43.2.5: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.5: +234 -56 lines
Sync kqueue branch with -current.

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:17:27 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.2: preferred, colored
Changes since revision 1.42.2.2: +233 -55 lines
Catch up to -current.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Nov 13 00:49:36 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -5 lines
remove unnecessary #if NFOO > 0    .... #endif  wrappers

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Nov 12 23:49:45 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -1 lines
add RCSIDs

Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:19:19 2001 UTC (23 years, 2 months ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +230 -52 lines
Sync the thorpej-mips-cache branch with -current.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Nov 5 18:02:16 2001 UTC (23 years, 2 months ago) by matt
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -5 lines
Switch to using queue access macros instead of refering to the member
fields explicitly.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Oct 31 20:08:17 2001 UTC (23 years, 2 months ago) by atatat
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +228 -48 lines
Turn the tun device/network interface into a cloning device.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:25 2001 UTC (23 years, 3 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +32 -15 lines
* 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 - view: text, markup, annotated - select for diffs
Sat Sep 8 18:12:21 2001 UTC (23 years, 4 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.43.2.4: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.4: +9 -1 lines
Use the seltrue filter as appropriate (or, rather, as the "poll"
entry points of these drivers indicate).

Revision 1.43.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 8 04:08:24 2001 UTC (23 years, 4 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.43.2.3: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.3: +3 -3 lines
Oops, selwakeup() -> selnotify() for last.

Revision 1.43.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 8 03:42:26 2001 UTC (23 years, 4 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.43.2.2: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.2: +63 -1 lines
Add kqueue support.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:42 2001 UTC (23 years, 4 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +28 -25 lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 25 06:16:59 2001 UTC (23 years, 5 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.2.1: +3 -9 lines
Merge Aug 24 -current into the kqueue branch.

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:12:16 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.1: preferred, colored
Changes since revision 1.42.2.1: +3 -4 lines
Catch up with -current.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Aug 3 21:11:57 2001 UTC (23 years, 5 months ago) by itojun
Branches: 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
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -9 lines
simplify previous fix (0-length mbuf in mbuf chain).  from freebsd

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:52 2001 UTC (23 years, 5 months ago) by lukem
Branches: kqueue
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -1 lines
update to -current

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Aug 2 13:37:51 2001 UTC (23 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -1 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 21 20:08:17 2001 UTC (23 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -10 lines
Catch up to -current.

Revision 1.38.2.5: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:42 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.4: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.4: +10 -10 lines
Sync with HEAD

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Apr 13 23:30:18 2001 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: kqueue
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -10 lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:53 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.3: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.3: +1 -0 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jan 17 00:30:52 2001 UTC (24 years ago) by thorpej
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:53 2001 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.2: +1 -0 lines
Sync with HEAD

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Dec 18 19:50:45 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1 lines
Fill in if_dlt.

Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:33 2000 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +6 -6 lines
Sync with HEAD (for UBC fixes).

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Dec 12 18:00:31 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -6 lines
Adapt to bpfattach() changes, and further centralize the bpfattach()
and bpfdetach() calls into link-type subroutines where possible.

Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:10:08 2000 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -6 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:45:37 2000 UTC (24 years, 9 months ago) by augustss
Branches: 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
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +6 -6 lines
Kill some more register declarations.

Revision 1.37.6.2: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:35:07 1999 UTC (25 years, 1 month ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.37.6.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.6.1: +0 -0 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 1 23:45:20 1999 UTC (25 years, 6 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +9 -1 lines
Sync w/ -current.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:48 1999 UTC (25 years, 6 months ago) by itojun
Branches: 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
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +9 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 28 06:36:56 1999 UTC (25 years, 6 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705, kame_14_19990628
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +9 -1 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 4 02:38:31 1999 UTC (25 years, 10 months ago) by mjacob
Branches: 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
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -2 lines
adjust format args for compiler changes

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 11 04:53:06 1998 UTC (26 years, 1 month ago) by kenh
Branches: kenh-if-detach
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +41 -6 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 30 21:43:11 1998 UTC (26 years, 1 month ago) by sommerfe
Branches: MAIN
CVS tags: kenh-if-detach-base
Branch point for: kenh-if-detach
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -2 lines
Fix PR6473: allow sends to tun* devices using bpf.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Aug 20 19:55:07 1998 UTC (26 years, 5 months ago) by veego
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -2 lines
Add some braces to stop the new egcs warnings.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Jul 5 06:49:17 1998 UTC (26 years, 6 months ago) by jonathan
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -1 lines
defopt NS, NSIP.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jul 5 00:51:27 1998 UTC (26 years, 6 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -1 lines
defopt INET, NETATALK.

Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 29 07:21:15 1997 UTC (27 years, 3 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +33 -3 lines
Update marc-pcmcia branch from trunk.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Sep 25 13:11:58 1997 UTC (27 years, 4 months ago) by matt
Branches: 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
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +21 -1 lines
Add SIOC{ADD|DEL}MULTI ioctl to support (for IFF_MULTICAST).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Sep 24 19:45:11 1997 UTC (27 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +13 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 15 18:12:29 1997 UTC (27 years, 10 months ago) by is
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 9 20:59:05 1997 UTC (27 years, 10 months ago) by is
Branches: is-newarp
Diff to: previous 1.29.4.1: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.4.1: +3 -3 lines
netinet/if_ether.h -> netinet/if_inarp.h

Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Fri Feb 7 18:07:00 1997 UTC (27 years, 11 months ago) by is
Branches: is-newarp
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -1 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 13 02:11:07 1996 UTC (28 years, 3 months ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base
Branch point for: is-newarp
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
backout previous kprintf change

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Oct 10 22:59:52 1996 UTC (28 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
- printf -> kprintf, sprintf -> ksprintf

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Sep 7 12:41:26 1996 UTC (28 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +19 -19 lines
Implement poll(2).

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jun 25 22:15:13 1996 UTC (28 years, 7 months ago) by pk
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +120 -33 lines
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 - view: text, markup, annotated - select for diffs
Wed May 22 13:42:57 1996 UTC (28 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Removing a completely unneeded reference to curproc.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue May 7 02:40:48 1996 UTC (28 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +26 -30 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 30 21:57:35 1996 UTC (28 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Eliminate need for and remove net_conf.h

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 13 22:00:26 1996 UTC (28 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +24 -25 lines
Net prototypes

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Feb 5 17:39:25 1996 UTC (28 years, 11 months ago) by scottr
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Grammar police; noted by Peter Seebach <seebs@solon.com>.  Closes PR #1982.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 1 07:28:18 1996 UTC (28 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -6 lines
Rename tunioctl() and tuncioctl() so that cdevsw points to the right one.
From der Mouse, PR 2005.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Dec 13 23:47:40 1995 UTC (29 years, 1 month ago) by pk
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +5 -2 lines
Return actual packet length in FIONREAD (noted by Bob Smart).

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 13 05:59:37 1995 UTC (29 years, 7 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -6 lines
Update to match data structure changes.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jun 12 01:09:20 1995 UTC (29 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +18 -17 lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 8 02:57:09 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -6 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 30 21:48:57 1994 UTC (30 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -5 lines
be more careful with types, also pull in headers where necessary.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:36:25 1994 UTC (30 years, 6 months ago) by cgd
Branches: 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
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu May 26 00:47:19 1994 UTC (30 years, 8 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
MIN -> min

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun May 15 19:20:02 1994 UTC (30 years, 8 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -8 lines
repair protos and functions

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 3 23:02:07 1994 UTC (30 years, 8 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +26 -17 lines
fixes from <brad@fcr.com> who claims it now works correctly

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Feb 28 07:16:10 1994 UTC (30 years, 10 months ago) by andrew
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Fixed a bug with TUN_OPEN flag handling during tunclose(), as noted by
Mark Delany <markd@bushwire.apana.org.au>.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Dec 24 03:20:59 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -1 lines
must pull in machine-cpu.h

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Dec 13 05:06:33 1993 UTC (31 years, 1 month ago) by deraadt
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +163 -98 lines
tunnel driver cleanup done by Brad Parker <brad@fcr.com> and myself

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Nov 14 20:33:26 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -6 lines
use one stop shopping selwakeup/selrecord

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Nov 14 20:07:20 1993 UTC (31 years, 2 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +401 -485 lines
cleaned up version of the tunnel driver

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 3 21:31:40 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +1 -2 lines
Delete useless assignments to if_init.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Aug 9 01:19:38 1993 UTC (31 years, 5 months ago) by deraadt
Branches: MAIN
CVS tags: magnum-base
Branch point for: magnum
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -3 lines
suser() was being called in the old 4.3 way

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Aug 7 08:11:46 1993 UTC (31 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -44 lines
merge in changes from netbsd-0-9-ALPHA2

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 31 12:23:09 1993 UTC (31 years, 5 months ago) by cgd
Branches: netbsd-0-9
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +5 -2 lines
give names, err, wmesg's, to my "pain" -- i.e. convert sleep() to tsleep()

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat May 22 11:42:13 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-base, netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -1 lines
add include of select.h if necessary for protos, or delete if extraneous

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue May 18 18:19:58 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -17 lines
make kernel select interface be one-stop shopping & clean it all up.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>