History log of /openbsd/sys/sys/socketvar.h (Results 76 – 100 of 131)
Revision Date Author Comments
# c2786a56 09-Sep-2014 guenther <guenther@openbsd.org>

Delete the SS_ISCONFIRMING flag that supported delayed connection
confirmation: it was only used for netiso, which was deleted a *decade* ago

ok mpi@ claudio@ ports scan by sthen@


# cfc885ac 15-Jan-2013 bluhm <bluhm@openbsd.org>

Changing the socket buffer flags sb_flags was not interrupt safe
as |= and &= are non-atomic operations. To avoid additional locks,
put the flags that have to be accessed from interrupt into a separ

Changing the socket buffer flags sb_flags was not interrupt safe
as |= and &= are non-atomic operations. To avoid additional locks,
put the flags that have to be accessed from interrupt into a separate
sb_flagsintr 32 bit integer field. sb_flagsintr is protected by
splsoftnet.
Input from miod@ deraadt@; OK deraadt@

show more ...


# 2ff0994f 31-Dec-2012 bluhm <bluhm@openbsd.org>

Put the #ifdef SOCKBUF_DEBUG around sbcheck() into a SBCHECK macro.
That is consistent to the SBLASTRECORDCHK and SBLASTMBUFCHK macros.
OK markus@


# de9f3fad 15-Sep-2012 guenther <guenther@openbsd.org>

Improve POSIX/SUS compliance of <netdb.h>, <sys/socket.h>, and <sys/un.h>.

Much ports testing of various versions by naddy@ and jasper@
ok matthew@, miller@


# 228601a4 13-Jul-2012 claudio <claudio@openbsd.org>

Move all the macros defined here into the _KERNEL block since userland
has no use for those. OK bluhm@ guenther@


# 83e2f23d 10-Jul-2012 claudio <claudio@openbsd.org>

Try to cleanup the macro magic because of socket spliceing. Since struct
socket is no longer affected by option SOCKET_SPLICE we can simplyfy the
code. OK bluhm@


# cc4aab98 04-Jul-2011 tedu <tedu@openbsd.org>

remove compat_svr4 support. ok deraadt


# 04ba85d2 04-Jul-2011 mikeb <mikeb@openbsd.org>

Implement an idle timeout for the socket splicing. A new `sp_idle'
field of the `splice' structure can be used to specify a period of
inactivity after which splicing will be dissolved. ETIMEDOUT er

Implement an idle timeout for the socket splicing. A new `sp_idle'
field of the `splice' structure can be used to specify a period of
inactivity after which splicing will be dissolved. ETIMEDOUT error
retrieved with a SO_ERROR indicates the idle timeout expiration.
With comments from and OK bluhm.

show more ...


# 3e816f04 07-Jan-2011 bluhm <bluhm@openbsd.org>

Add socket option SO_SPLICE to splice together two TCP sockets.
The data received on the source socket will automatically be sent
on the drain socket. This allows to write relay daemons with zero
da

Add socket option SO_SPLICE to splice together two TCP sockets.
The data received on the source socket will automatically be sent
on the drain socket. This allows to write relay daemons with zero
data copy.
ok markus@

show more ...


# 5d991f01 24-Sep-2010 claudio <claudio@openbsd.org>

TCP send and recv buffer scaling.
Send buffer is scaled by not accounting unacknowledged on the wire
data against the buffer limit. Receive buffer scaling is done similar
to FreeBSD -- measure the de

TCP send and recv buffer scaling.
Send buffer is scaled by not accounting unacknowledged on the wire
data against the buffer limit. Receive buffer scaling is done similar
to FreeBSD -- measure the delay * bandwith product and base the
buffer on that. The problem is that our RTT measurment is coarse
so it overshoots on low delay links. This does not matter that much
since the recvbuffer is almost always empty.
Add a back pressure mechanism to control the amount of memory
assigned to socketbuffers that kicks in when 80% of the cluster
pool is used.
Increases the download speed from 300kB/s to 4.4MB/s on ftp.eu.openbsd.org.

Based on work by markus@ and djm@.

OK dlg@, henning@, put it in deraadt@

show more ...


# 9ed051c7 10-Aug-2009 thib <thib@openbsd.org>

Don't use char arrays for sleep wchans and reuse them.
just use strings and make things unique.

ok claudio@


# 01d36b92 22-Feb-2009 otto <otto@openbsd.org>

fix PR 6082: do not create more fd's than will fit in the message on
the receiving side when passing fd's. ok deraadt@ kettenis@


# ae65f814 29-Jan-2009 bluhm <bluhm@openbsd.org>

