dragonfly.git
5 years agoFix a buffer cache deadlock which can occur when simulated disk devices
Matthew Dillon [Wed, 10 Dec 2008 18:27:32 +0000 (10:27 -0800)]
Fix a buffer cache deadlock which can occur when simulated disk devices
(VN) are backed by a HAMMER file.  Do not call bwillwrite() via the
VN->VOP_WRITE->HAMMER path.

Add a new IO_RECURSE flag to identify paths for which bwillwrite() should
never be called.

Reported-by: Rumko <rumcic@gmail.com>
5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into...
Matthew Dillon [Mon, 8 Dec 2008 04:01:17 +0000 (20:01 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into devel

5 years agoFix seg-fault in recent 'hammer cleanup' utility work.
Matthew Dillon [Mon, 8 Dec 2008 03:55:28 +0000 (19:55 -0800)]
Fix seg-fault in recent 'hammer cleanup' utility work.

Reported-by: Rumko <rumcic@gmail.com>
5 years agoAdd missing section number.
Sascha Wildner [Sun, 7 Dec 2008 15:22:55 +0000 (16:22 +0100)]
Add missing section number.

5 years agoImprove markup.
Sascha Wildner [Sun, 7 Dec 2008 01:34:16 +0000 (02:34 +0100)]
Improve markup.

5 years agoConstify the tip/sip parameters of arprequest/arprequest_async
Sepherosa Ziehau [Sat, 6 Dec 2008 09:10:24 +0000 (17:10 +0800)]
Constify the tip/sip parameters of arprequest/arprequest_async

5 years agoThe CVS ID isn't needed anymore.
Sascha Wildner [Fri, 5 Dec 2008 21:53:51 +0000 (22:53 +0100)]
The CVS ID isn't needed anymore.

5 years agoDeprecate MALLOC/FREE macros
Sepherosa Ziehau [Fri, 5 Dec 2008 14:09:51 +0000 (22:09 +0800)]
Deprecate MALLOC/FREE macros

5 years agoCorrect the reversed comparison logic
Sepherosa Ziehau [Fri, 5 Dec 2008 13:59:44 +0000 (21:59 +0800)]
Correct the reversed comparison logic

5 years agoDefer various TCP timer function from callout threads to TCP threads; mainly
Sepherosa Ziehau [Sun, 30 Nov 2008 08:56:16 +0000 (16:56 +0800)]
Defer various TCP timer function from callout threads to TCP threads; mainly
to avoid possible threading races, e.g. when output processing blocking the
current thread.  To save space, only one netmsg is used and is embedded in
tcpcb.  The timer functions needed to be carried out are indicated by the
tasks field in the netmsg.

Reviewed-by: dillon@
Discussed-with: dillon@
With-input-from: hsu@
Tested-by: hasso@
5 years agoDon't set max read request size on 10/100 only PCIe NICs.
Sepherosa Ziehau [Thu, 4 Dec 2008 04:11:25 +0000 (12:11 +0800)]
Don't set max read request size on 10/100 only PCIe NICs.
Setting max read request size to non-default value seems to cause these
kinds of NICs' DMA engine malfunction.

Reported-by: josepht@
Tested-by: josepht@
Based-on-patch-from: josepht@

5 years agoMake CIDR in "-net net gw mask" form work again.
Hasso Tepper [Thu, 4 Dec 2008 23:21:51 +0000 (01:21 +0200)]
Make CIDR in "-net net gw mask" form work again.

5 years agoSync termcap with FreeBSD preserving local changes.
Hasso Tepper [Wed, 3 Dec 2008 09:14:54 +0000 (11:14 +0200)]
Sync termcap with FreeBSD preserving local changes.

Fixes many bugs with TERM=xterm and screen.

Obtained-from: FreeBSD

5 years agoUpdate units(1) to allow conversion between degC and degF
Matthias Schmidt [Thu, 4 Dec 2008 14:10:23 +0000 (15:10 +0100)]
Update units(1) to allow conversion between degC and degF

This patch (in modified form from FreeBSD) rested for some time on
my disk, so I'll throw it in.  It allows conversion between Celsius
and Fahrenheit:

You have: 20 degC
You want: degF
68

Reminded-by: corecode@
5 years agoAdd CARP_IS_RUNNING() to test carp(4) iface's IFF_UP and IFF_RUNNING
Sepherosa Ziehau [Thu, 4 Dec 2008 10:35:13 +0000 (18:35 +0800)]
Add CARP_IS_RUNNING() to test carp(4) iface's IFF_UP and IFF_RUNNING

5 years agoRemove unused macro
Sepherosa Ziehau [Thu, 4 Dec 2008 10:14:29 +0000 (18:14 +0800)]
Remove unused macro

5 years agoMerge clearing IFF_UP and IFF_RUNNING
Sepherosa Ziehau [Thu, 4 Dec 2008 10:11:05 +0000 (18:11 +0800)]
Merge clearing IFF_UP and IFF_RUNNING

5 years agoUse in_cksum_{range,skip}()
Sepherosa Ziehau [Thu, 4 Dec 2008 10:05:51 +0000 (18:05 +0800)]
Use in_cksum_{range,skip}()
This is mainly used to avoid following code sequence:
  m->m_data += skip;
  in_cksum(m, len);
  m->m_data -= skip;

5 years agoDon't drag the host CCVER into the release build
Simon Schubert [Wed, 3 Dec 2008 23:20:05 +0000 (00:20 +0100)]
Don't drag the host CCVER into the release build

nrelease was defaulting WORLD_CCVER, which is passed as CCVER to buildworld
and KERNEL_CCVER, which is passed as CCVER to buildkernel, to CCVER.  However
the system makefiles set CCVER themselves, thus dragging their idea of the
default CCVER into the release build.

This commit should fix snapshots being built with gcc34 on chlamydia running 1.8-REL.

5 years agoRework carp_input()
Sepherosa Ziehau [Wed, 3 Dec 2008 13:18:59 +0000 (21:18 +0800)]
Rework carp_input()
- Use ip header length passed in
- Calculate minimal CARP packet size only once
- Nuke redundant mbuf length check and m_pullup()
- Use in_cksum_skip()
- Add comment
- Keep log message consistent with OpenBSD

5 years agoUse suser_cred()
Sepherosa Ziehau [Wed, 3 Dec 2008 11:48:01 +0000 (19:48 +0800)]
Use suser_cred()

5 years agoEmbed ifnet in carp_softc; ifnet allocation is never adopted.
Sepherosa Ziehau [Wed, 3 Dec 2008 11:41:36 +0000 (19:41 +0800)]
Embed ifnet in carp_softc; ifnet allocation is never adopted.
This commit fix the memory leakage when destroying a carp(4) iface.

5 years agoClean up and style changes
Sepherosa Ziehau [Tue, 2 Dec 2008 15:08:19 +0000 (23:08 +0800)]
Clean up and style changes

- Break long lines
- Strip/Add blank lines
- White space

5 years agoNuke lock remainders and related comment
Sepherosa Ziehau [Tue, 2 Dec 2008 14:29:43 +0000 (22:29 +0800)]
Nuke lock remainders and related comment

5 years agoStaticize
Sepherosa Ziehau [Tue, 2 Dec 2008 14:18:06 +0000 (22:18 +0800)]
Staticize

5 years agoDrop locking in carp(4). carp(4) is under explicit BGL currently; we could
Sepherosa Ziehau [Tue, 2 Dec 2008 14:10:00 +0000 (22:10 +0800)]
Drop locking in carp(4).  carp(4) is under explicit BGL currently; we could
find other MP approach for it, but not locking.

5 years ago- Regroup type declaration
Sepherosa Ziehau [Tue, 2 Dec 2008 12:44:08 +0000 (20:44 +0800)]
- Regroup type declaration
- White space cleanup
- DragonFly has ifnet_detach_event not ifnet_departure_event
- Staticize carp_cloner

5 years agoCleanup header inclusion
Sepherosa Ziehau [Tue, 2 Dec 2008 12:21:42 +0000 (20:21 +0800)]
Cleanup header inclusion

5 years agoWhite space
Sepherosa Ziehau [Tue, 2 Dec 2008 12:08:30 +0000 (20:08 +0800)]
White space

5 years agou_int{8,16,32,64}_t -> uint{8,16,32,64}_t
Sepherosa Ziehau [Tue, 2 Dec 2008 12:02:55 +0000 (20:02 +0800)]
u_int{8,16,32,64}_t -> uint{8,16,32,64}_t

5 years agotest some more
Sascha Wildner [Wed, 3 Dec 2008 09:23:28 +0000 (10:23 +0100)]
test some more

5 years agoMerge branch 'ciss'
Sascha Wildner [Wed, 3 Dec 2008 09:11:37 +0000 (10:11 +0100)]
Merge branch 'ciss'

5 years agotest
Sascha Wildner [Wed, 3 Dec 2008 09:11:13 +0000 (10:11 +0100)]
test

5 years agoTesting cherry-pick from local branch & push.
Hasso Tepper [Wed, 3 Dec 2008 08:26:04 +0000 (10:26 +0200)]
Testing cherry-pick from local branch & push.

5 years agoMerge branch 'misc'
Sascha Wildner [Wed, 3 Dec 2008 05:00:06 +0000 (06:00 +0100)]
Merge branch 'misc'

5 years agokqueue support has been added to HAMMER.
Sascha Wildner [Wed, 3 Dec 2008 04:59:54 +0000 (05:59 +0100)]
kqueue support has been added to HAMMER.

5 years agoMerge branch 'misc'
Sascha Wildner [Wed, 3 Dec 2008 04:53:52 +0000 (05:53 +0100)]
Merge branch 'misc'

5 years agoAdd a UFS(5) MLINK and reference it from various places.
Sascha Wildner [Wed, 3 Dec 2008 04:53:20 +0000 (05:53 +0100)]
Add a UFS(5) MLINK and reference it from various places.

5 years agoRoll DragonFly 2.1.1 v2.1.1
Simon Schubert [Wed, 3 Dec 2008 03:42:24 +0000 (04:42 +0100)]
Roll DragonFly 2.1.1

5 years agoAdd script to output the current repo version
Simon Schubert [Wed, 3 Dec 2008 03:03:18 +0000 (04:03 +0100)]
Add script to output the current repo version

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into...
Matthew Dillon [Wed, 3 Dec 2008 02:38:22 +0000 (18:38 -0800)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into devel

5 years agoSome more cleanup & markup fixes.
Sascha Wildner [Wed, 3 Dec 2008 02:23:30 +0000 (03:23 +0100)]
Some more cleanup & markup fixes.

5 years agoHAMMER Filesystem changes:
Matthew Dillon [Wed, 3 Dec 2008 02:11:43 +0000 (18:11 -0800)]
HAMMER Filesystem changes:

* Add version checking to the hammer mount code.

* Add ioctls to fetch the hammer filesystem version and to upgrade it,
  to support future filesystem revisions.

* Rewrite the algorithm used to integrate reservations with the blockmap
  allocate/free code to fix a bug.  hammer_buffers were sometimes not
  being properly destroyed causing conflicts with later reallocations.

* Add support for up to four directory hash algorithms.  Add flexibility
  to the namekey iterator API to allow the algorithm to control the
  iteration space.

* When iterating memory with the CURSOR_DELETE_VISIBILITY flag set, ignore
  the record deleted flags.

HAMMER Utilities changes:

* Add two new hammer directives, 'version' and 'version-upgrade'.

* Change hammer namekey directive to 'namekey1' and 'namekey2', to support
  generating directory hashes for different hashing algorithms.

* Change hammer cleanup to still prune for existing snapshots even if
  new snapshot generation is disabled.

* Change hammer cleanup's default snapshots config for temporary
  filesystems from 'snapshots 0d 60d' to 'snapshots 0d 0d'.

Reported-by: "Justin C. Sherrill" <justin@shiningsilence.com> (blockmap bug)
5 years agoStart new sentences on new lines.
Sascha Wildner [Wed, 3 Dec 2008 00:56:45 +0000 (01:56 +0100)]
Start new sentences on new lines.

5 years agoAvoid NULL pointer dereference
Sepherosa Ziehau [Tue, 2 Dec 2008 13:27:37 +0000 (21:27 +0800)]
Avoid NULL pointer dereference

5 years agoFix carp_input() prototype to meet the requirement of protosw
Sepherosa Ziehau [Tue, 2 Dec 2008 10:58:27 +0000 (18:58 +0800)]
Fix carp_input() prototype to meet the requirement of protosw

5 years agoFix speed report on Intel SATA chips in compat mode.
Sepherosa Ziehau [Tue, 2 Dec 2008 10:40:13 +0000 (18:40 +0800)]
Fix speed report on Intel SATA chips in compat mode.

Obtained-from: FreeBSD ata-chipset.c rev 1.210 (partial)
Tested-by: matthias@
5 years agoPerform logarithmic volume control for vchans
Simon Schubert [Mon, 1 Dec 2008 23:52:00 +0000 (00:52 +0100)]
Perform logarithmic volume control for vchans

Previously we (and FreeBSD) would do a linear amplitude scaling, which
does not follow the natural expectation of a user.  Now volume knobs
actually behave like real life ones.

The curve is close enough to a sqare root, but whatever.

Inspired by 4front's opensound BSDL'd mixer code (which does the
opposite, i.e. converting log values to human linear scale).

5 years ago Test commit
Joe Talbott [Mon, 1 Dec 2008 20:00:13 +0000 (15:00 -0500)]
 Test commit

5 years agoFix makefile by rewriting parts into shell code
Simon Schubert [Mon, 1 Dec 2008 17:43:51 +0000 (18:43 +0100)]
Fix makefile by rewriting parts into shell code

We can't break one shell command by a make macro, or make will
split into multiple shell commands, thus losing environment (like the
pwd).

5 years agoAdd support for MAP_TRYFIXED
Simon Schubert [Mon, 1 Dec 2008 12:12:24 +0000 (13:12 +0100)]
Add support for MAP_TRYFIXED

MAP_TRYFIXED signals to the kernel that the process is well aware
that the hint might fall into the heap area, but that it would still
like to map the area.  I think this is necessary for wine.

5 years agoInstall the ppi header
Simon Schubert [Mon, 1 Dec 2008 11:27:08 +0000 (12:27 +0100)]
Install the ppi header

5 years agoUpdate the atime when mmap'ing a file
Simon Schubert [Mon, 1 Dec 2008 11:08:01 +0000 (12:08 +0100)]
Update the atime when mmap'ing a file

5 years agoAdd missing .
Matthias Schmidt [Mon, 1 Dec 2008 14:42:12 +0000 (15:42 +0100)]
Add missing .

5 years agoSync family tree with FreeBSD
Matthias Schmidt [Mon, 1 Dec 2008 14:39:48 +0000 (15:39 +0100)]
Sync family tree with FreeBSD

- FreeBSD 6.4 and OpenBSD 4.4 are released
- Remove our CVS Id

5 years agoUpdate due to recent git switch
Matthias Schmidt [Mon, 1 Dec 2008 14:34:20 +0000 (15:34 +0100)]
Update due to recent git switch

- make update is no longer available
- Comment section about releng in doc/.  If the repo gets converted, we can
  comment that paragraph back in

5 years agoAdd .gitignore file
Matthias Schmidt [Mon, 1 Dec 2008 12:43:53 +0000 (13:43 +0100)]
Add .gitignore file

OK-and-input-by: corecode@
5 years agoFix wrong path
Matthias Schmidt [Mon, 1 Dec 2008 10:59:39 +0000 (11:59 +0100)]
Fix wrong path

5 years agoUpdate committer(7) to reflect the change to git
Matthias Schmidt [Mon, 1 Dec 2008 08:59:54 +0000 (09:59 +0100)]
Update committer(7) to reflect the change to git

In-collab-with: swildner@

5 years agoCheckout master after clone
Matthias Schmidt [Mon, 1 Dec 2008 08:12:11 +0000 (09:12 +0100)]
Checkout master after clone

5 years agoReplace CVS targets with GIT targets
Matthias Schmidt [Mon, 1 Dec 2008 08:03:22 +0000 (09:03 +0100)]
Replace CVS targets with GIT targets

Note: The initial clone is only possible if no previous src/ directory is present in
/usr (this is the default after cf2bfc4158dbb2accb11861dd3a96d0d79237f63 for new
installations).  If you already have a src/ directory remove it before starting cloning.

5 years agoReference development(7).
Sascha Wildner [Mon, 1 Dec 2008 02:20:16 +0000 (03:20 +0100)]
Reference development(7).

5 years agoUpdate some documents for git usage.
Sascha Wildner [Mon, 1 Dec 2008 01:45:30 +0000 (02:45 +0100)]
Update some documents for git usage.

5 years agoUpdate development(7) for git usage.
Sascha Wildner [Mon, 1 Dec 2008 01:43:35 +0000 (02:43 +0100)]
Update development(7) for git usage.

I've vaporized most of the old content. If people feel that something
should be there, we can gradually add/adapt documentation back.

Kinda-based-on: aggelos' wiki page

5 years agoAxe various remains from the CVS era.
Sascha Wildner [Sun, 30 Nov 2008 23:21:58 +0000 (00:21 +0100)]
Axe various remains from the CVS era.

* DragonFly supfiles in share/examples/cvsup (those for other BSDs remain).

* 'make update' target and associated variables.

More will follow.

5 years agoRemove handling of CVS IDs.
Sascha Wildner [Sun, 30 Nov 2008 21:52:05 +0000 (22:52 +0100)]
Remove handling of CVS IDs.

5 years agogit(1) doesn't allow to clone into an existing directory so it doesn't
Sascha Wildner [Sun, 30 Nov 2008 20:49:58 +0000 (21:49 +0100)]
git(1) doesn't allow to clone into an existing directory so it doesn't
make sense to create /usr/src anymore.

5 years agoMerge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragon...
Sascha Wildner [Sun, 30 Nov 2008 20:16:53 +0000 (21:16 +0100)]
Merge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly into posix

5 years agoLet make upgrade install new files in etc/ if they don't exist.
Peter Avalos [Sun, 30 Nov 2008 18:23:19 +0000 (13:23 -0500)]
Let make upgrade install new files in etc/ if they don't exist.

Reviewed-by: dillon, corecode

5 years agoUse ${INSTALL} so installworld works for non-root users.
Peter Avalos [Sun, 30 Nov 2008 16:56:24 +0000 (11:56 -0500)]
Use ${INSTALL} so installworld works for non-root users.

5 years ago<utime.h> shall define time_t.
Sascha Wildner [Sun, 30 Nov 2008 14:21:03 +0000 (15:21 +0100)]
<utime.h> shall define time_t.

5 years agoTesting demultiplexing 2/2
Simon Schubert [Sun, 30 Nov 2008 13:10:25 +0000 (14:10 +0100)]
Testing demultiplexing 2/2

5 years agoTesting push demultiplexing 1/2
Simon Schubert [Sun, 30 Nov 2008 13:09:55 +0000 (14:09 +0100)]
Testing push demultiplexing 1/2

5 years agoMore testing.
Simon Schubert [Sun, 30 Nov 2008 12:33:15 +0000 (13:33 +0100)]
More testing.

5 years agoTest mail hook
Simon Schubert [Sun, 30 Nov 2008 12:32:18 +0000 (13:32 +0100)]
Test mail hook

5 years agoAdd a gaussian filter for maximum beeping pleasure.
Simon Schubert [Sat, 29 Nov 2008 23:41:05 +0000 (00:41 +0100)]
Add a gaussian filter for maximum beeping pleasure.

5 years agoRecognize TTTech MC322
Sepherosa Ziehau [Sun, 30 Nov 2008 10:54:10 +0000 (18:54 +0800)]
Recognize TTTech MC322

Obtained-from: OpenBSD

5 years agoregen
Sepherosa Ziehau [Sun, 30 Nov 2008 10:51:11 +0000 (18:51 +0800)]
regen

5 years agoAdd TTTech
Sepherosa Ziehau [Sun, 30 Nov 2008 10:46:54 +0000 (18:46 +0800)]
Add TTTech

Obtained-from: OpenBSD

5 years agoFilter out 8139 chips by PCI revid. It looks like certain 8139 does have
Sepherosa Ziehau [Sun, 30 Nov 2008 10:33:13 +0000 (18:33 +0800)]
Filter out 8139 chips by PCI revid.  It looks like certain 8139 does have
same hardware revision (in TXCFG) as 8139C+.

Reported-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
Obtained-from: FreeBSD

5 years agoRemove jumbo frame support for 8169; it never works (except slow ping) and
Sepherosa Ziehau [Sun, 30 Nov 2008 10:08:27 +0000 (18:08 +0800)]
Remove jumbo frame support for 8169; it never works (except slow ping) and
pullute the TX path a lot.

5 years ago- Use a longer timeout value for firmware handshaking.
Sepherosa Ziehau [Sun, 30 Nov 2008 09:49:49 +0000 (17:49 +0800)]
- Use a longer timeout value for firmware handshaking.
- Nuke the RX CPU self-diag, which prevents working cards from working.(*)

This commit intends to fix the firmware handshaking failure seen on PCI cards.
PCI-E cards do not seem to be affected.

(*) Linux tg3 does not have this diag neither does OpenBSD's bge(4)

5 years agotest git
Matthias Schmidt [Sun, 30 Nov 2008 09:33:06 +0000 (10:33 +0100)]
test git

5 years agotesting
Nuno Antunes [Sun, 30 Nov 2008 08:06:23 +0000 (08:06 +0000)]
testing

5 years agotest lance
Sepherosa Ziehau [Sun, 30 Nov 2008 07:54:27 +0000 (15:54 +0800)]
test lance

5 years agoTest commit/push access for master.
Peter Avalos [Sun, 30 Nov 2008 07:10:19 +0000 (02:10 -0500)]
Test commit/push access for master.

5 years agotest
Sascha Wildner [Sat, 29 Nov 2008 20:49:35 +0000 (21:49 +0100)]
test

6 years agoFix disklabel(1) core dump.
Nicolas Thery [Fri, 28 Nov 2008 16:52:27 +0000 (17:52 +0100)]
Fix disklabel(1) core dump.

The core dump occured when label line countained no fstype.  Now
displays an error message instead.

Submitted-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
5 years agotest xanadu
Sepherosa Ziehau [Sat, 29 Nov 2008 11:01:32 +0000 (19:01 +0800)]
test xanadu

5 years agotest enigma
Sepherosa Ziehau [Sat, 29 Nov 2008 11:02:08 +0000 (19:02 +0800)]
test enigma

5 years agotest local mirror
Sepherosa Ziehau [Sat, 29 Nov 2008 10:52:35 +0000 (18:52 +0800)]
test local mirror

5 years agotest push
Sepherosa Ziehau [Sat, 29 Nov 2008 10:16:33 +0000 (18:16 +0800)]
test push

6 years agoMerge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly
Nicolas Thery [Fri, 28 Nov 2008 12:16:55 +0000 (13:16 +0100)]
Merge branch 'master' of git://chlamydia.fs.ei.tum.de/dragonfly

5 years agotest
Charlie [Sat, 29 Nov 2008 02:51:22 +0000 (10:51 +0800)]
test

6 years agoTest switch to git repo.
Nicolas Thery [Fri, 28 Nov 2008 12:12:21 +0000 (13:12 +0100)]
Test switch to git repo.

6 years agoBump .Dd to when the page was updated.
Sascha Wildner [Wed, 26 Nov 2008 17:17:16 +0000 (17:17 +0000)]
Bump .Dd to when the page was updated.

6 years agoRemove wrong parentheses.
Sascha Wildner [Wed, 26 Nov 2008 15:27:24 +0000 (15:27 +0000)]
Remove wrong parentheses.

6 years agoResurrect priority message support; there is always +/-5~10K measurement error.
Sepherosa Ziehau [Wed, 26 Nov 2008 15:05:42 +0000 (15:05 +0000)]
Resurrect priority message support; there is always +/-5~10K measurement error.

6 years ago- In sys_setsockopt():
Sepherosa Ziehau [Wed, 26 Nov 2008 13:10:56 +0000 (13:10 +0000)]
- In sys_setsockopt():
  o  Don't test sopt.sopt_val against NULL; this is not setup yet.  This fixes
     random setsockopt(2) failure with EINVAL.
  o  Clear sopt.sopt_val earlier
  o  Don't do copyout in setsockopt; the user arg is const
- In sys_getsockopt():
  o  Clear sopt.sopt_val earlier
  o  Centralize sopt.sopt_valsize check

Reviewed-by: aggelos@
6 years ago- Proper handle flags passed to bridge_rtflush() and bridge_rtdelete(),
Sepherosa Ziehau [Wed, 26 Nov 2008 12:49:43 +0000 (12:49 +0000)]
- Proper handle flags passed to bridge_rtflush() and bridge_rtdelete(),
  instead of handle it as a boolean.
- Add IFBF_FLUSHSYNC flag so bridge_rtflush() and bridge_rtdelete() could
  perform async operation (used by STP code).