The NetBSD Project

CVS log for src/sys/kern/uipc_socket2.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.142 / (download) - annotate - [select for diffs], Wed Oct 26 23:38:09 2022 UTC (3 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored)

ddb/db_active.h: New home for extern db_active.

This can be included unconditionally, and db_active can then be
queried unconditionally; if DDB is not in the kernel, then db_active
is a constant zero.  Reduces need for #include opt_ddb.h, #ifdef DDB.

Revision 1.141 / (download) - annotate - [select for diffs], Sat Apr 9 23:52:23 2022 UTC (9 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.140: +21 -8 lines
Diff to previous 1.140 (colored)

unix(4): Convert membar_exit to membar_release.

Use atomic_load_consume or atomic_load_relaxed where necessary.

Comment on why unlocked nonatomic access is valid where it is done.

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Sat Oct 2 11:07:55 2021 UTC (16 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.134.2.1: +21 -4 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored)

Pull up following revision(s) (requested by thorpej in ticket #1350):

	sys/kern/uipc_socket2.c: revision 1.140
	tests/lib/libc/sys/t_poll.c: revision 1.5
	sys/miscfs/fifofs/fifo_vnops.c: revision 1.87

- fifo_poll(): If the last writer has disappeared, detect this and return
  POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.

Revision 1.140 / (download) - annotate - [select for diffs], Sat Oct 2 02:07:41 2021 UTC (16 months ago) by thorpej
Branch: MAIN
Changes since 1.139: +21 -4 lines
Diff to previous 1.139 (colored)

- fifo_poll(): If the last writer has disappeared, detect this and return
  POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:00 2021 UTC (22 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.138: +3 -2 lines
Diff to previous 1.138 (colored) next main 1.139 (colored)

Sync with HEAD.

Revision 1.139 / (download) - annotate - [select for diffs], Thu Mar 4 01:35:31 2021 UTC (23 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.138: +3 -2 lines
Diff to previous 1.138 (colored)

Add missing opt_inet.h.

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 18:39:01 2020 UTC (2 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.134: +3 -2 lines
Diff to previous 1.134 (colored)

Pull up following revision(s) (requested by christos in ticket #1091):

	sys/kern/uipc_socket.c: revision 1.291
	sys/kern/uipc_usrreq.c: revision 1.199
	sys/kern/uipc_socket2.c: revision 1.138

add socket info for user and group for unix sockets in fstat.

Revision 1.138 / (download) - annotate - [select for diffs], Wed Aug 26 22:54:30 2020 UTC (2 years, 5 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.137: +3 -2 lines
Diff to previous 1.137 (colored)

add socket info for user and group for unix sockets in fstat.

Revision 1.137 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (2 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.130.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.130.2.2: +4 -0 lines
Diff to previous 1.130.2.2 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.130.2.1: +4 -4 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored)

Merge changes from current as of 20200406

Revision 1.134.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:03 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored) next main 1.135 (colored)

Sync with head.

Revision 1.136 / (download) - annotate - [select for diffs], Sat Feb 1 02:23:23 2020 UTC (3 years ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored)

Load struct fdfile::ff_file with atomic_load_consume.

Exceptions: when we're only testing whether it's there, not about to
dereference it.

Note: We do not use atomic_store_release to set it because the
preceding mutex_exit should be enough.

(That said, it's not clear the mutex_enter/exit is needed unless
refcnt > 0 already, in which case maybe it would be a win to switch
from the membar implied by mutex_enter to the membar implied by
atomic_store_release -- which I would generally expect to be much
cheaper.  And a little clearer without a long comment.)

Revision 1.135 / (download) - annotate - [select for diffs], Sat Feb 1 02:23:04 2020 UTC (3 years ago) by riastradh
Branch: MAIN
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

Load struct filedesc::fd_dt with atomic_load_consume.

Exceptions: when fd_refcnt <= 1, or when holding fd_lock.

While here:

- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused.
  => This is used only in fd_close and fd_abort, where it holds.
- Move bounds check assertion in fd_putfile to where it matters.
- Store fd_dt with atomic_store_release.
- Move load of fd_dt under lock in knote_fdclose.
- Omit membar_consumer in fdesc_readdir.
  => atomic_load_consume serves the same purpose now.
  => Was needed only on alpha anyway.

Revision 1.124.8.4 / (download) - annotate - [select for diffs], Wed Aug 7 08:21:55 2019 UTC (3 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.124.8.3: +6 -2 lines
Diff to previous 1.124.8.3 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

Pull up following revision(s) (requested by maxv in ticket #1330):

	sys/kern/uipc_socket2.c: revision 1.134

Fix info leaks: the alignment of the structures causes uninitialized heap
memory to be copied to userland in sys_recvmsg().

Revision 1.134 / (download) - annotate - [select for diffs], Thu Jul 11 17:30:44 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Changes since 1.133: +6 -2 lines
Diff to previous 1.133 (colored)

Fix info leaks: the alignment of the structures causes uninitialized heap
memory to be copied to userland in sys_recvmsg().

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:04 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.130: +202 -5 lines
Diff to previous 1.130 (colored)

Sync with HEAD

Revision 1.126.4.6 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:50 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.126.4.5: +6 -4 lines
Diff to previous 1.126.4.5 (colored) to branchpoint 1.126 (colored) next main 1.127 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.133 / (download) - annotate - [select for diffs], Sun Nov 4 16:30:29 2018 UTC (4 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Changes since 1.132: +6 -4 lines
Diff to previous 1.132 (colored)

- Introduce a new SO_RERROR socket option to explicitly turn on
  receive overflow errors re-instating the default behavior to
  silently ignore them as before 2018-03-19.
- Introduce a new kern.sooptions sysctl to control the default
  behavior of socket options. Setting this to 0x4000 (SO_RERROR),
  turns on receive overflow error reporting for all sockets.
- Change dhcpcd to turn on SO_RERROR on all its sockets.

As discussed in tech-net.

Revision 1.126.4.5 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:42 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126.4.4: +3 -3 lines
Diff to previous 1.126.4.4 (colored) to branchpoint 1.126 (colored)

Sync with HEAD

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

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

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

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

HOWEVER!  Some subsystems have

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

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

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

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

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

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

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

Revision 1.124.8.3 / (download) - annotate - [select for diffs], Tue Jul 31 17:01:20 2018 UTC (4 years, 6 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.124.8.2: +197 -2 lines
Diff to previous 1.124.8.2 (colored) to branchpoint 1.124 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #954):

	sys/sys/socketvar.h: revision 1.157
	share/man/man4/ddb.4: revision 1.180
	share/man/man4/ddb.4: revision 1.181
	sys/kern/uipc_socket2.c: revision 1.131
	sys/ddb/db_command.c: revision 1.154

Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.
Improve wording.

Revision 1.126.4.4 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:08 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126.4.3: +197 -2 lines
Diff to previous 1.126.4.3 (colored) to branchpoint 1.126 (colored)

Sync with HEAD

Revision 1.131 / (download) - annotate - [select for diffs], Fri Jul 20 08:26:25 2018 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.130: +197 -2 lines
Diff to previous 1.130 (colored)

 Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.

Revision 1.126.4.3 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:04 2018 UTC (4 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126.4.2: +3 -3 lines
Diff to previous 1.126.4.2 (colored) to branchpoint 1.126 (colored)

Sync with HEAD

Revision 1.124.8.2 / (download) - annotate - [select for diffs], Sat Jun 9 15:16:30 2018 UTC (4 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.124.8.1: +3 -3 lines
Diff to previous 1.124.8.1 (colored) to branchpoint 1.124 (colored)

Pull up following revision(s) (requested by roy in ticket #868):

	sys/sys/socketvar.h: revision 1.156
	sys/kern/uipc_socket2.c: revision 1.130
	sys/kern/uipc_socket.c: revision 1.264

Separate receive socket errors from general socket errors.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Jun 6 09:46:46 2018 UTC (4 years, 7 months ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored)

Separate receive socket errors from general socket errors.

Revision 1.126.4.2 / (download) - annotate - [select for diffs], Wed May 2 07:20:22 2018 UTC (4 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126.4.1: +3 -3 lines
Diff to previous 1.126.4.1 (colored) to branchpoint 1.126 (colored)

Synch with HEAD

Revision 1.129 / (download) - annotate - [select for diffs], Sun Apr 29 07:13:10 2018 UTC (4 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored)

Remove references to m_copy in comments.

Revision 1.124.8.1 / (download) - annotate - [select for diffs], Mon Apr 9 13:34:10 2018 UTC (4 years, 9 months ago) by bouyer
Branch: netbsd-8
CVS Tags: netbsd-8-0-RC1
Changes since 1.124: +16 -2 lines
Diff to previous 1.124 (colored)

Pull up following revision(s) (requested by roy in ticket #724):
	tests/net/icmp/t_ping.c: revision 1.19
	sys/netinet6/raw_ip6.c: revision 1.166
	sys/netinet6/ip6_input.c: revision 1.195
	sys/net/raw_usrreq.c: revision 1.59
	sys/sys/socketvar.h: revision 1.151
	sys/kern/uipc_socket2.c: revision 1.128
	tests/lib/libc/sys/t_recvmmsg.c: revision 1.2
	lib/libc/sys/recv.2: revision 1.38
	sys/net/rtsock.c: revision 1.239
	sys/netinet/udp_usrreq.c: revision 1.246
	sys/netinet6/icmp6.c: revision 1.224
	tests/net/icmp/t_ping.c: revision 1.20
	sys/netipsec/keysock.c: revision 1.63
	sys/netinet/raw_ip.c: revision 1.172
	sys/kern/uipc_socket.c: revision 1.260
	tests/net/icmp/t_ping.c: revision 1.22
	sys/kern/uipc_socket.c: revision 1.261
	tests/net/icmp/t_ping.c: revision 1.23
	sys/netinet/ip_mroute.c: revision 1.155
	sbin/route/route.c: revision 1.159
	sys/netinet6/ip6_mroute.c: revision 1.123
	sys/netatalk/ddp_input.c: revision 1.31
	sys/netcan/can.c: revision 1.3
	sys/kern/uipc_usrreq.c: revision 1.184
	sys/netinet6/udp6_usrreq.c: revision 1.138
	tests/net/icmp/t_ping.c: revision 1.18
socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().
This allows userland to detect route(4) overflows so it can re-sync
with the current state.
socket: clear error even when peeking
The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.
socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
rtsock: log dropped messages that we cannot report to userland
Handle ENOBUFS when receiving messages.
Don't send messages if the receiver has died.
Sprinkle more soroverflow().
Handle ENOBUFS in recv
Handle ENOBUFS in sendto
Note value received. Harden another sendto for ENOBUFS.
Handle the routing socket overflowing gracefully.
Allow a valid sendto .... duh
Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.126.4.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:50 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.126: +19 -5 lines
Diff to previous 1.126 (colored)

Synch with HEAD, resolve conflicts

Revision 1.128 / (download) - annotate - [select for diffs], Mon Mar 19 16:26:26 2018 UTC (4 years, 10 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Changes since 1.127: +16 -2 lines
Diff to previous 1.127 (colored)

socket: report receive buffer overflows

Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().

This allows userland to detect route(4) overflows so it can re-sync
with the current state.

Revision 1.127 / (download) - annotate - [select for diffs], Sun Mar 18 15:32:48 2018 UTC (4 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.126: +5 -5 lines
Diff to previous 1.126 (colored)

- Convert sb_lowat to unsigned for consistency. There are no negative value
  uses
- Check for overflow as mentioned in the comment
- Sprinkle const

Revision 1.110.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.110.6.1: +41 -12 lines
Diff to previous 1.110.6.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

update from HEAD

Revision 1.126 / (download) - annotate - [select for diffs], Thu Jul 6 17:42:39 2017 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Changes since 1.125: +2 -35 lines
Diff to previous 1.125 (colored)

move the timestamp stuff to uipc_socket.c because it already has the compat
includes.

Revision 1.125 / (download) - annotate - [select for diffs], Thu Jul 6 17:08:57 2017 UTC (5 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.124: +35 -2 lines
Diff to previous 1.124 (colored)

Merge the two copies SO_TIMESTAMP/SO_OTIMESTAMP processing to a single
function, and add a SOOPT_TIMESTAMP define reducing compat pollution from
5 places to 1.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:17 2016 UTC (6 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.123: +7 -9 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

Sync with HEAD

Revision 1.121.2.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.121.2.2: +7 -9 lines
Diff to previous 1.121.2.2 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored)

Sync with HEAD

Revision 1.124 / (download) - annotate - [select for diffs], Sun Oct 2 19:26:46 2016 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.123: +7 -9 lines
Diff to previous 1.123 (colored)

more MFREE -> m_free

Revision 1.121.2.2 / (download) - annotate - [select for diffs], Sun May 29 08:44:37 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.121.2.1: +33 -4 lines
Diff to previous 1.121.2.1 (colored) to branchpoint 1.121 (colored)

Sync with HEAD

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 23 13:54:34 2016 UTC (6 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.122: +33 -4 lines
Diff to previous 1.122 (colored)

Fix a longstanding problem with accept filters noticed by Timo Buhrmester:
sockets sitting in the accept filter can consume the entire listen queue,
such that the application is never able to handle any connections.  Handle
this by simply passing through the oldest queued cxn when the queue is full.

This is fair because the longer a cxn lingers in the queue (stays connected
but does not meet the requirements of the filter for passage) the more likely
it is to be passed through, at which point the application can dispose of it.

Works because none of our accept filters actually allocate private state
per-cxn.  If they did, we'd have to fix the API bug that there is presently
no way to tell an accf to finish/deallocate for a single cxn (accf_destroy
kills off the entire filter instance for a given listen socket).

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.121: +4 -2 lines
Diff to previous 1.121 (colored)

Sync with HEAD

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

sprinkle _KERNEL_OPT

Revision 1.121 / (download) - annotate - [select for diffs], Fri Sep 5 05:57:21 2014 UTC (8 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.120: +5 -5 lines
Diff to previous 1.120 (colored)

Don't next structure and enum definitions.
Don't use C++ keywords new, try, class, private, etc.

Revision 1.110.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.110: +187 -134 lines
Diff to previous 1.110 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.115: +140 -102 lines
Diff to previous 1.115 (colored) next main 1.116 (colored)

Rebase.

Revision 1.120 / (download) - annotate - [select for diffs], Thu Jul 31 03:39:35 2014 UTC (8 years, 6 months ago) by rtr
Branch: 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
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored)

split PRU_DISCONNECT, PRU_SHUTDOWN and PRU_ABORT function out of
pr_generic() usrreq switches and put into separate functions

   xxx_disconnect(struct socket *)
   xxx_shutdown(struct socket *)
   xxx_abort(struct socket *)

   - always KASSERT(solocked(so)) even if not implemented
   - replace calls to pr_generic() with req =
PRU_{DISCONNECT,SHUTDOWN,ABORT}
     with calls to pr_{disconnect,shutdown,abort}() respectively

rename existing internal functions used to implement above functionality
to permit use of the names for xxx_{disconnect,shutdown,abort}().

   - {l2cap,sco,rfcomm}_disconnect() ->
{l2cap,sco,rfcomm}_disconnect_pcb()
   - {unp,rip,tcp}_disconnect() -> {unp,rip,tcp}_disconnect1()
   - unp_shutdown() -> unp_shutdown1()

patch reviewed by rmind

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.109.2.1: +55 -40 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

sync with head.

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

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

Revision 1.119 / (download) - annotate - [select for diffs], Mon May 19 02:51:24 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.118: +20 -14 lines
Diff to previous 1.118 (colored)

- Split off PRU_ATTACH and PRU_DETACH logic into separate functions.
- Replace malloc with kmem and eliminate M_PCB while here.
- Sprinkle more asserts.

Revision 1.112.2.4 / (download) - annotate - [select for diffs], Sun May 18 17:46:08 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.112.2.3: +30 -38 lines
Diff to previous 1.112.2.3 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored)

sync with head

Revision 1.118 / (download) - annotate - [select for diffs], Sun May 18 14:46:15 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.117: +4 -4 lines
Diff to previous 1.117 (colored)

Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.117 / (download) - annotate - [select for diffs], Sat May 17 23:55:24 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.116: +5 -6 lines
Diff to previous 1.116 (colored)

sonewconn: insert the socket into the queue *after* the protocol attach.
This potentially avoids unnecessary race conditions when handling partial
connections.

Revision 1.116 / (download) - annotate - [select for diffs], Sat May 17 22:52:36 2014 UTC (8 years, 8 months ago) by rmind
Branch: MAIN
Changes since 1.115: +127 -94 lines
Diff to previous 1.115 (colored)

- sonewconn: improve the initialisation order and add some asserts.
- Add various comments describing primitive routines operating on sockets,
  clarify connection life-cycle and improve the description of socket queues.
- Sprinkle more asserts.

Revision 1.112.2.3 / (download) - annotate - [select for diffs], Thu Oct 17 23:52:18 2013 UTC (9 years, 3 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.112.2.2: +1 -1 lines
Diff to previous 1.112.2.2 (colored) to branchpoint 1.112 (colored)

Eliminate some of the splsoftnet() calls, misc clean up.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Oct 8 19:58:25 2013 UTC (9 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.114: +17 -17 lines
Diff to previous 1.114 (colored)

0 -> NULL
MGET -> m_get
No functional change.

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Mon Sep 23 00:57:53 2013 UTC (9 years, 4 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.112.2.1: +50 -45 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored)

- Add some initial locking to the IPv4 PCB.
- Rename inpcb_lookup_*() routines to be more accurate and add comments.
- Add some comments about connection life-cycle WRT socket layer.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Sep 15 15:41:11 2013 UTC (9 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.113: +4 -5 lines
Diff to previous 1.113 (colored)

Avoid unused variable warnings

Revision 1.113 / (download) - annotate - [select for diffs], Thu Aug 29 17:49:21 2013 UTC (9 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.112: +9 -11 lines
Diff to previous 1.112 (colored)

Remove SS_ISCONFIRMING, it is unused and TP4 will not come back.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Wed Aug 28 15:21:48 2013 UTC (9 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.112: +82 -52 lines
Diff to previous 1.112 (colored)

Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
  methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
  socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Jun 28 01:23:38 2013 UTC (9 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.111: +4 -3 lines
Diff to previous 1.111 (colored)

Make sbdrop panic more verbose

Revision 1.111 / (download) - annotate - [select for diffs], Thu Jun 27 18:53:17 2013 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.110: +29 -12 lines
Diff to previous 1.110 (colored)

Introduce a more general method of sbcreatecontrol, sbcreatecontrol1 that
can take flags (M_WAITOK), and allocate large messages if needed. It also
returns the allocated pointer instead of copying the data to the passed
pointer. Implement sbcreatecontrol() using that.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:31 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.109: +2 -3 lines
Diff to previous 1.109 (colored)

sync with head

Revision 1.109.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:34 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.109: +2 -3 lines
Diff to previous 1.109 (colored) next main 1.110 (colored)

merge to -current.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Dec 20 23:56:28 2011 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.109: +2 -3 lines
Diff to previous 1.109 (colored)

- Eliminate so_nbio and turn it into a bit SS_NBIO in so_state.
- Introduce MSG_NBIO so that we can turn non blocking i/o on a per call basis
- Use MSG_NBIO to fix the XXX: multi-threaded issues on the fifo sockets.
- Don't set SO_CANTRCVMORE, if we were interrupted (perhaps do it for all
  errors?).

Revision 1.109 / (download) - annotate - [select for diffs], Wed Aug 31 18:31:03 2011 UTC (11 years, 5 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

NULL does not need a cast

Revision 1.106.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:39 2011 UTC (11 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.106: +4 -5 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with HEAD.

Revision 1.106.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:05:03 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.106.4.1: +0 -1 lines
Diff to previous 1.106.4.1 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

sync with head

Revision 1.108 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:23 2011 UTC (11 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.107: +2 -3 lines
Diff to previous 1.107 (colored)

- Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.

Revision 1.106.4.1 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:10 2011 UTC (11 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

sync with head

Revision 1.107 / (download) - annotate - [select for diffs], Sat Apr 9 23:03:59 2011 UTC (11 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

Preserve SB_ASYNC on the accepted socket. From: Dmitry Matveev
http://mail-index.netbsd.org/tech-net/2011/02/17/msg002457.html

Revision 1.91.2.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:20 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.91.2.4: +3 -7 lines
Diff to previous 1.91.2.4 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

sync with head

Revision 1.106 / (download) - annotate - [select for diffs], Wed Dec 30 22:12:12 2009 UTC (13 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.105: +2 -3 lines
Diff to previous 1.105 (colored)

Don't bother caching egid. It'll be removed soon.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Dec 30 18:33:53 2009 UTC (13 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.104: +3 -6 lines
Diff to previous 1.104 (colored)

Always use resource limits from the process, as proposed in

	http://mail-index.netbsd.org/tech-kern/2009/12/30/msg006756.html

okay christos@.

Revision 1.91.2.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:01 2009 UTC (13 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.91.2.3: +5 -4 lines
Diff to previous 1.91.2.3 (colored) to branchpoint 1.91 (colored)

sync with head

Revision 1.104 / (download) - annotate - [select for diffs], Wed Sep 2 14:56:57 2009 UTC (13 years, 5 months ago) by tls
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.103: +5 -4 lines
Diff to previous 1.103 (colored)

Add a direction argument to socket upcalls, so they can tell why they've
been called when, for example, they're waiting for space to write.  From
Ritesh Agrawal at Coyote Point.

Revision 1.91.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:17 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.91.2.2: +5 -3 lines
Diff to previous 1.91.2.2 (colored) to branchpoint 1.91 (colored)

sync with head.

Revision 1.103 / (download) - annotate - [select for diffs], Fri Jul 24 01:09:49 2009 UTC (13 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.102: +5 -3 lines
Diff to previous 1.102 (colored)

check return code from soreserve() (Sean Boudreau)

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:58 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.101: +4 -2 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

Sync with HEAD.

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

Revision 1.91.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:49 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.91.2.1: +73 -25 lines
Diff to previous 1.91.2.1 (colored) to branchpoint 1.91 (colored)

sync with head.

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:01 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.100.2.1: +4 -2 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Sync with HEAD.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Apr 9 00:43:38 2009 UTC (13 years, 9 months ago) by yamt
Branch: 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, jymxensuspend-base, jym-xensuspend-base
Changes since 1.101: +4 -2 lines
Diff to previous 1.101 (colored)

sonewconn: add an assertion.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:57 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.100: +10 -5 lines
Diff to previous 1.100 (colored)

Sync with HEAD.

Revision 1.100.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 21:04:45 2009 UTC (14 years ago) by snj
Branch: 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, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.100: +10 -5 lines
Diff to previous 1.100 (colored) next main 1.101 (colored)

Pull up following revision(s) (requested by yamt in ticket #393):
	sys/kern/uipc_socket.c: revision 1.185
	sys/kern/uipc_socket2.c: revision 1.101
	sys/kern/uipc_syscalls.c: revision 1.135
	sys/miscfs/portal/portal_vnops.c: revision 1.81
	sys/netsmb/smb_trantcp.c: revision 1.40
	sys/nfs/nfs_socket.c: revision 1.177
	sys/sys/socketvar.h: revision 1.118
restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Jan 21 06:59:29 2009 UTC (14 years ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.100: +10 -5 lines
Diff to previous 1.100 (colored)

restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

Revision 1.89.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.89.6.4: +11 -12 lines
Diff to previous 1.89.6.4 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored)

Sync with HEAD.

Revision 1.96.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.96.2.1: +6 -6 lines
Diff to previous 1.96.2.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored)

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

Revision 1.100 / (download) - annotate - [select for diffs], Fri Oct 24 22:23:20 2008 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.99: +6 -6 lines
Diff to previous 1.99 (colored)

Change 'return (expr);' to 'return expr;'.  Change (type *)0 to
NULL.  No functional change intended.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:29 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.96: +24 -6 lines
Diff to previous 1.96 (colored)

Sync with HEAD.

Revision 1.99 / (download) - annotate - [select for diffs], Tue Oct 14 13:45:26 2008 UTC (14 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: haad-dm-base1
Changes since 1.98: +8 -10 lines
Diff to previous 1.98 (colored)

Accept filters:

- Remove remaining #ifdef INET.
- Avoid holding locks so we don't need to do KM_NOSLEEP allocations.
- Use a rwlock to protect the accept filter list.
- Make it safe to unload accept filter modules.
- Minor KNF.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Oct 11 13:40:57 2008 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.97: +3 -2 lines
Diff to previous 1.97 (colored)

Move uidinfo to its own module in kern_uidinfo.c and include in rump.
No functional change to uidinfo.

Revision 1.89.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:54 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.89.6.3: +23 -4 lines
Diff to previous 1.89.6.3 (colored) to branchpoint 1.89 (colored)

Sync with HEAD.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:44 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.92.2.1: +25 -6 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Aug 4 03:55:47 2008 UTC (14 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.96: +25 -6 lines
Diff to previous 1.96 (colored)

Add accept filters, ported from FreeBSD by Coyote Point Systems.  Add inetd
support for specifying an accept filter for a service (mostly as a usage
example, but it can be handy for other things).  Manual pages to follow
in a day or so.

OK core@.

Revision 1.89.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.89.6.2: +19 -0 lines
Diff to previous 1.89.6.2 (colored) to branchpoint 1.89 (colored)

Sync with HEAD.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:52 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.92: +38 -15 lines
Diff to previous 1.92 (colored)

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

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:35 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.94: +21 -2 lines
Diff to previous 1.94 (colored) next main 1.95 (colored)

Sync with head.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Jun 18 09:06:27 2008 UTC (14 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.95: +4 -2 lines
Diff to previous 1.95 (colored)

merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)

ok'ed by peter@.  requested by core@

Revision 1.90.2.4 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.90.2.3: +19 -2 lines
Diff to previous 1.90.2.3 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

sync with head.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Jun 10 11:49:11 2008 UTC (14 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4
Changes since 1.94: +19 -2 lines
Diff to previous 1.94 (colored)

There can be existing waiters on a socket's condition variables when we
change socket::so_lock, and they rely on the old lock to synchronize.
Wake them up whenever we change so_lock so they can restart their waits.

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Fri Jun 6 20:18:19 2008 UTC (14 years, 8 months ago) by christos
Branch: yamt-pf42
Changes since 1.90.2.2: +4 -2 lines
Diff to previous 1.90.2.2 (colored) to branchpoint 1.90 (colored)

add so_egid and so_cpid for pf.

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:40 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.90.2.1: +19 -15 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored)

sync with head

Revision 1.89.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:13 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.89.6.1: +335 -73 lines
Diff to previous 1.89.6.1 (colored) to branchpoint 1.89 (colored)

Sync with HEAD.

Revision 1.94 / (download) - annotate - [select for diffs], Mon May 26 17:21:18 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.93: +13 -6 lines
Diff to previous 1.93 (colored)

Use pool_cache for sockets.

Revision 1.93 / (download) - annotate - [select for diffs], Sat May 24 16:35:28 2008 UTC (14 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.92: +8 -11 lines
Diff to previous 1.92 (colored)

Coverity CID 5025: sbreserve is never called with a null socket.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:11 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.90: +324 -66 lines
Diff to previous 1.90 (colored)

sync with head.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:28 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.91: +2 -9 lines
Diff to previous 1.91 (colored)

sync with head.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.91: +2 -9 lines
Diff to previous 1.91 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.91 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:36 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.90: +331 -66 lines
Diff to previous 1.90 (colored)

Merge the socket locking patch:

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

With much feedback from matt@ and plunky@.

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:05 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.89: +11 -10 lines
Diff to previous 1.89 (colored)

Sync with HEAD.

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.89: +11 -10 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

sync with head.

Revision 1.85.4.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:01 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.85.4.1: +14 -13 lines
Diff to previous 1.85.4.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

sync with HEAD

Revision 1.68.2.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.6: +11 -10 lines
Diff to previous 1.68.2.6 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

sync with head.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:51 2008 UTC (14 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.89: +11 -10 lines
Diff to previous 1.89 (colored)

Welcome to 4.99.55:

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

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

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

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

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:48 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.86: +5 -5 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Sync with HEAD.

Revision 1.68.2.6 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.5: +3 -2 lines
Diff to previous 1.68.2.5 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Thu Feb 7 12:14:43 2008 UTC (14 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored)

sonewconn: inherit FNONBLOCK from the parent.

Revision 1.68.2.5 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:21 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.4: +4 -5 lines
Diff to previous 1.68.2.4 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jan 29 12:39:39 2008 UTC (15 years ago) by yamt
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

sbreserve: curlwp can't be NULL these days.
XXX these code seems to need an overhaul.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Jan 29 09:31:22 2008 UTC (15 years ago) by yamt
Branch: MAIN
Changes since 1.86: +3 -4 lines
Diff to previous 1.86 (colored)

sbrelease: unwrap a short line.

Revision 1.85.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:42 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.85: +6 -2 lines
Diff to previous 1.85 (colored)

sync with HEAD

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:39 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.3: +6 -2 lines
Diff to previous 1.68.2.3 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.82.2.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:32 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.82.2.2: +6 -2 lines
Diff to previous 1.82.2.2 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored)

Sync with head.

Revision 1.85.6.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:47 2007 UTC (15 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.85: +6 -2 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

sync with head.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:07 2007 UTC (15 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.85: +6 -2 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Sync with HEAD.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Sep 25 14:04:07 2007 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.85: +6 -2 lines
Diff to previous 1.85 (colored)

Use selinit() / seldestroy().

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:19 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.2: +21 -15 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:41 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.82.2.1: +4 -2 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored)

Sync with HEAD.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:49:19 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.84: +4 -2 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

Sync with HEAD.

Revision 1.85.8.2 / (download) - annotate - [select for diffs], Thu Aug 2 02:42:41 2007 UTC (15 years, 6 months ago) by rmind
Branch: matt-mips64
Changes since 1.85.8.1: +1139 -0 lines
Diff to previous 1.85.8.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

TCP socket buffers automatic sizing - ported from FreeBSD.
http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html

! Disabled by default, marked as experimental. Testers are very needed.
! Someone should thoroughly test this, and improve if possible.

Discussed on <tech-net>:
http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html
Thanks Greg Troxel for comments.

OK by the long silence on <tech-net>.

Revision 1.85.8.1, Thu Aug 2 02:42:40 2007 UTC (15 years, 6 months ago) by rmind
Branch: matt-mips64
Changes since 1.85: +0 -1139 lines
FILE REMOVED

file uipc_socket2.c was added on branch matt-mips64 on 2007-08-02 02:42:41 +0000

Revision 1.85 / (download) - annotate - [select for diffs], Thu Aug 2 02:42:40 2007 UTC (15 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.84: +4 -2 lines
Diff to previous 1.84 (colored)

TCP socket buffers automatic sizing - ported from FreeBSD.
http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html

! Disabled by default, marked as experimental. Testers are very needed.
! Someone should thoroughly test this, and improve if possible.

Discussed on <tech-net>:
http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html
Thanks Greg Troxel for comments.

OK by the long silence on <tech-net>.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:46 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.82: +6 -2 lines
Diff to previous 1.82 (colored)

Sync with head.

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:19 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.82: +6 -2 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Sync with head.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jul 4 07:17:11 2007 UTC (15 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, hpcarm-cleanup
Branch point for: nick-csl-alignment
Changes since 1.83: +4 -2 lines
Diff to previous 1.83 (colored)

After looking at FreeBSD 6 again -- we were also failing to copy the
send and receive timeouts.  Fix this.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 4 07:13:13 2007 UTC (15 years, 7 months ago) by tls
Branch: MAIN
Changes since 1.82: +4 -2 lines
Diff to previous 1.82 (colored)

Copy SNDLOWAT and RCVLOWAT socket options to accepted socket, so applications
can rely on all socket options being propagated from the listen socket as
the manual page says (and as everything but Linux has always done).  FreeBSD 6
fixes this the same way, but this bug appears elsewhere and is...Old.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:45 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.81: +15 -15 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Sync with HEAD.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:11 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.81: +15 -15 lines
Diff to previous 1.81 (colored)

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

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:07 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.1: +21 -11 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.77.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:46 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.77.4.1: +3 -3 lines
Diff to previous 1.77.4.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

remove some __unused from function parameters.

Revision 1.77.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

sync with head

Revision 1.80 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:19 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

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

Revision 1.79 / (download) - annotate - [select for diffs], Tue Oct 3 11:15:04 2006 UTC (16 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.78: +2 -4 lines
Diff to previous 1.78 (colored)

Back out socket credentials for now, until we figure a better way of
handling the reference counting from interrupt context.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Oct 2 00:02:04 2006 UTC (16 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored)

Add credentials to sockets, 'so_cred'.

Brought up on tech-kern@ some ~2 months ago, didn't seem to be an
objection; brought up again recently and no objection either... this is
not too intrusive and I've been running with this for a while.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:17 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.70: +22 -11 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync with head

Revision 1.70.8.4 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.70.8.3: +4 -7 lines
Diff to previous 1.70.8.3 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

sync with head.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Aug 16 18:31:54 2006 UTC (16 years, 5 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base, newlock2
Branch point for: yamt-splraiseipl
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

Fix broken comments - there is no SO_ISCONNECTED or SO_ISCONFIRMING

this fixes kern/32058

Revision 1.76 / (download) - annotate - [select for diffs], Wed Aug 16 18:17:23 2006 UTC (16 years, 5 months ago) by plunky
Branch: MAIN
Changes since 1.75: +3 -6 lines
Diff to previous 1.75 (colored)

Remove macro call sonewconn() => sonewconn1() as it is no longer necessary.
There are no such calls and the compiler would catch mistakes like this
in any case.

Revision 1.70.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:47 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.70.8.2: +19 -6 lines
Diff to previous 1.70.8.2 (colored) to branchpoint 1.70 (colored)

sync with head

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored)

Use the LWP cached credentials where sane.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:51 2006 UTC (16 years, 6 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.71: +16 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Merge from HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jul 3 02:34:39 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.73: +16 -3 lines
Diff to previous 1.73 (colored)

Make sure we have at least PIPE_BUF bytes available in the socket send buffer.
Review and comment by yamt.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jul 1 15:38:28 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Revert previous change to bump the socket low watermark to sock_loan_thresh.
With sock_loan_thresh=4096, sb_lowat==sb_hiwat, and sowritable will never
be true (even if only a single byte is pending). Some programs (like screen)
expect select() to return that a socket is writable on a socket when there
is space to write to it. XXX: What is the right thing to do here?

Revision 1.70.8.2 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:57 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.70.8.1: +3 -3 lines
Diff to previous 1.70.8.1 (colored) to branchpoint 1.70 (colored)

sync with head.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:39 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68: +7 -6 lines
Diff to previous 1.68 (colored)

sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Jun 21 12:55:12 2006 UTC (16 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6
Changes since 1.71: +1 -1 lines
Diff to previous 1.71 (colored)

bump default so_snd.sb_lowat to increase chance to use loaning.

the idea to tweak the watermark from Jonathan Stone.
reviewed by Bill Studenmund.

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

Sync with head.

Revision 1.70.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.70: +4 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

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

Revision 1.70.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:42 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.70: +4 -3 lines
Diff to previous 1.70 (colored)

sync with head.

Revision 1.71 / (download) - annotate - [select for diffs], Sun May 14 21:15:12 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.70: +4 -3 lines
Diff to previous 1.70 (colored)

integrate kauth.

Revision 1.70.10.2 / (download) - annotate - [select for diffs], Sat May 6 23:31:31 2006 UTC (16 years, 9 months ago) by christos
Branch: elad-kernelauth
Changes since 1.70.10.1: +3 -2 lines
Diff to previous 1.70.10.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.70.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:41 2006 UTC (16 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Adapt to kernel authorization KPI.

Revision 1.70 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (17 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

merge ktrace-lwp.

Revision 1.53.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.53.2.5: +11 -11 lines
Diff to previous 1.53.2.5 (colored) next main 1.54 (colored)

Sync with HEAD. Here we go again...

Revision 1.68 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.67 / (download) - annotate - [select for diffs], Sat May 7 17:42:09 2005 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.66: +9 -9 lines
Diff to previous 1.66 (colored)

PR/30154: YAMAMOTO Takashi: tcp_close locking botch
chgsbsize() as mentioned in the PR can be called from an interrupt context
via tcp_close(). Avoid calling uid_find() in chgsbsize().
- Instead of storing so_uid in struct socketvar, store *so_uidinfo
- Add a simple lock to struct uidinfo.

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.65: +9 -9 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with -current

Revision 1.65.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.65: +9 -9 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.53.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:02 2005 UTC (17 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.53.2.4: +9 -9 lines
Diff to previous 1.53.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.66 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (17 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.65: +9 -9 lines
Diff to previous 1.65 (colored)

nuke trailing whitespace

Revision 1.53.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:17 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.53.2.3: +3 -3 lines
Diff to previous 1.53.2.3 (colored)

Fix the sync with head I botched.

Revision 1.53.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:04 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.53.2.2: +3 -3 lines
Diff to previous 1.53.2.2 (colored)

Sync with HEAD.

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:57 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.53.2.1: +202 -30 lines
Diff to previous 1.53.2.1 (colored)

Sync with HEAD

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Wed Jul 14 11:07:12 2004 UTC (18 years, 6 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.58.2.2: +5 -5 lines
Diff to previous 1.58.2.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Pull up revision 1.65 (requested by jonathan in ticket #648):
Rename MBUFTRACE helper function m_claim() to m_claimm(),
for consistency with M_FREE() and m_freem().  Affected files:
sys/mbuf.h
kern/uipc_socket2.c
kern/uipc_mbuf.c
net/if_ethersubr.c
netatalk/ddp_input.c
nfs/nfs_socket.c

Revision 1.65 / (download) - annotate - [select for diffs], Thu Jun 24 04:15:50 2004 UTC (18 years, 7 months ago) by jonathan
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.64: +7 -7 lines
Diff to previous 1.64 (colored)

Rename MBUFTRACE helper function m_claim() to m_claimm(),
for consistency with M_FREE() and m_freem().  Affected files:

sys/mbuf.h
kern/uipc_socket2.c
kern/uipc_mbuf.c
net/if_ethersubr.c
netatalk/ddp_input.c
nfs/nfs_socket.c

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Wed Jun 16 18:10:32 2004 UTC (18 years, 7 months ago) by tron
Branch: netbsd-2-0
Changes since 1.58.2.1: +44 -11 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.64 (requested by jonathan in ticket #503):
Fix potential memory leak in sbappendaddrchain():
We do an MGETHDR)() for each mbuf "packet" of the input chain, to hold
the socket address prepended to that "packet".  If those MGETHDR()s
ever failed, we would leak all the successfully-allocated mbuf
headers.  Leak noted by Yamamoto-san (yamt@NetBSD.org); thanks for catching it!
Add socketbuf invariant-checking macros to sbappendaddrchain(), and
replace a stray bcopy() with memcpy(), also as suggested by Yamamoto-san.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jun 11 03:46:01 2004 UTC (18 years, 7 months ago) by jonathan
Branch: MAIN
Changes since 1.63: +46 -13 lines
Diff to previous 1.63 (colored)

Fix potential memory leak in sbappendaddrchain():

We do an MGETHDR)() for each mbuf "packet" of the input chain, to hold
the socket address prepended to that "packet".  If those MGETHDR()s
ever failed, we would leak all the successfully-allocated mbuf
headers.  Leak noted by Yamamoto-san (yamt@NetBSD.org); thanks for catching it!

Add socketbuf invariant-checking macros to sbappendaddrchain(), and
replace a stray bcopy() with memcpy(), also as suggested by Yamamoto-san.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Sun May 30 07:02:16 2004 UTC (18 years, 8 months ago) by tron
Branch: netbsd-2-0
Changes since 1.58: +110 -4 lines
Diff to previous 1.58 (colored)

Pull up revision 1.63 (requested by jonathan in ticket #405):
Rework to make  FAST_IPSEC PF_KEY dumps unicast and reliable:
Introduce new socket-layer function sbappendaddrchain() to
sys/kern/uipc_socket2.c: like sbappendaddr(), only takes a chain of
records and appends the entire chain in one pass. sbappendaddrchain()
also takes an `sbprio' argument, which indicates the caller requires
special `reliable' handling of the socket-buffer.  `sbprio' is
described in sys/sys/socketvar.h, although (for now) the different
levels are not yet implemented.
Rework sys/netipsec/key.c PF_KEY DUMP responses to build a chain of
mbuf records, one record per dump response. Unicast the entire chain
to the requestor, with all-or-none semantics.
Changed files;
 	sys/socketvar.h kern/uipc_socket2.c netipsec/key.c
Reviewed by:
	Jason Thorpe, Thor Lancelot Simon, post to tech-kern.
Todo: request pullup to 2.0 branch.  Post-2.0, rework sysctl() API for
dumps to use new record-chain constructors. Actually implement
the distinct service levels in sbappendaddrchain() so we can use them
to make PF_KEY ACQUIRE messages more reliable.

Revision 1.63 / (download) - annotate - [select for diffs], Thu May 27 19:19:00 2004 UTC (18 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.62: +110 -4 lines
Diff to previous 1.62 (colored)

Rework to make  FAST_IPSEC PF_KEY dumps unicast and reliable:

Introduce new socket-layer function sbappendaddrchain() to
sys/kern/uipc_socket2.c: like sbappendaddr(), only takes a chain of
records and appends the entire chain in one pass. sbappendaddrchain()
also takes an `sbprio' argument, which indicates the caller requires
special `reliable' handling of the socket-buffer.  `sbprio' is
described in sys/sys/socketvar.h, although (for now) the different
levels are not yet implemented.

Rework sys/netipsec/key.c PF_KEY DUMP responses to build a chain of
mbuf records, one record per dump response. Unicast the entire chain
to the requestor, with all-or-none semantics.

Changed files;
 	sys/socketvar.h kern/uipc_socket2.c netipsec/key.c
Reviewed by:
	Jason Thorpe, Thor Lancelot Simon, post to tech-kern.

Todo: request pullup to 2.0 branch.  Post-2.0, rework sysctl() API for
dumps to use new record-chain constructors. Actually implement
the distinct service levels in sbappendaddrchain() so we can use them
to make PF_KEY ACQUIRE messages more reliable.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Apr 19 03:44:46 2004 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.61: +10 -5 lines
Diff to previous 1.61 (colored)

Charge root for socket buffers without a socket pointer.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Apr 18 21:47:11 2004 UTC (18 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Constify the addr parameter to sbappenaddr.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Apr 18 16:38:42 2004 UTC (18 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.59: +11 -9 lines
Diff to previous 1.59 (colored)

sbreserve can be called with a NULL socket, deal with it.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Apr 17 15:15:29 2004 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.58: +18 -9 lines
Diff to previous 1.58 (colored)

PR/9347: Eric E. Fair: socket buffer pool exhaustion leads to system deadlock
and unkillable processes.
1. Introduce new SBSIZE resource limit from FreeBSD to limit socket buffer
   size resource.
2. make sokvareserve interruptible, so processes ltsleeping on it can be
   killed.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Oct 21 22:55:47 2003 UTC (19 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.57: +24 -4 lines
Diff to previous 1.57 (colored)

Cache the "adjusted" value of sb_max when sb_max is changed, in order
to avoid doing quad math in sbreserve().

Change suggested by Simon Burge, and code inspired by a similar change
in FreeBSD.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Sep 22 12:59:59 2003 UTC (19 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.56: +7 -14 lines
Diff to previous 1.56 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Sun Sep 21 19:17:11 2003 UTC (19 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.55: +8 -16 lines
Diff to previous 1.55 (colored)

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

change discussed on tech-kern@

Revision 1.55 / (download) - annotate - [select for diffs], Sat Sep 6 22:03:10 2003 UTC (19 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.54: +21 -5 lines
Diff to previous 1.54 (colored)

SA_SIGINFO changes.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:59 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.53: +3 -7 lines
Diff to previous 1.53 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:45 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

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

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:31 2003 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.52: +1 -1 lines
Diff to previous 1.52 (colored)

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

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:58 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

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

Bump the kernel rev up to 1.6V

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:07 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.50: +4 -2 lines
Diff to previous 1.50 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Apr 17 13:12:39 2003 UTC (19 years, 9 months ago) by fvdl
Branch: MAIN
Changes since 1.49: +9 -4 lines
Diff to previous 1.49 (colored)

A bit of an ugly workaround to avoid a warning for a larger MSIZE.
Shouldn't make a difference in the generated code.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:11 2003 UTC (19 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.48: +31 -6 lines
Diff to previous 1.48 (colored)

Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.37.2.7 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:09 2002 UTC (20 years, 2 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.37.2.6: +1 -1 lines
Diff to previous 1.37.2.6 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

Catch up to -current

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:29 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

merge kqueue branch into -current

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

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

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

Revision 1.37.2.6 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:56 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.5: +1 -1 lines
Diff to previous 1.37.2.5 (colored) to branchpoint 1.37 (colored)

Catch up to -current.

Revision 1.39.2.7 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:19 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.6: +3 -3 lines
Diff to previous 1.39.2.6 (colored) next main 1.40 (colored)

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

Revision 1.47 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:47 2002 UTC (20 years, 4 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.39.2.6 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:17 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.5: +158 -34 lines
Diff to previous 1.39.2.5 (colored)

sync kqueue branch with HEAD

Revision 1.42.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:15 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.42.8.1: +4 -2 lines
Diff to previous 1.42.8.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

catch up with -current.

Revision 1.37.2.5 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:36 2002 UTC (20 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.4: +2 -0 lines
Diff to previous 1.37.2.4 (colored) to branchpoint 1.37 (colored)

Catch up to -current.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Aug 22 20:56:48 2002 UTC (20 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored)

In sbcompress(), if we toss an empty mbuf, make sure to update
sb_lastrecord if necessary.

From Daniel Hartmeier <daniel@benzedrine.cx>.

Revision 1.37.2.4 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:27 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.3: +155 -33 lines
Diff to previous 1.37.2.3 (colored) to branchpoint 1.37 (colored)

Catch up to -current.

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:41 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.42: +156 -34 lines
Diff to previous 1.42 (colored)

catch up with -current.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jul 3 21:39:41 2002 UTC (20 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

Rename SB_UPDATE_TAIL() to SB_EMPTY_FIXUP(), per suggestion from
Jonathan Stone.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jul 3 21:36:58 2002 UTC (20 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Rename sbappend_stream() to sbappendstream(), per suggestion from
Jonathan Stone.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jul 3 19:06:49 2002 UTC (20 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +156 -34 lines
Diff to previous 1.42 (colored)

Make insertion of data into socket buffers O(C):
* Keep pointers to the first and last mbufs of the last record in the
  socket buffer.
* Use the sb_lastrecord pointer in the sbappend*() family of functions
  to avoid traversing the packet chain to find the last record.
* Add a new sbappend_stream() function for stream protocols which
  guarantee that there will never be more than one record in the
  socket buffer.  This function uses the sb_mbtail pointer to perform
  the data insertion.  Make TCP use sbappend_stream().

On a profiling run, this makes sbappend of a TCP transmission using
a 1M socket buffer go from 50% of the time to .02% of the time.

Thanks to Bill Sommerfeld and YAMAMOTO Takashi for their debugging
assistance!

Revision 1.39.2.5 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:15 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.39.2.4: +4 -1 lines
Diff to previous 1.39.2.4 (colored)

Sync kqueue branch with -current.

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:47 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.2: +4 -1 lines
Diff to previous 1.37.2.2 (colored) to branchpoint 1.37 (colored)

Catch up to -current.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:59 2001 UTC (21 years, 2 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:33 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored)

add RCSIDs

Revision 1.39.2.4 / (download) - annotate - [select for diffs], Sat Sep 8 02:33:51 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.39.2.3: +2 -3 lines
Diff to previous 1.39.2.3 (colored)

Add a selnotify(), which does a selwakeup() + KNOTE(), rather than
requiring all callers to do both.

This may be a transitional step only, or it may stick.  I haven't
decided yet.

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:48 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.39.2.2: +5 -4 lines
Diff to previous 1.39.2.2 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:42 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37.2.1: +10 -11 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored)

Catch up with -current.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 5 08:25:39 2001 UTC (21 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.40: +5 -4 lines
Diff to previous 1.40 (colored)

Give different names for different wait channels.

# and minor knf fix while I'm here.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:44 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.39.2.1: +6 -8 lines
Diff to previous 1.39.2.1 (colored)

update to -current

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jul 27 19:27:49 2001 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +6 -8 lines
Diff to previous 1.39 (colored)

Now that M_TRAILINGSPACE() checks buffer writeability properly,
we can greatly simplify sbcompress().  Slightly modified from
a similar change in FreeBSD.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Tue Jul 10 13:52:11 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

add calls to KNOTE(9) as appropriate

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:08 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.37: +5 -4 lines
Diff to previous 1.37 (colored)

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jun 16 21:29:32 2001 UTC (21 years, 7 months ago) by manu
Branch: MAIN
Branch point for: kqueue
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Use SB_ASYNC in struct sockbuf sb_flags field instead of SS_ASYNC in
struct socket so_state field to decide if we need to send asynchronous
notifications. This makes possible to request notification on write but
not on read, and vice versa.

This is used in Linux emulation code, because when async I/O is requested,
Linux does not send SIGIO to write end of sockets, and it never send any
SIGIO to any end of pipes. Il Linux emulation code, we then set SB_ASYNC
only on the read end of sockets, and on no end for pipes.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Apr 30 03:32:56 2001 UTC (21 years, 9 months ago) by kml
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

Large values of sb_max would cause an overflow in sbreserve();  cast to
u_quad_t to avoid this.  (from FreeBSD uipc_socket2.c v1.19)

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:38 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.33.2.1: +64 -97 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Feb 27 05:19:15 2001 UTC (21 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.36: +64 -97 lines
Diff to previous 1.36 (colored)

convert to ANSI KNF

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:14 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.33: +44 -45 lines
Diff to previous 1.33 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:14 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.35: +40 -40 lines
Diff to previous 1.35 (colored)

Get rid of register declarations.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Feb 29 19:14:59 2000 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.34: +5 -6 lines
Diff to previous 1.34 (colored)

more fix to ancillary data alignment.  we need padding after
last cmsg_data item (see the figure on RFC2292 page 18).

Revision 1.34 / (download) - annotate - [select for diffs], Fri Feb 18 05:19:23 2000 UTC (22 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

fix alignment problem in ancillary messages (alpha).

the change constitutes binary compatibility issue hen sizeof(long) !=4.
there's no way to be backward compatible, and only guys affected
are IPv6 userland tools.

From: Gˇöran Bengtson <goeran@cdg.chalmers.se>

Revision 1.28.6.2 / (download) - annotate - [select for diffs], Tue Nov 30 13:34:49 1999 UTC (23 years, 2 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.28.6.1: +0 -0 lines
Diff to previous 1.28.6.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

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

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

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

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Wed Sep 22 03:19:44 1999 UTC (23 years, 4 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.28: +7 -4 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

pull up revs 1.31-1.33 from trunk (requested by cgd):
  Compact mbuf clusters, to help prevent mbuf cluster exhaustion when
  receiving lots of small packets.  This costs some performance (the
  compaction copies data), but adds a lot of stability to many systems.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Aug 4 22:33:20 1999 UTC (23 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

The old compaction test had an off-by-one error that caused it to not compact
in some cases where it could have.  Fix this, and the new version as well.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 4 21:40:39 1999 UTC (23 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

Don't compress mbuf clusters which are referenced by multiple
mbufs since you might overwriting valuable data.  (think of
m_copy'ed data from a TCP re-transmission queue.  Since those
might be in clusters and referenced in two sockets).

Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 4 21:30:12 1999 UTC (23 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.30: +6 -4 lines
Diff to previous 1.30 (colored)

It's now possible for sbcompress() to compact mbuf clusters, so do it.
This helps prevent mbuf cluster exhaustion when receiving lots of small
packets.

Revision 1.28.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:43:21 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.28.4.1: +13 -1 lines
Diff to previous 1.28.4.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Sync w/ -current.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:47 1999 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.29: +13 -1 lines
Diff to previous 1.29 (colored)

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

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

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

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:36:53 1999 UTC (23 years, 7 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705, kame_14_19990628
Changes since 1.28: +13 -1 lines
Diff to previous 1.28 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

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

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:05 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.28: +1 -3 lines
Diff to previous 1.28 (colored)

Sync w/ -current.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Apr 22 04:50:06 1999 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.28: +1 -3 lines
Diff to previous 1.28 (colored)

Move inclusion of "opt_sb_max.h" from sys/socketvar.h to
conf/param.c, and move the initialisation of the sb_max
variable from kern/uipc_socket2.c to conf/param.c.  Now
everthing that includes sys/socketvar.h doesn't get
recompiled when SB_MAX's value changes.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Mar 23 10:45:37 1999 UTC (23 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

Ensure that you can only bind a more specific address when it is done by the
same uid or by root.

This code is from FreeBSD. (Whilst it was originally obtained from OpenBSD,
FreeBSD fixed it to work with multicast. To quote the commit message:
    - Don't bother checking for conflicting sockets if we're binding to a
      multicast address.
    - Don't return an error if we're binding to INADDR_ANY, the conflicting
      socket is bound to INADDR_ANY, and the conflicting socket has
      SO_REUSEPORT set.
)

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Mon Jan 25 05:49:42 1999 UTC (24 years ago) by cgd
Branch: netbsd-1-3
Changes since 1.21.2.1: +2 -2 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Patch to fix select(2)/accept(2) race condition which permits DoS.  (mycroft)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 20 09:15:41 1999 UTC (24 years ago) by mycroft
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Do not remove sockets from the accept(2) queue on close.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:17 1998 UTC (24 years, 6 months ago) by perry
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 2 04:53:12 1998 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Use the pool allocator for sockets.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 25 17:35:18 1998 UTC (24 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.23: +5 -1 lines
Diff to previous 1.23 (colored)

Hook for 0-copy (or other optimized) sends and receives

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:34 1998 UTC (24 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:08 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +26 -2 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:51 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +15 -39 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Thu Jan 29 10:42:13 1998 UTC (25 years ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001
Changes since 1.21: +17 -24 lines
Diff to previous 1.21 (colored)

Pull up 1.22 (thorpej)

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 7 23:47:09 1998 UTC (25 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.21: +17 -24 lines
Diff to previous 1.21 (colored)

Make insertion and removal of sockets from the partial and incoming
connections queues O(C) rather than O(N).

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Tue Oct 14 10:26:20 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Oct 9 13:00:00 1997 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

Make various standard wmesg strings const.

Revision 1.19.8.3 / (download) - annotate - [select for diffs], Sat Jun 28 02:51:24 1997 UTC (25 years, 7 months ago) by thorpej
Branch: SYN_cache_branch
Changes since 1.19.8.2: +3 -7 lines
Diff to previous 1.19.8.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Remove handling of SS_FORCE.

Revision 1.19.8.2 / (download) - annotate - [select for diffs], Thu Jun 26 21:25:46 1997 UTC (25 years, 7 months ago) by thorpej
Branch: SYN_cache_branch
Changes since 1.19.8.1: +8 -3 lines
Diff to previous 1.19.8.1 (colored) to branchpoint 1.19 (colored)

Update from trunk.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 26 05:56:38 1997 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi, SYN_cache_cur_base
Branch point for: marc-pcmcia
Changes since 1.19: +8 -3 lines
Diff to previous 1.19 (colored)

In sbappendaddr(), if the sockaddr length is larger than will fit in
an mbuf, allocate enough external storage to hold the sockaddr.  Thanks
to enami tsugutomo <enami@cv.sony.co.jp> for providing sanity-checks.

Revision 1.19.8.1 / (download) - annotate - [select for diffs], Wed May 14 01:26:44 1997 UTC (25 years, 8 months ago) by mellon
Branch: SYN_cache_branch
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

Support SS_FORCE bit in sonewconn1() to override accept queue limit for SYN cache

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 11 05:16:46 1997 UTC (26 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Branch point for: SYN_cache_branch
Changes since 1.18: +26 -1 lines
Diff to previous 1.18 (colored)

Implement sbcreatecontrol(), a generic function to create a "control"
mbuf for presentation on a socket buffer.

Revision 1.11.4.2 / (download) - annotate - [select for diffs], Wed Dec 11 09:30:02 1996 UTC (26 years, 1 month ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.11.4.1: +2 -2 lines
Diff to previous 1.11.4.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

From trunk:
Don't allow SO_{SND,RCV}BUF with a buffer size of 0.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Wed Dec 11 03:27:59 1996 UTC (26 years, 1 month ago) by mycroft
Branch: netbsd-1-2
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 9 23:50:57 1996 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

In sbreserve(), don't allow a count of 0.  Fixes PR #2794, from
Erik Berls <cyber@dis.org>.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Nov 26 23:24:04 1996 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +22 -73 lines
Diff to previous 1.16 (colored)

Back out previous soqinsque() and soqremque() changes.  This will
stop the panics until the socket queues get converted to <sys/queue.h>.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Nov 10 05:58:37 1996 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +74 -23 lines
Diff to previous 1.15 (colored)

Optimization of soqinsque() and soqremque():

Keep queue of pending sockets in a double linked list.  Previously,
a singly linked list was used, giving O(N) insertion/deletion times,
and was a major time consumer for sockets with large pending queues.
The double linked list give O(C) insertion/deletion times with only
a small cost in complexity.

Since a socket can be on, at most, one queue at a time, both so_q and
so_q0 can safely be used as (forward and backward, respectively) queue
pointers.

Submitted my Matt Thomas <matt@3am-software.com>, a long time ago.
(Geez, I've been running with this patch for _months_, and had completely
forgotten about it!)

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:47 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

backout previous kprintf change

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:34 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 7 12:41:05 1996 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Implement poll(2).

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 22 13:55:00 1996 UTC (26 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 4 02:17:55 1996 UTC (27 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.10: +13 -11 lines
Diff to previous 1.10 (colored)

First pass at prototyping

Revision 1.10 / (download) - annotate - [select for diffs], Wed Aug 16 01:03:19 1995 UTC (27 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Access rights are now stored in MT_CONTROL mbufs.  Document this.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:39 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 13 06:01:40 1994 UTC (28 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)

Update to 4.4-Lite networking code, with a few local changes.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 4 11:04:58 1994 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +28 -10 lines
Diff to previous 1.6 (colored)

More return types...

Revision 1.6 / (download) - annotate - [select for diffs], Mon Apr 25 08:08:58 1994 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +1 -12 lines
Diff to previous 1.5 (colored)

Remove sbselqueue().

Revision 1.5 / (download) - annotate - [select for diffs], Sat Dec 18 04:22:30 1993 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.4: +12 -12 lines
Diff to previous 1.4 (colored)

Canonicalize all #includes.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Sun Nov 14 21:21:34 1993 UTC (29 years, 2 months ago) by mycroft
Branch: magnum
Changes since 1.4.4.1: +13 -13 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Canonicalize all #includes.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:56 1993 UTC (29 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 27 06:02:00 1993 UTC (29 years, 7 months ago) by andrew
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base
Branch point for: magnum
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 18 18:19:38 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.2: +7 -21 lines
Diff to previous 1.2 (colored)

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

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +9 -2 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

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




CVSweb <webmaster@jp.NetBSD.org>