KNF (whitespace fixes). ok grunk@


# cabc23fb 07-Nov-2008 deraadt <deraadt@openbsd.org>

use do { } while (/* CONSTCOND */ 0) loops for all multi-line macros
ok dlg otto claudio


# e6364943 09-Oct-2008 deraadt <deraadt@openbsd.org>

Change sb_timeo to unsigned, so that even if some calculation (ie. n * HZ)
becomes a very large number it will not wrap the short into a negative
number and screw up timeouts. It will simply become

Change sb_timeo to unsigned, so that even if some calculation (ie. n * HZ)
becomes a very large number it will not wrap the short into a negative
number and screw up timeouts. It will simply become a max of 65535. Since
this happens when HZ is cranked to a high number, this will still only take
n seconds, or less. Safer than crashing.
Prompted by PR 5511
ok guenther

show more ...


# 621c015e 23-May-2008 thib <thib@openbsd.org>

Deal with the situation when TCP nfs mounts timeout and processes
get hung in nfs_reconnect() because they do not have the proper
privilages to bind to a socket, by adding a struct proc * argument
to

Deal with the situation when TCP nfs mounts timeout and processes
get hung in nfs_reconnect() because they do not have the proper
privilages to bind to a socket, by adding a struct proc * argument
to sobind() (and the *_usrreq() routines, and finally in{6}_pcbbind)
and do the sobind() with proc0 in nfs_connect.

OK markus@, blambert@.
"go ahead" deraadt@.

Fixes an issue reported by bernd@ (Tested by bernd@).
Fixes PR5135 too.

show more ...


# fb355730 05-Jul-2007 dim <dim@openbsd.org>

From FreeBSD:

Fix a bug in sblock() that has existed since revision 1.1 from BSD:
correctly return an error if M_NOWAIT is passed to sblock() and the
operation might block. This remarkably su

From FreeBSD:

Fix a bug in sblock() that has existed since revision 1.1 from BSD:
correctly return an error if M_NOWAIT is passed to sblock() and the
operation might block. This remarkably subtle macro bug appears to
be responsible for quite a few undiagnosed socket buffer corruption
and mbuf-related kernel panics.

"diff is correct" todd@, "should go in asap" markus@

show more ...


# e3cfaa00 26-Feb-2007 kurt <kurt@openbsd.org>

exclude control data from the number of bytes returned by FIONREAD ioctl()
by adding a sb_datacc count to sockbuf that counts data excluding
MT_CONTROL and MT_SONAME mbuf types. w/help from deraadt@

exclude control data from the number of bytes returned by FIONREAD ioctl()
by adding a sb_datacc count to sockbuf that counts data excluding
MT_CONTROL and MT_SONAME mbuf types. w/help from deraadt@.
okay deraadt@ claudio@

show more ...


# 39539e65 21-Nov-2005 millert <millert@openbsd.org>

Move contents of sys/select.h to sys/selinfo.h in preparation for a
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.


# 73db9b26 27-May-2005 dhartmei <dhartmei@openbsd.org>

add a field to struct socket that stores the pid of the process that
created the socket, and populate it. ok bob@, henning@


# 105fe0af 17-Nov-2004 markus <markus@openbsd.org>

use lmin() instead of imin() in sbspace(), ok henning, millert


# f620b6f9 16-Sep-2004 markus <markus@openbsd.org>

add hint for lower layer that a sosend() is in progress (SS_ISSENDING)
inspired by a posting from David Borman and similar changes in net/freebsd
ok mcbride


# c1ea8f77 19-Apr-2004 deraadt <deraadt@openbsd.org>

this is only a work in progress, we can perfect afterwards, but it is time
to get some experience with these ideas.
add sbcheckreserve() api; called by accepting sockets. if over 95% of
mbuf cluster

this is only a work in progress, we can perfect afterwards, but it is time
to get some experience with these ideas.
add sbcheckreserve() api; called by accepting sockets. if over 95% of
mbuf clusters are busy, consider this a resource starvation just like the
other reasons for accept failing. also, if over 50% of mbuf clusters are
busy, shrink recv & send sockbuf reserves to "the minimum".

show more ...


# db68a6b1 12-Apr-2004 tedu <tedu@openbsd.org>

make sockargs take void *, combine a len check.
from pedro martelletto, ok markus@


# 154dfaaa 23-Sep-2003 millert <millert@openbsd.org>

Replace select backends with poll backends. selscan() and pollscan()
now call the poll backend. With this change we implement greater
poll(2) functionality instead of emulating it via the select ba

Replace select backends with poll backends. selscan() and pollscan()
now call the poll backend. With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK

show more ...


123456