CVS log for src/sys/net/if_tap.c
Up to [cvs.NetBSD.org] / src / sys / net
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun Nov 10 10:57:52 2024 UTC (4 weeks, 2 days ago) by mlelstv
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +4 -2
lines
Add MBUFTRACE
Revision 1.127.4.3: download - view: text, markup, annotated - select for diffs
Thu Sep 12 20:08:51 2024 UTC (2 months, 4 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.127.4.2: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.4.2: +3 -3
lines
Pull up following revision(s) (requested by rin in ticket #852):
sys/net/if_tap.c: revision 1.134
if_tap: Explicitly include "opt_net_mpsafe.h", NFC
because it was included via <net/if.h> anyway.
Revision 1.127.4.2: download - view: text, markup, annotated - select for diffs
Wed Sep 11 16:12:49 2024 UTC (2 months, 4 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.127.4.1: preferred, colored; branchpoint 1.127: preferred, colored
Changes since revision 1.127.4.1: +24 -45
lines
Pull up following revision(s) (requested by rin in ticket #825):
sys/net/if_tap.c: revision 1.129
sys/net/if_tap.c: revision 1.130
sys/net/if_tap.c: revision 1.131
sys/net/if_tap.c: revision 1.132
tap(4): Prune dead branches around tap_dev_close.
No functional change intended.
PR kern/58166
tap(4): Prune dead branches around tap_dev_destroyer.
No functional change intended.
PR kern/58166
tap(4): Use DETACH_FORCE with config_detach.
It doesn't make a difference here, because tap_detach never fails,
but let's make it more obvious at the call site that failure is
forbidden here.
No functional change intended.
PR kern/58166
tap(4): Just use mutex_enter.
PR kern/58167
Revision 1.135: download - view: text, markup, annotated - select for diffs
Sun Sep 8 09:36:51 2024 UTC (3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
fix a/an grammar in obvious cases
Revision 1.134: download - view: text, markup, annotated - select for diffs
Sun Aug 18 12:35:47 2024 UTC (3 months, 3 weeks ago) by rin
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -3
lines
if_tap: Explicitly include "opt_net_mpsafe.h", NFC
because it was included via <net/if.h> anyway.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Fri Jul 5 04:31:53 2024 UTC (5 months ago) by rin
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +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.132: download - view: text, markup, annotated - select for diffs
Wed Apr 17 18:52:54 2024 UTC (7 months, 3 weeks ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -9
lines
tap(4): Just use mutex_enter.
PR kern/58167
Revision 1.131: download - view: text, markup, annotated - select for diffs
Wed Apr 17 18:52:39 2024 UTC (7 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -3
lines
tap(4): Use DETACH_FORCE with config_detach.
It doesn't make a difference here, because tap_detach never fails,
but let's make it more obvious at the call site that failure is
forbidden here.
No functional change intended.
PR kern/58166
Revision 1.130: download - view: text, markup, annotated - select for diffs
Wed Apr 17 18:52:25 2024 UTC (7 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +18 -27
lines
tap(4): Prune dead branches around tap_dev_destroyer.
No functional change intended.
PR kern/58166
Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Apr 17 18:32:13 2024 UTC (7 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +7 -13
lines
tap(4): Prune dead branches around tap_dev_close.
No functional change intended.
PR kern/58166
Revision 1.127.4.1: download - view: text, markup, annotated - select for diffs
Fri Jan 6 13:54:58 2023 UTC (23 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -2
lines
Pull up following revision(s) (requested by ozaki-r in ticket #38):
sys/net/if_tap.c: revision 1.128
tap: link up an interface cloned from /dev/tap
Fix PR 57155 (partially)
Revision 1.128: download - view: text, markup, annotated - select for diffs
Fri Jan 6 01:54:22 2023 UTC (23 months ago) by ozaki-r
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -2
lines
tap: link up an interface cloned from /dev/tap
Fix PR 57155 (partially)
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Apr 10 09:50:46 2022 UTC (2 years, 8 months ago) by andvar
Branches: MAIN
CVS tags: netbsd-10-base,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
fix various typos in comments and output/log messages.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Thu Mar 31 19:30:17 2022 UTC (2 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +15 -21
lines
For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:
devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()
While here, add a few missing calls to some of the detach
routines.
Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.
No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!
XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
Revision 1.125: download - view: text, markup, annotated - select for diffs
Mon Mar 28 12:33:22 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -6
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.124: download - view: text, markup, annotated - select for diffs
Sun Sep 26 15:58:33 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +11 -17
lines
Use seltrue_filtops rather than rolling our own with filt_seltrue.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:10 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +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.121.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:35 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.121: preferred, colored; next MAIN 1.122: preferred, colored
Changes since revision 1.121: +3 -11
lines
Sync w/ HEAD.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:19 2021 UTC (3 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -11
lines
if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:
https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html
However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:
https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html
So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)
There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.
(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)
Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:04 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +4 -4
lines
Sync w/ HEAD.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Dec 18 01:31:49 2020 UTC (3 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +4 -4
lines
Use sel{record,remove}_knote().
Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Oct 30 22:51:08 2020 UTC (4 years, 1 month ago) by christos
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +15 -6
lines
use c99 initializers
Revision 1.119: download - view: text, markup, annotated - select for diffs
Sun Sep 27 13:44:47 2020 UTC (4 years, 2 months ago) by roy
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +8 -4
lines
tap: Report link state based on if the interface has been opened or not
While a nice addition, it does render tap(4) useless as a bridge(4)
endpoint. We now have vether(4) for use as bridge endpoint.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Sep 26 19:38:45 2020 UTC (4 years, 2 months ago) by roy
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -63
lines
tap: Remove media from this virtual interface
It serves no purpose at all.
Revision 1.106.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:15 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.106.2.2: preferred, colored; branchpoint 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.2.2: +8 -2
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.106.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:57 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.106.2.1: preferred, colored; branchpoint 1.106: preferred, colored
Changes since revision 1.106.2.1: +22 -8
lines
Merge changes from current as of 20200406
Revision 1.115.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:06 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115: +10 -13
lines
Sync with head.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Tue Feb 4 05:46:32 2020 UTC (4 years, 10 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.116: preferred, colored
Changes since revision 1.116: +3 -3
lines
Use ifmedia_fini().
Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Jan 29 04:28:27 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +9 -12
lines
Adopt <net/if_stats.h>.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Mon Jan 6 20:31:35 2020 UTC (4 years, 11 months ago) by christos
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +19 -2
lines
Add missing packet filter hooks, byte accounting.
Revision 1.113.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 1 09:34:27 2019 UTC (5 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +10 -4
lines
Pull up following revision(s) (requested by knakahara in ticket #387):
sys/net/if_gre.c: revision 1.176
sys/net/if_l2tp.c: revision 1.40
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.56
sys/net/if_tap.c: revision 1.114
Fix missing kpreempt_disable() before softint_schedule() like if_vmx.c:r1.51.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Oct 16 06:53:34 2019 UTC (5 years, 1 month ago) by knakahara
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +10 -4
lines
Fix missing kpreempt_disable() before softint_schedule() like if_vmx.c:r1.51.
Revision 1.106.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:45 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +62 -61
lines
Sync with HEAD
Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed May 29 10:07:30 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -8
lines
Even if we don't use MII(4), use the common path of SIOC[GS]IFMEDIA in
sys/net/if_ethersubr.c if we can.
- Add ec_ifmedia into struct ethercom.
- ec_mii in struct ethercom is kept and used as it is. It might be used in
future. Note that some Ethernet drivers which _DOESN'T_ use mii(4) use
ec_mii for keeping the if_media. Those should be changed in future.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue May 21 09:18:37 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +35 -32
lines
KNF. No functional change.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Fri Apr 26 11:51:56 2019 UTC (5 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3
lines
Some more empty-string --> NULL conversions for module dependencies
Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Apr 16 04:26:02 2019 UTC (5 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -11
lines
The path of SOICSIFMEDA or TAPGIFNAME calls are as follows:
doifioctl()
pre-convert (if_cvtcmd_43_hook & ifreqo2n)
(*ifp->if_ioctl)(ifp, cmd, data);
post-convert (ifreqn2o)
so it's not required to check OSIOCSIFMEDIA and OTAPGIFNAME in if_tap.c.
Those two command is converted to new command in if_cvtcmd_43_hook and
always new commands are seen in tap_ioctl().
OK'd by pgoyette.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon Mar 25 09:59:59 2019 UTC (5 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3
lines
Put the #ifdef where it belongs (after defining the out2 label which is
referenced only inside #ifdef block)
Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon Mar 25 09:32:25 2019 UTC (5 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +25 -13
lines
Resequence the activities in tapdetach() so that no new units can be
created, either by opening /dev/tap or ifconfig tapx create, before
checking to see if we have any active units.
Revision 1.105.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:44 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
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 -4
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:35 2018 UTC (6 years, 3 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.106: preferred, colored
Changes since revision 1.106: +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.105.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:10 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -5
lines
Sync with HEAD
Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:02 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728
Branch point for: phil-wifi
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -5
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.105: download - view: text, markup, annotated - select for diffs
Tue Dec 19 03:32:35 2017 UTC (6 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +6 -3
lines
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.99.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 10:10:25 2017 UTC (7 years ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.99.6.1: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.6.1: +16 -6
lines
Pull up following revision(s) (requested by msaitoh in ticket #427):
sys/arch/amiga/dev/if_bah_zbus.c: 1.17
sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
sys/arch/usermode/dev/if_veth.c: 1.9
sys/dev/ic/an.c: 1.66
sys/dev/ic/athn.c: 1.17
sys/dev/ic/atw.c: 1.162
sys/dev/ic/bwi.c: 1.33
sys/dev/ic/dwc_gmac.c: 1.41-1.42
sys/dev/ic/malo.c: 1.10
sys/dev/ic/rt2560.c: 1.31
sys/dev/ic/rt2661.c: 1.36
sys/dev/ic/rt2860.c: 1.29
sys/dev/ic/rtw.c: 1.127
sys/dev/ic/rtwvar.h: 1.46
sys/dev/ic/smc90cx6.c: 1.71
sys/dev/ic/smc90cx6var.h: 1.12
sys/dev/ic/wi.c: 1.244
sys/dev/pci/if_ipw.c: 1.66
sys/dev/pci/if_iwi.c: 1.104
sys/dev/pci/if_iwm.c: 1.76
sys/dev/pci/if_iwn.c: 1.86
sys/dev/pci/if_rtwn.c: 1.13
sys/dev/pci/if_wm.c: 1.541
sys/dev/pci/if_wpi.c: 1.79
sys/dev/pci/ixgbe/ixgbe.c: 1.106
sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
sys/dev/scsipi/if_se.c: 1.95
sys/dev/usb/if_upl.c: 1.60
sys/net/if.c: 1.396
sys/net/if.h: 1.241
sys/net/if_arc.h: 1.23
sys/net/if_arcsubr.c: 1.78
sys/net/if_bridge.c: 1.136-1.137
sys/net/if_etherip.c: 1.39
sys/net/if_faith.c: 1.56
sys/net/if_gif.c: 1.131
sys/net/if_loop.c: 1.96
sys/net/if_mpls.c: 1.30
sys/net/if_pppoe.c: 1.129
sys/net/if_srt.c: 1.27
sys/net/if_stf.c: 1.102
sys/net/if_tap.c: 1.100
sys/net/if_vlan.c: 1.105
sys/netinet/ip_carp.c: 1.91
sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
Return if bah_attach_subr() failed.
If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
If error occured in bcmeth_ccb_attach(), free resources and return.
If error occured in pq3etsec_attach(), free resources and return.
If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
If if_initialize() failed in the attach function, free resources and return.
If if_attach() failed in the attach function, free resources and return.
- If if_initialize() failed in the attach function, free resources and return.
- KNF
- If if_attach() failed in the attach function, free resources and return.
- KNF
Fix compile error.
Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice
Revision 1.67.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.67.2.3: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67.2.3: +182 -165
lines
update from HEAD
Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:55 2017 UTC (7 years ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -2
lines
add fo_name so we can identify the fileops in a simple way.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Nov 29 19:27:52 2017 UTC (7 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3
lines
set IFEF_MPSAFE
Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Nov 29 19:21:44 2017 UTC (7 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +38 -62
lines
Make tap(4) MP-safe.
Revision 1.99.6.1: download - view: text, markup, annotated - select for diffs
Wed Nov 8 22:20:59 2017 UTC (7 years, 1 month ago) by snj
Branches: netbsd-8
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +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.101: download - view: text, markup, annotated - select for diffs
Mon Oct 30 16:01:19 2017 UTC (7 years, 1 month ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -2
lines
Set IFEF_NO_LINK_STATE_CHANGE flag to pseudo devices that don't use if_link_state_change
Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:32:33 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +16 -6
lines
- If if_initialize() failed in the attach function, free resources and return.
- KNF
Revision 1.80.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:11 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.2.6: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.2.6: +62 -63
lines
Sync with HEAD
Revision 1.99.4.3: download - view: text, markup, annotated - select for diffs
Wed May 17 02:40:58 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.99.4.2: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.4.2: +3 -2
lines
Actually return the retrun value that we computed.
Revision 1.99.4.2: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:18 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.99.4.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.4.1: +13 -4
lines
At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.
Adapt callers to expect the reference to exist, and to ensure that the
reference is released.
Revision 1.99.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:38 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -2
lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:05 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +64 -65
lines
Sync with HEAD
Revision 1.84.2.6: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:50 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.84.2.5: preferred, colored; branchpoint 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84.2.5: +68 -58
lines
Sync with HEAD
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Feb 12 09:47:31 2017 UTC (7 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: prg-localcount2,
netbsd-8
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +10 -10
lines
Whitespace
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Feb 12 08:51:45 2017 UTC (7 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +6 -6
lines
Convert to kmem(9)
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Feb 12 08:47:12 2017 UTC (7 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3
lines
Typo in comment
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Feb 12 08:40:19 2017 UTC (7 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +11 -12
lines
KNF (sort #include <sys/...>) and remove a duplicate
Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Feb 7 11:17:50 2017 UTC (7 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +43 -43
lines
KNF and trailing whitespace. No functional change.
Revision 1.80.2.6: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:58 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.2.5: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.2.5: +2 -4
lines
Sync with HEAD
Revision 1.84.2.5: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:50 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.84.2.4: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.4: +2 -4
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:06 2016 UTC (7 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +2 -4
lines
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input
The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
- Where/When if_ipackets is counted up
- Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
- This makes it easy to MP-ify bpf
Proposed on tech-kern and tech-net
Revision 1.84.2.4: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:21 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.84.2.3: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.3: +3 -4
lines
Sync with HEAD
Revision 1.80.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:08 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.2.4: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.2.4: +73 -37
lines
Sync with HEAD
Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Oct 2 14:17:07 2016 UTC (8 years, 2 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-20161104,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -4
lines
MFREE -> m_free
Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Aug 15 05:10:33 2016 UTC (8 years, 3 months ago) by christos
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -18
lines
remove MODULAR/COMPAT_40 ifdef.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Aug 14 11:03:21 2016 UTC (8 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +22 -14
lines
fix rump tests.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Aug 8 16:40:39 2016 UTC (8 years, 4 months ago) by kre
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -3
lines
create++, destroy--
Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Aug 8 09:51:39 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3
lines
Typo (missing ampersand)
Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Aug 8 09:42:33 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +7 -8
lines
Final part of fixing if_tap. The module needs to attach its cdevsw (and
detach it later).
Revision 1.87: download - view: text, markup, annotated - select for diffs
Mon Aug 8 09:23:13 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +9 -2
lines
Add the devsw_attach stuff, since the tap device can be accessed via
/dev/tap
This is a partial fix for the build. The rump tap component will be
fixed shortly.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Aug 8 07:35:12 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +12 -2
lines
Partial fix - restore creation of our sysctl subtree for _MODULE
builds (it's already handled for built-in builds via registration
in a link-set).
XXX The build is still broken in rump...
Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Aug 7 17:38:34 2016 UTC (8 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +41 -12
lines
modularize some more drivers and merge the module glue
Revision 1.84.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:40 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.84.2.2: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.2: +3 -3
lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT. This better describes
what we're doing, and why.
Revision 1.84.2.2: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:27:00 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.84.2.1: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.2.1: +3 -9
lines
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.
As suggested by riastradh@
Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 18 03:50:00 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +10 -2
lines
Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.
Revision 1.80.2.4: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:21 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.2.3: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.2.3: +3 -3
lines
Sync with HEAD
Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:16 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.83: preferred, colored
Changes since revision 1.83: +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.80.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:32 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.2.2: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.2.2: +3 -3
lines
Sync with HEAD
Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:12 2016 UTC (8 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
Introduce softint-based if_input
This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.
This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.
To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.
Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html
Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
Revision 1.80.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:10 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80.2.1: preferred, colored; branchpoint 1.80: preferred, colored
Changes since revision 1.80.2.1: +5 -5
lines
Sync with HEAD
Revision 1.82: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:19 2015 UTC (9 years, 3 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -4
lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:22 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -5
lines
Sync with HEAD
Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Dec 17 09:41:30 2014 UTC (9 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20150606,
nick-nhusb-base-20150406
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +5 -5
lines
Replace if_attach of if_tap with if_initialize and if_register
Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Nov 7 09:26:08 2014 UTC (10 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +21 -23
lines
Complete the initialization of tap_softc before if_attach
Basically we should complete the initializaiton of softc before if_attach
because once if_attach is called if_detach can be called for the softc
before returning from if_attach. In case of tap, mutex_destroy can be
called before mutex_init that comes after if_attach.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Oct 3 06:46:02 2014 UTC (10 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -3
lines
Remove unneeded #include
Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Sep 5 09:22:22 2014 UTC (10 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +11 -12
lines
Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.
Revision 1.67.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:34 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67.2.2: preferred, colored
Changes since revision 1.67.2.2: +47 -31
lines
Rebase to HEAD as of a few days ago.
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:15 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +5 -3
lines
Rebase.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:40 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +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.66.18.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:18:45 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -3
lines
Pull up following revision(s) (requested by cube in ticket #1071):
sys/net/if_tap.c 1.76
Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet(). Fixes kern/47506 and kern/46199.
Revision 1.66.20.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:17:56 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -3
lines
Pull up following revision(s) (requested by cube in ticket #1071):
sys/net/if_tap.c 1.76
Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet(). Fixes kern/47506 and kern/46199.
Revision 1.66.14.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:13:30 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -3
lines
Pull up following revision(s) (requested by cube in ticket #1071):
sys/net/if_tap.c 1.76
Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet(). Fixes kern/47506 and kern/46199.
Revision 1.66.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:09 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.66.8.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.8.1: +51 -39
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.70.2.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:12 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.70.2.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.2.1: +24 -27
lines
sync with head
Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed May 7 22:53:34 2014 UTC (10 years, 7 months ago) by cube
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -3
lines
Prevent a race between tap_dev_poll() and tap_start() by making sure the
call to selrecord() happens at splnet(). Fixes kern/47506 and kern/46199.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Apr 20 22:39:51 2014 UTC (10 years, 7 months ago) by aymeric
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -2
lines
Call mutex_destroy() on sc_kqlock in tap_detach(). Found by LOCKDEBUG.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Mar 20 06:48:54 2014 UTC (10 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +11 -13
lines
Mechanically replace simplelock with kmutex_t.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:30 2014 UTC (10 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-drm2-base3
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +13 -8
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.72: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:12 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -9
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:36 2013 UTC (11 years, 3 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +24 -6
lines
sync with head
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Aug 20 12:28:12 2013 UTC (11 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +24 -6
lines
- deal with softint_establish failure
- establish softint only when necessary
Revision 1.67.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:01 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67.2.1: preferred, colored
Changes since revision 1.67.2.1: +7 -10
lines
resync with head
Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Jan 28 15:05:03 2013 UTC (11 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +6 -9
lines
use cprng_fast instead of getmicrouptime to generate "random" mac address
because the latter often produces the same addresses for subsequent tap
instances.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Jan 28 15:01:13 2013 UTC (11 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
whitespace
Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:47 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +6 -7
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.66.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:43 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +7 -8
lines
sync with head
Revision 1.68: download - view: text, markup, annotated - select for diffs
Sat Oct 27 17:18:39 2012 UTC (12 years, 1 month ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +6 -7
lines
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:36:47 2012 UTC (12 years, 6 months ago) by dsl
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
the item itself.
In the places where the caller specifies a function and a structure
address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
Revision 1.63.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:52 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.63.4.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.4.1: +13 -18
lines
sync with head
Revision 1.47.4.8: download - view: text, markup, annotated - select for diffs
Thu Dec 9 04:11:39 2010 UTC (14 years ago) by riz
Branches: netbsd-5
CVS tags: 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,
matt-nb5-pq3-base,
matt-nb5-pq3
Diff to: previous 1.47.4.7: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.4.7: +13 -18
lines
Pull up following revision(s) (requested by christos in ticket #1492):
sys/net/if_tap.c: revision 1.66
PR/44131: Matthew Mondor: if_tap.c tap_dev_ioctl() not propagating error,
always returns 0.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Nov 22 21:31:51 2010 UTC (14 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
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-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
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,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-usbmp-pre-base2,
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,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
netbsd-6-1,
netbsd-6-0,
netbsd-6
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -18
lines
PR/44131: Matthew Mondor: if_tap.c tap_dev_ioctl() not propagating error,
always returns 0.
Revision 1.63.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:44 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.63.2.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.2.1: +1 -1
lines
Sync with HEAD.
Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:54 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42.2.5: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.5: +7 -11
lines
sync with head.
Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:01 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -11
lines
sync with head
Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed May 19 20:41:59 2010 UTC (14 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
Replace ether_nonstatic_aton with a
- better named one
- not suffering from buffer oveflow
- simpler
- handling different separators
- returning error codes for errors
Some ideas from one posted on tech-net by Jonathan A. Kollasch
Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:20 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -10
lines
Sync with HEAD.
Revision 1.47.4.6.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:28:21 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.47.4.6: preferred, colored; next MAIN 1.47.4.7: preferred, colored
Changes since revision 1.47.4.6: +3 -2
lines
sync to netbsd-5
Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:22:24 2010 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -10
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.42.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:27 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42.2.4: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.4: +9 -18
lines
sync with head
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:08:01 2010 UTC (14 years, 10 months 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.62: preferred, colored
Changes since revision 1.62: +7 -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.62: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:36:06 2009 UTC (14 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3
lines
If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567
Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Dec 9 21:32:59 2009 UTC (15 years ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Thu Dec 3 09:44:35 2009 UTC (15 years ago) by sborrill
Branches: netbsd-4
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +3 -2
lines
Pull up the following revisions(s) (requested by plunky in ticket #1368):
sys/net/if_tap.c: revision 1.60
Fix a potential leak on tap device close; purging the send queue did not
actually release the dequeued mbufs.
Revision 1.47.4.7: download - view: text, markup, annotated - select for diffs
Thu Dec 3 09:40:00 2009 UTC (15 years ago) by sborrill
Branches: netbsd-5
CVS tags: 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
Diff to: previous 1.47.4.6: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.6: +3 -2
lines
Pull up the following revisions(s) (requested by plunky in ticket #1173):
sys/net/if_tap.c: revision 1.60
Fix a potential leak on tap device close; purging the send queue
did not actually release the dequeued mbufs.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Nov 29 10:44:23 2009 UTC (15 years ago) by plunky
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -2
lines
fix a potential leak on tap device close, purging the send queue
did not actually release the dequeued mbufs.
pointed out by Paul Forgey on tech-net
Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:01 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42.2.3: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.3: +3 -3
lines
sync with head
Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Sep 15 19:38:15 2009 UTC (15 years, 2 months ago) by drochner
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
jym-xensuspend-nbase
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3
lines
fix undefined result of stat(), found by clang static analyzer
Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:23 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42.2.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.2: +3 -3
lines
sync with head.
Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:47 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.1: +3 -3
lines
Sync with HEAD.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Jul 23 17:53:17 2009 UTC (15 years, 4 months ago) by plunky
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
jymxensuspend-base
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -3
lines
Avoid a kernel assertion failure upstream by using FSTATE_NOTFOUND
rather than FSTATE_FOUND when setting the unit number directly.
config_attach_pseudo() will convert it to FSTATE_FOUND just after the
assertion.
Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:20 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +80 -18
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:15 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.1: +137 -39
lines
sync with head.
Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:16 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.2: +80 -18
lines
Sync with HEAD.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Apr 11 23:05:26 2009 UTC (15 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +17 -18
lines
Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Apr 11 15:47:33 2009 UTC (15 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +41 -3
lines
Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use
fbadop_stat.
Revision 1.47.4.6: download - view: text, markup, annotated - select for diffs
Sat Apr 4 23:36:28 2009 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.47.4.5: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.5: +12 -11
lines
Pull up following revision(s) (requested by ad in ticket #661):
sys/arch/xen/xen/xenevt.c: revision 1.32
sys/compat/svr4/svr4_net.c: revision 1.56
sys/compat/svr4_32/svr4_32_net.c: revision 1.19
sys/dev/dmover/dmover_io.c: revision 1.32
sys/dev/putter/putter.c: revision 1.21
sys/kern/kern_descrip.c: revision 1.190
sys/kern/kern_drvctl.c: revision 1.23
sys/kern/kern_event.c: revision 1.64
sys/kern/sys_mqueue.c: revision 1.14
sys/kern/sys_pipe.c: revision 1.109
sys/kern/sys_socket.c: revision 1.59
sys/kern/uipc_syscalls.c: revision 1.136
sys/kern/vfs_vnops.c: revision 1.164
sys/kern/uipc_socket.c: revision 1.188
sys/net/bpf.c: revision 1.144
sys/net/if_tap.c: revision 1.55
sys/opencrypto/cryptodev.c: revision 1.47
sys/sys/file.h: revision 1.67
sys/sys/param.h: patch
sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0 accept(fd, ...)
thr1 close(fd)
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Apr 4 10:12:51 2009 UTC (15 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +12 -11
lines
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0 accept(fd, ...)
thr1 close(fd)
Revision 1.47.4.5: download - view: text, markup, annotated - select for diffs
Wed Mar 18 05:23:44 2009 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3
Diff to: previous 1.47.4.4: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.4: +30 -6
lines
Pull up following revision(s) (requested by plunky in ticket #575):
sys/net/if_tap.c: revision 1.54
Deprecate the SIOCSIFPHYADDR ioctl and the sysctl node in favour
of the generic SIOCALIFADDR.
As suggested by cube.
Revision 1.47.4.4: download - view: text, markup, annotated - select for diffs
Wed Mar 18 05:19:59 2009 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.47.4.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.3: +5 -5
lines
Pull up following revision(s) (requested by plunky in ticket #572):
sys/net/if_tap.c: revision 1.53
repair the SIOCSIFPHYADDR ioctl handler to be compatible with previous
versions which used a "struct sockaddr"
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Mar 13 18:40:10 2009 UTC (15 years, 9 months ago) by plunky
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +30 -6
lines
Deprecate the SIOCSIFPHYADDR ioctl and the sysctl node in favour
of the generic SIOCALIFADDR.
As suggested by cube.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Mar 10 22:14:57 2009 UTC (15 years, 9 months ago) by plunky
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +5 -5
lines
repair the SIOCSIFPHYADDR ioctl handler to be compatible with previous
versions which used a "struct sockaddr"
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:33:38 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +4 -3
lines
Sync with HEAD.
Revision 1.47.4.3: download - view: text, markup, annotated - select for diffs
Fri Feb 6 00:59:47 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC2
Diff to: previous 1.47.4.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.2: +4 -3
lines
Pull up following revision(s) (requested by pooka in ticket #405):
sys/net/if_tap.c: revision 1.52
Drop splnet() *after* tsleep instead of before. Fixes a race condition
between sleep and wakeup. (tested on NetBSD 4.0)
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Feb 1 21:25:06 2009 UTC (15 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -3
lines
Drop splnet() *after* tsleep instead of before. Fixes a race condition
between sleep and wakeup. (tested on NetBSD 4.0)
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:12 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +11 -6
lines
Sync with HEAD.
Revision 1.38.6.7: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:31 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.6: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.6.6: +9 -4
lines
Sync with HEAD.
Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:26 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.46.2.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.1: +11 -6
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.47.4.2: download - view: text, markup, annotated - select for diffs
Wed Nov 19 03:40:27 2008 UTC (16 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC1
Diff to: previous 1.47.4.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.4.1: +4 -2
lines
Pull up following revision(s) (requested by hans in ticket #89):
sys/net/if_tap.c: revision 1.49
sys/net/if_etherip.c: revision 1.24
call pmf_device_deregister in detach functions. requested by jmcneill.
Revision 1.47.4.1: download - view: text, markup, annotated - select for diffs
Wed Nov 19 03:39:13 2008 UTC (16 years ago) by snj
Branches: netbsd-5
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -2
lines
Pull up following revision(s) (requested by hans in ticket #89):
sys/net/if_tap.c: revision 1.48
sys/net/if_etherip.c: revision 1.23
Add NULL pmf handlers. OK by cube.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:28 2008 UTC (16 years, 1 month ago) by ad
Branches: MAIN
CVS tags: mjf-devfs2-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -4
lines
Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:13 2008 UTC (16 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4
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.49: download - view: text, markup, annotated - select for diffs
Mon Nov 3 00:52:07 2008 UTC (16 years, 1 month ago) by hans
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -2
lines
call pmf_device_deregister in detach functions. requested by jmcneill.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Nov 2 14:46:55 2008 UTC (16 years, 1 month ago) by hans
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -2
lines
Add NULL pmf handlers. OK by cube.
Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:41 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -2
lines
Sync with HEAD.
Revision 1.38.6.6: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:56 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.5: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.6.5: +3 -0
lines
Sync with HEAD.
Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:37:00 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.1: +5 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Aug 26 11:06:59 2008 UTC (16 years, 3 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -2
lines
tap_attach/tap_detach: selinit/seldestroy the selinfo structure.
Should fix PR/39237.
Revision 1.38.6.5: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:18 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.4: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.6.4: +8 -8
lines
Sync with HEAD.
Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:58 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +46 -19
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:50 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +10 -10
lines
Sync with head.
Revision 1.41.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:13 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.41.2.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.2: +10 -10
lines
sync with head.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Jun 10 22:53:08 2008 UTC (16 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +10 -10
lines
device_private(device_lookup()) -> device_lookup_private()
ok cube@
Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:47 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.2.1: +38 -11
lines
sync with head
Revision 1.38.6.4: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:22 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.3: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.6.3: +69 -18
lines
Sync with HEAD.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed May 28 06:28:12 2008 UTC (16 years, 6 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -4
lines
In tap_clone_destroy(), don't treat a pointer to the tap(4) softc
like it is a device_t.
In tap_clone_creator(), set cf_fstate to FSTATE_FOUND instead of
_NOTFOUND to avoid a panic in config_detach() on a DIAGNOSTIC
kernel. XXX I'm not sure that that is the right fix.
These changes should put a stop to the crash described in kern/38759.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed May 21 13:56:15 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +34 -9
lines
Acquire kernel_lock in tap's fileops.
Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:27 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +33 -9
lines
sync with head.
Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:41 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -5
lines
sync with head.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Apr 29 06:53:03 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -5
lines
Convert to new 2 clause license
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:30 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +33 -6
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.38.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 6 09:58:52 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.2: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.6.2: +3 -3
lines
- after some discussion with agc@ i agreed it would be a good idea to move
device_unregister_* to device_deregister_* to be more like the pmf(9)
functions, especially since a lot of the time the function calls are next
to each other.
- add device_register_name() support for dk(4).
Revision 1.38.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:23 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.6.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.6.1: +9 -3
lines
- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
as these are always needed.
- convert many, many drivers over to the New Devfs World Order. For a
list of device drivers yet to be converted see,
http://www.netbsd.org/~mjf/devfs-todo.html.
- add a new device_unregister_all(device_t) function to remove all device
names associated with a device_t, which saves us having to construct
device names when the driver is detached.
- add a DEV_AUDIO type for devices.
Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:07 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +63 -65
lines
Sync with HEAD.
Revision 1.10.2.9: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:09 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.8: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.8: +23 -25
lines
sync with head.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:23 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +42 -42
lines
sync with head.
Revision 1.31.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:05 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.31.2.2: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.2: +44 -44
lines
sync with HEAD
Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (16 years, 8 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.40: preferred, colored
Changes since revision 1.40: +23 -25
lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Revision 1.10.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:41 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.7: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.7: +42 -42
lines
sync with head.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Mar 4 13:25:05 2008 UTC (16 years, 9 months ago) by cube
Branches: MAIN
CVS tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +40 -40
lines
Split device_t/softc, and other related cosmetic changes.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:52 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
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.10.2.7: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:37:01 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.6: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.6: +4 -4
lines
sync with head.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Feb 20 17:05:53 2008 UTC (16 years, 9 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.37: preferred, colored
Changes since revision 1.37: +4 -4
lines
s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)
Revision 1.33.6.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:01 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.33.6.2: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.6.2: +3 -2
lines
Sync with HEAD.
Revision 1.10.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:06 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.5: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.5: +8 -9
lines
sync with head
Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:14 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.31.2.1: preferred, colored
Changes since revision 1.31.2.1: +27 -35
lines
sync with HEAD
Revision 1.35.4.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:49 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.35.4.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.4.1: +1 -0
lines
Sync with HEAD
Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:18:15 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: mjf-devfs-base,
matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -2
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.35.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:10 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -9
lines
Sync with HEAD
Revision 1.33.6.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:46:28 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.33.6.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.6.1: +7 -9
lines
Sync with HEAD.
Revision 1.33.8.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:51 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.33.8.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.8.1: +7 -9
lines
Sync with head.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Dec 20 21:08:22 2007 UTC (16 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -9
lines
Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
Revision 1.30.6.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:34 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.30.6.2: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.6.2: +21 -28
lines
Sync with HEAD.
Revision 1.33.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:21:06 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +21 -28
lines
Sync with HEAD.
Revision 1.33.8.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:53 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +21 -28
lines
Sync with head.
Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:34:17 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.4: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.4: +21 -28
lines
sync with head
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Dec 5 17:20:00 2007 UTC (17 years ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
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.34: preferred, colored
Changes since revision 1.34: +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.34: download - view: text, markup, annotated - select for diffs
Wed Dec 5 08:05:57 2007 UTC (17 years ago) by ad
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +20 -27
lines
lockmgr -> mutex
Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:33:35 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +9 -12
lines
sync with HEAD
Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:03 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +3 -10
lines
sync with head.
Revision 1.27.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:42 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.27.2.2: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.2: +10 -13
lines
Sync with head.
Revision 1.30.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:16 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.30.6.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.6.1: +3 -10
lines
Sync with HEAD.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:35:54 2007 UTC (17 years, 3 months ago) by cube
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking2-base1,
vmlocking-nbase,
vmlocking-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: vmlocking2,
mjf-devfs
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -10
lines
Remove 3rd clause and my name from all the licences which were only in my
name.
Revision 1.30.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:58 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -5
lines
Sync with HEAD.
Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:42:13 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +37 -27
lines
sync with head.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:23:11 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +9 -5
lines
Sync with HEAD.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Aug 30 02:17:35 2007 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: nick-csl-alignment-base5
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +8 -4
lines
Use malloc(9) for sockaddrs instead of pool(9), and remove dom_sa_pool
and dom_sa_len members from struct domain. Pools of fixed-size
objects are too rigid for sockaddr_dls, whose size can vary over
a wide range.
Return sockaddr_dl to its "historical" size. Now that I'm using
malloc(9) instead of pool(9) to allocate sockaddr_dl, I can create
a sockaddr_dl of any size in the kernel, so expanding sockaddr_dl
is useless.
Avoid using sizeof(struct sockaddr_dl) in the kernel.
Introduce sockaddr_dl_alloc() for allocating & initializing an
arbitrary sockaddr_dl on the heap.
Add an argument, the sockaddr length, to sockaddr_alloc(),
sockaddr_copy(), and sockaddr_dl_setaddr().
Constify: LLADDR() -> CLLADDR().
Where the kernel overwrites LLADDR(), use sockaddr_dl_setaddr(),
instead. Used properly, sockaddr_dl_setaddr() will not overrun
the end of the sockaddr.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Aug 26 22:59:08 2007 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
Branch point for: matt-armv6
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).
Use sockaddr_dl_setaddr() in a few places.
Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:11:00 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +11 -3
lines
Sync with head.
Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:58:12 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.27.2.1: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.1: +10 -2
lines
Sync with head.
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:17:36 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
Sync with head.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed May 30 21:02:03 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -8
lines
Move the nasty ifdefs in one place. Requested by ad and dyoung.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue May 29 21:32:30 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +16 -2
lines
Add a sockaddr_storage member to "struct ifreq" maintaining backwards
compatibility with the older ioctls. This avoids stack smashing and
abuse of "struct sockaddr" when ioctls placed "struct sockaddr_foo's" that
were longer than "struct sockaddr".
XXX: Some of the emulations might be broken; I tried to add code for
them but I did not test them.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu May 17 18:01:57 2007 UTC (17 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3
lines
return POLLERR instead of ENXIO since we are expecting an revents mask not
an errno.
Revision 1.24.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:59:14 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.24.4.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.4.1: +20 -19
lines
Sync with HEAD.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Mar 9 18:42:22 2007 UTC (17 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +11 -10
lines
don't use DVUNIT_ANY as unit number to attach pseudo devices,
use FSTATE_STAR and cf_unit=0 like normal devices.
Thanks to Arnaud Degroote for the bug report and testing.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:17 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -11
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:45 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -6
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Feb 26 23:52:18 2007 UTC (17 years, 9 months ago) by cube
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -6
lines
Remove unnecessary output and reduce verbosity in dmesg(8) output. That
makes the output consistent with etherip(4).
Suggested by Nino Dehne on current-users@.
Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:12 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.1: +3 -44
lines
Sync with head.
Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:20 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +17 -48
lines
sync with head.
Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:00 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.1: +25 -66
lines
sync with head.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Nov 24 01:04:30 2006 UTC (18 years ago) by rpaulo
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,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
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,
matt-nb4-arm-base,
matt-nb4-arm
Branch point for: yamt-idlelwp,
netbsd-4
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -44
lines
The change I committed to etherip was wrong. ether_snprintf doesn't make
sense when chaning the MAC address of the virtual interface as pointed
out by Hans himself.
So, introduce ether_nonstatic_aton() and make etherip(4) and tap(4) use it.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:29 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -5
lines
Sync with head.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:40 2006 UTC (18 years ago) by christos
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +24 -24
lines
__unused removal on arguments; approved by core.
Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:25 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +24 -21
lines
sync with head
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:28 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +24 -21
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:06 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +33 -76
lines
sync with head
Revision 1.13.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:35 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.13.2.4: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.4: +9 -2
lines
sync with head.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Sep 1 16:28:53 2006 UTC (18 years, 3 months ago) by cube
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +8 -2
lines
Add a note about the use of CTL_CREATE in sysctl_createv, otherwise the
code can be confusing.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Aug 30 16:58:38 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2
lines
fix initializers.
Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:46:16 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.3: +3 -3
lines
sync with head
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:12 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
Use the LWP cached credentials where sane.
Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:53:39 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +8 -6
lines
sync with head.
Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:27 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +56 -106
lines
sync with head.
Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:09:12 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +8 -6
lines
Sync with head.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jun 7 22:33:43 2006 UTC (18 years, 6 months ago) by kardel
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -6
lines
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:38 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.12.2.3: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.3: +7 -6
lines
Sync with head.
Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:44 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +5 -4
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:56 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +7 -6
lines
sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun May 14 21:19:33 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -6
lines
integrate kauth.
Revision 1.13.4.3: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:59 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.13.4.2: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.4.2: +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.12.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:35:08 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.12.2.2: preferred, colored
Changes since revision 1.12.2.2: +3 -6
lines
Fix sync-with-trunc botch.
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:06 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.12.2.1: preferred, colored
Changes since revision 1.12.2.1: +14 -64
lines
Sync with head.
Revision 1.13.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 04:46:10 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.13.4.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.4.1: +11 -64
lines
sync with head.
Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:43 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +11 -64
lines
sync with head.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:29 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -6
lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Mar 29 04:16:51 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
elad-kernelauth-base
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
Use device_cfdata().
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:39 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -5
lines
Use device_unit().
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Mar 16 15:57:59 2006 UTC (18 years, 9 months ago) by christos
Branches: MAIN
CVS tags: peter-altq-base
Branch point for: peter-altq
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -60
lines
Add a new function called ether_snprintf() which takes an external buffer
and a length. The buffer should be 3 * addrlen.
Remove local tap_ether_sprintf(), and use ether_snprintf() instead.
Revision 1.13.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:11:55 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -6
lines
Adapt to kernel authorization KPI.
Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:47 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.11.2.1: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.1: +3 -3
lines
sync with head.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Feb 24 12:54:48 2006 UTC (18 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base2,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
elad-kernelauth
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
comment police: p_dupfd is now known as l_dupfd and lives in struct lwp
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 4 14:18:52 2006 UTC (18 years, 10 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +11 -9
lines
Adapt for timecounters: mostly use get*time(), use bintime's for timeout
calculations and use "time_second" instead of "time.tv_sec".
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:52:37 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
sync with head.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Feb 1 05:51:58 2006 UTC (18 years, 10 months ago) by cube
Branches: MAIN
Branch point for: simonb-timecounters
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
Properly dispose of cfdata memory when unloading the tap(4) LKM.
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 21 05:40:24 2006 UTC (18 years, 10 months ago) by snj
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +1 -1
lines
Pull up following revision(s) (requested by cube in ticket #1113):
sys/net/if_tap.c: revision 1.7
Set bit 0x2 of the first byte of the generated MAC address, to indicate it
is a locally administered address. Pointed out by Ignatios Souvatzis.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:51 2005 UTC (19 years ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace,
rpaulo-netinet-merge-pcb
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +33 -33
lines
merge ktrace-lwp.
Revision 1.1.4.8: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:10:32 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.7: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.7: +9 -7
lines
Sync with HEAD. Here we go again...
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 20 02:49:19 2005 UTC (19 years, 5 months ago) by atatat
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,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4
lines
Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone. Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 10 15:52:56 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -2
lines
Pull up revision 1.9 (requested by bouyer in ticket #438):
call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jun 10 10:28:17 2005 UTC (19 years, 6 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -2
lines
call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 17 04:14:58 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -5
lines
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:31 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +17 -13
lines
sync with -current
Revision 1.1.4.7: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:31:35 2005 UTC (19 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.6: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.6: +3 -3
lines
Sync with HEAD.
Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 26 18:19:20 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.2: +3 -3
lines
sync with head.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Mar 24 22:20:35 2005 UTC (19 years, 8 months ago) by cube
Branches: MAIN
CVS tags: yamt-km-base4,
kent-audio2-base
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Set bit 0x2 of the first byte of the generated MAC address, to indicate it
is a locally administered address. Pointed out by Ignatios Souvatzis.
Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:31 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +1376 -0
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.1.4.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:59 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.5: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.5: +4 -4
lines
Sync with HEAD.
Hi Perry!
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:09 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4
lines
nuke trailing whitespace
Revision 1.1.4.5: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:33:29 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.4: +4 -3
lines
Sync with HEAD.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Feb 12 23:14:03 2005 UTC (19 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -3
lines
pass the flag to fdclone.
Revision 1.1.4.4: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:47:44 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.3: +5 -5
lines
Sync with HEAD.
Revision 1.4.2.1
Tue Jan 25 09:57:15 2005 UTC (19 years, 10 months ago) by yamt
Branches: yamt-km
FILE REMOVED
Changes since revision 1.4: +0 -1375
lines
file if_tap.c was added on branch yamt-km on 2005-03-19 08:36:31 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 25 09:57:15 2005 UTC (19 years, 10 months ago) by ragge
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base
Branch point for: yamt-km
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -5
lines
Do not cast simple_lock() to (void). It may be a do { } while() macro,
and then compilation fails. Found by Håvard Eidnes.
Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Mon Jan 24 08:35:53 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.2: +40 -37
lines
Sync with HEAD.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jan 22 07:33:56 2005 UTC (19 years, 10 months ago) by cube
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -6
lines
s/PF_LINK/AF_LINK/ because that way it makes sense.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jan 19 10:18:40 2005 UTC (19 years, 10 months ago) by cube
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -2
lines
Make this LKM-friendly by using _KERNEL_OPT and having a prototype for the
sysctl setup function.
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:32:38 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +1372 -0
lines
Sync with HEAD.
Revision 1.1.4.1
Sat Jan 8 22:27:54 2005 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
FILE REMOVED
Changes since revision 1.1: +0 -1372
lines
file if_tap.c was added on branch ktrace-lwp on 2005-01-17 19:32:38 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jan 8 22:27:54 2005 UTC (19 years, 11 months ago) by cube
Branches: MAIN
CVS tags: kent-audio1-beforemerge
Branch point for: ktrace-lwp,
kent-audio2
Addition of tap(4).
NAME
tap - virtual Ethernet device
SYNOPSIS
pseudo-device tap
DESCRIPTION
The tap driver allows the creation and use of virtual Ethernet devices.
Those interfaces appear just as any real Ethernet NIC to the kernel, but
can also be accessed by userland through a character device node in order
to read frames being sent by the system or to inject frames.
In that respect it is very similar to what tun(4) provides, but the added
Ethernet layer allows easy integration with machine emulators or virtual
Ethernet networks through the use of bridge(4) with tunneling.
``Qui tacet consentire videtur.''
CVSweb <webmaster@jp.NetBSD.org>