History log of /freebsd/sys/kern/uipc_sockbuf.c (Results 226 – 250 of 1976)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: vendor/softupdates/Feb20-98-ALPHA, vendor/softupdates/Feb13-98-ALPHA, vendor/softupdates/Feb12-98-ALPHA, vendor/softdep/Feb11-98-ALPHA, vendor/softdep/Jan29-98-ALPHA, vendor/softupdates/Jan26-97-ALPHA
# c21410e1 17-May-1998 Poul-Henning Kamp <phk@FreeBSD.org>

s/nanoruntime/nanouptime/g
s/microruntime/microuptime/g

Reviewed by: bde


# 98271db4 15-May-1998 Garrett Wollman <wollman@FreeBSD.org>

Convert socket structures to be type-stable and add a version number.

Define a parameter which indicates the maximum number of sockets in a
system, and use this to size the zone allocators used for

Convert socket structures to be type-stable and add a version number.

Define a parameter which indicates the maximum number of sockets in a
system, and use this to size the zone allocators used for sockets and
for certain PCBs.

Convert PF_LOCAL PCB structures to be type-stable and add a version number.

Define an external format for infomation about socket structures and use
it in several places.

Define a mechanism to get all PF_LOCAL and PF_INET PCB lists through
sysctl(3) without blocking network interrupts for an unreasonable
length of time. This probably still has some bugs and/or race
conditions, but it seems to work well enough on my machines.

It is now possible for `netstat' to get almost all of its information
via the sysctl(3) interface rather than reading kmem (changes to follow).

show more ...


Revision tags: vendor/bind/8.1.2.t3b, vendor/bind/4.9.7.t1b, vendor/misc-GNU/bc/1.0.4, vendor/libreadline/2.2
# 9351a229 24-Apr-1998 David Greenman <dg@FreeBSD.org>

Added kern.ipc.nmbclusters


# 00af9731 04-Apr-1998 Poul-Henning Kamp <phk@FreeBSD.org>

Time changes mark 2:

* Figure out UTC relative to boottime. Four new functions provide
time relative to boottime.

* move "runtime" into struct proc. This helps fix the calcru()

Time changes mark 2:

* Figure out UTC relative to boottime. Four new functions provide
time relative to boottime.

* move "runtime" into struct proc. This helps fix the calcru()
problem in SMP.

* kill mono_time.

* add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!)

* nanosleep, select & poll takes long sleeps one day at a time

Reviewed by: bde
Tested by: ache and others

show more ...


Revision tags: release/2.2.6, vendor/pppd/2.3.3, vendor/ipfilter-sys/v3_2_3, vendor/ipfilter/3.2.3, vendor/misc-GNU/cvs/1.9.26, vendor/binutils/2.8.1, vendor/NetBSD/v980307
# 4049a042 01-Mar-1998 Guido van Rooij <guido@FreeBSD.org>

Make sure that you can only bind a more specific address when it is
done by the same uid.
Obtained from: OpenBSD


Revision tags: vendor/zlib/1.1.1, vendor/global/2.2.4, vendor/misc-GNU/cvs/1.9.24, vendor/misc-GNU/cvs/1.9.23-19980123, vendor/misc-GNU/patch/2.5, vendor/global/2.2.1, vendor/tcl/8.0p2, vendor/ipfilter-sys/v3_2_1, vendor/ipfilter/3.2.1, vendor/sendmail/8.8.8, vendor/NetBSD/v971020, vendor/libreadline/2.01.1, vendor/misc-GNU/diff/2.7, vendor/tzdata/tzdata1997i, release/2.2.5_cvs, vendor/NetBSD/v971017, vendor/misc-GNU/awk/3.0.3, vendor/tcl/8.0, vendor/opie/2.31
# 2931901b 07-Sep-1997 Bruce Evans <bde@FreeBSD.org>

Removed trailing semicolons from the definitions of the sysctl
declaration macros so that a semicolon can be added when the macros
are invoked without giving a (pedantic) syntax error. Invocations
n

Removed trailing semicolons from the definitions of the sysctl
declaration macros so that a semicolon can be added when the macros
are invoked without giving a (pedantic) syntax error. Invocations
need to be followed by a semicolon so that programs like indent and
gtags don't get confused.

Fixed the one invocation that wasn't followed by a trailing semicolon.

show more ...


# 882e68c8 04-Sep-1997 Tor Egge <tegge@FreeBSD.org>

sonewconn no longer passes curproc to the protocol attach method
since that might cause in_pcballoc to call MALLOC with M_WAITOK during
a software interrupt.
Reviewed by: Garrett Wollman <wollman@kha

sonewconn no longer passes curproc to the protocol attach method
since that might cause in_pcballoc to call MALLOC with M_WAITOK during
a software interrupt.
Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>

show more ...


Revision tags: vendor/kerberosIV/0.9.6
# e4ba6a82 02-Sep-1997 Bruce Evans <bde@FreeBSD.org>

Removed unused #includes.


Revision tags: vendor/pppd/2.3.1, vendor/pppd/2.3.0
# 57bf258e 16-Aug-1997 Garrett Wollman <wollman@FreeBSD.org>

Fix all areas of the system (or at least all those in LINT) to avoid storing
socket addresses in mbufs. (Socket buffers are the one exception.) A number
of kernel APIs needed to get fixed in order

Fix all areas of the system (or at least all those in LINT) to avoid storing
socket addresses in mbufs. (Socket buffers are the one exception.) A number
of kernel APIs needed to get fixed in order to make this happen. Also,
fix three protocol families which kept PCBs in mbufs to not malloc them
instead. Delete some old compatibility cruft while we're at it, and add
some new routines in the in_cksum family.

show more ...


Revision tags: vendor/global/2.0, vendor/sendmail/8.8.7, vendor/NetBSD/v970703, vendor/tcl/8.0b2
# 548af278 19-Jul-1997 Bill Fenner <fenner@FreeBSD.org>

Remove sonewconn() macro kludge, introduced in 4.3-Reno to catch argument
mismatches. Prototypes do a much better job these days.

Noticed by: bde


Revision tags: vendor/NetBSD/v19970629, vendor/misc-GNU/patch/2.4, vendor/sendmail/8.8.6, vendor/bind/4.9.6, vendor/misc-GNU/cvs/1.9.10, vendor/NetBSD/v970513, vendor/NetBSD/v970508, vendor/libreadline/2.1, vendor/tcpdump/3.3, vendor/libpcap/0.3, vendor/ipfilter-sys/v3-2-a7, vendor/ipfilter/3.2a7
# 9f907986 24-May-1997 Peter Wemm <peter@FreeBSD.org>

Attempt to convert the ip_divert code to use the new-style protocol request
switch. I needed 'LINT' to compile for other reasons so I kinda got the
blood on my hands. Note: I don't know how to test

Attempt to convert the ip_divert code to use the new-style protocol request
switch. I needed 'LINT' to compile for other reasons so I kinda got the
blood on my hands. Note: I don't know how to test this, I don't know if
it works correctly.

show more ...


Revision tags: vendor/misc-GNU/cvs/1.9.9-19970523, release/2.2.2, vendor/misc-GNU/cvs/1.9.9-19970515, vendor/NetBSD/v970504
# a29f300e 27-Apr-1997 Garrett Wollman <wollman@FreeBSD.org>

The long-awaited mega-massive-network-code- cleanup. Part I.

This commit includes the following changes:
1) Old-style (pr_usrreq()) protocols are no longer supported, the compatibility
glue for the

The long-awaited mega-massive-network-code- cleanup. Part I.

This commit includes the following changes:
1) Old-style (pr_usrreq()) protocols are no longer supported, the compatibility
glue for them is deleted, and the kernel will panic on boot if any are compiled
in.

2) Certain protocol entry points are modified to take a process structure,
so they they can easily tell whether or not it is possible to sleep, and
also to access credentials.

3) SS_PRIV is no more, and with it goes the SO_PRIVSTATE setsockopt()
call. Protocols should use the process pointer they are now passed.

4) The PF_LOCAL and PF_ROUTE families have been updated to use the new
style, as has the `raw' skeleton family.

5) PF_LOCAL sockets now obey the process's umask when creating a socket
in the filesystem.

As a result, LINT is now broken. I'm hoping that some enterprising hacker
with a bit more time will either make the broken bits work (should be
easy for netipx) or dike them out.

show more ...


Revision tags: vendor/ipfilter-sys/V3_2_A4, vendor/ipfilter/3.2a4
# a91b8721 31-Mar-1997 David Greenman <dg@FreeBSD.org>

In accept1(), falloc() is called after the process has awoken, but prior
to removing the connection from the queue. The problem here is that
falloc() may block and this would allow another process to

In accept1(), falloc() is called after the process has awoken, but prior
to removing the connection from the queue. The problem here is that
falloc() may block and this would allow another process to accept the
connection instead. If this happens to leave the queue empty, then the
system will panic with an "accept: nothing queued".

Also changed a wakeup() to a wakeup_one() to avoid the "thundering herd"
problem on new connections in Apache (or any other application that has
multiple processes blocked in accept() for the same socket).

show more ...


Revision tags: vendor/misc-GNU/cpio/2.4.2, release/2.2.1_cvs, vendor/top/3.4, vendor/file/3.22, release/2.2.0, upstream/2.2.0, vendor/gdb/4.16, release/2.1.7, upstream/2.1.7, vendor/ipfilter-sys/ipfilter3_1_8, vendor/ipfilter-sys/ipfilter3_1_7, vendor/ipfilter/3.1.8
# 639acc13 24-Feb-1997 Garrett Wollman <wollman@FreeBSD.org>

Create a new branch of the kernel MIB, kern.ipc, to store
all of the configurables and instrumentation related to
inter-process communication mechanisms. Some variables,
like mbuf statistics, are in

Create a new branch of the kernel MIB, kern.ipc, to store
all of the configurables and instrumentation related to
inter-process communication mechanisms. Some variables,
like mbuf statistics, are instrumented here for the first
time.

For mbuf statistics: also keep track of m_copym() and
m_pullup() failures, and provide for the user's inspection
the compiled-in values of MSIZE, MHLEN, MCLBYTES, and MINCLSIZE.

show more ...


# b1396a35 19-Feb-1997 Garrett Wollman <wollman@FreeBSD.org>

Make the operation of sonewconn1() a bit clearer by calling
pru_attach() before putting the new connection on the
connection queue.


# d8392c6c 18-Feb-1997 Garrett Wollman <wollman@FreeBSD.org>

uipc_mbuf.c: do a better job of counting how often we have to wait
for memory, or are denied a cluster.

uipc_socket2.c: define some generic ``operation-not-supported'' entry points
for pr_usrreqs.


# 5bee01c8 13-Feb-1997 Garrett Wollman <wollman@FreeBSD.org>

For large values of sb_max or MCLBYTES, it was possible for the expression
sb_max * MCLBYTES / (MSIZE + MCLBYTES)
used in sbreserve() to overflow, causing all socket creation attempts
to fail. Forc

For large values of sb_max or MCLBYTES, it was possible for the expression
sb_max * MCLBYTES / (MSIZE + MCLBYTES)
used in sbreserve() to overflow, causing all socket creation attempts
to fail. Force the calculation to use u_quad_t's, which makes overflow
less likely.

show more ...


Revision tags: vendor/ipfilter/3.1.7, vendor/opie/2.3, release/2.1.6, upstream/2.1.6, release/2.1.6.1, upstream/2.1.6.1, vendor/sendmail/8.8.5
# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.

show more ...


Revision tags: vendor/misc-GNU/texinfo/3.9, vendor/SGI/vjs_970104, vendor/libreadline/2.0, vendor/tzdata/tzdata1996n, vendor/SGI/vjs_970102, vendor/bind/4.9.5p1, vendor/ee/1.3, vendor/mrouted/mtrace-5.1, vendor/SGI/vjs_961217, vendor/SGI/vjs_961211, vendor/sendmail/8.8.4, vendor/tzdata/tzdata1996l, vendor/SGI/vjs_961119, vendor/rarpd/1.1, vendor/sendmail/8.8.3
# 82c23eba 11-Nov-1996 Bill Fenner <fenner@FreeBSD.org>

Add the IP_RECVIF socket option, which supplies a packet's incoming interface
using a sockaddr_dl.

Fix the other packet-information socket options (SO_TIMESTAMP, IP_RECVDSTADDR)
to work for multicas

Add the IP_RECVIF socket option, which supplies a packet's incoming interface
using a sockaddr_dl.

Fix the other packet-information socket options (SO_TIMESTAMP, IP_RECVDSTADDR)
to work for multicast UDP and raw sockets as well. (They previously only
worked for unicast UDP).

show more ...


Revision tags: vendor/nvi/1.79, vendor/sendmail/8.8.2
# a51764a8 11-Oct-1996 Paul Traina <pst@FreeBSD.org>

Fix two bugs I accidently put into the syn code at the last minute
(yes I had tested the hell out of this).

I've also temporarily disabled the code so that it behaves as it previously
did (tail drop

Fix two bugs I accidently put into the syn code at the last minute
(yes I had tested the hell out of this).

I've also temporarily disabled the code so that it behaves as it previously
did (tail drop's the syns) pending discussion with fenner about some socket
state flags that I don't fully understand.

Submitted by: fenner

show more ...


# ebb0cbea 07-Oct-1996 Paul Traina <pst@FreeBSD.org>

Increase robustness of FreeBSD against high-rate connection attempt
denial of service attacks.

Reviewed by: bde,wollman,olah
Inspired by: vjs@sgi.com


Revision tags: release/2.1.5, upstream/2.1.5, vendor/gcc/2.7.2, vendor/traceroute/1.3.2, vendor/sendmail/8.7.6
# 0570e447 19-Sep-1996 Paul Traina <pst@FreeBSD.org>

Add a new sysctl variable kern.sominqueue to override the MINIMUM queue
specified in a listen(2) system call.


Revision tags: vendor/tcl/7.5p1, vendor/gcc/2.7.2.1, vendor/SGI/vjs_960912, vendor/gperf/2.1a, vendor/misc-GNU/bison/1.25, vendor/groff/1.10, vendor/bind4/4.9.4p1, vendor/bind/4.9.4p1, vendor/SGI/sgi_routed_960827, vendor/misc-GNU/cvs/1.8.1, vendor/libpcap/0.2.1, vendor/tcpdump/3.2.1
# 313861b8 19-Aug-1996 Julian Elischer <julian@FreeBSD.org>

for kern_conf.c, start allocating dynamic major numbers
half way through the range rather than possibly colliding with
fixed elements. Increase the size of the arrays to take this into account..
reme

for kern_conf.c, start allocating dynamic major numbers
half way through the range rather than possibly colliding with
fixed elements. Increase the size of the arrays to take this into account..
remember that each element in the array is now only 1 ponter so this
isn't that much..

also note a possible bug in debugging code in uipc_socket2.c (add XXX)

show more ...


Revision tags: vendor/ssleay/ssleay_0_6_3, vendor/ssleay/ssleay_0_6_2, vendor/ssleay/ssleay_0_6_1, vendor/SGI/sgi_routed_960722, vendor/tzcode/tzcode96h, vendor/tzdata/tzdata96i
# 2c37256e 11-Jul-1996 Garrett Wollman <wollman@FreeBSD.org>

Modify the kernel to use the new pr_usrreqs interface rather than the old
pr_usrreq mechanism which was poorly designed and error-prone. This
commit renames pr_usrreq to pr_ousrreq so that old code

Modify the kernel to use the new pr_usrreqs interface rather than the old
pr_usrreq mechanism which was poorly designed and error-prone. This
commit renames pr_usrreq to pr_ousrreq so that old code which depended on it
would break in an obvious manner. This commit also implements the new
interface for TCP, although the old function is left as an example
(#ifdef'ed out). This commit ALSO fixes a longstanding bug in the
TCP timer processing (introduced by davidg on 1995/04/12) which caused
timer processing on a TCB to always stop after a single timer had
expired (because it misinterpreted the return value from tcp_usrreq()
to indicate that the TCB had been deleted). Finally, some code
related to polling has been deleted from if.c because it is not
relevant t -current and doesn't look at all like my current code.

show more ...


# 1e4ad9ce 09-Jul-1996 Garrett Wollman <wollman@FreeBSD.org>

This is a proposal-in-code for a substantial modification of the way
the high kernel calls into a protocol stack to perform requests on the
user's behalf. We replace the pr_usrreq() entry in struct

This is a proposal-in-code for a substantial modification of the way
the high kernel calls into a protocol stack to perform requests on the
user's behalf. We replace the pr_usrreq() entry in struct protosw with a
pointer to a structure containing pointers to functions which implement
the various reuqests; each function is declared with the correct type and
number of arguments. (This is unlike the current scheme in which a quarter
of the requests take arguments of type other than (struct mbuf *) and the
difference is papered over with casts.) There are a few benefits to this
new scheme:

1) Arguments are passed with their correct types, and null-pointer dummies
are no longer necessary.

2) There should be slightly better caching effects from eliminating
the prximity to extraneous code and th switch in pr_usrreq().

3) It becomes much easier to change the types of the arguments to something
other than `struct mbuf *' (e.g.,pushing the work of sosend() into
the protocol as advocated by Van Jacobson).

There is one principal drawback: existing protocol stacks need to
be modified. This is alleviated by compatibility code in
uipc_socket2.c and uipc_domain.c which emulates the new interface
in terms of the old and vice versa.

This idea is not original to me. I read about what Jacobson did
in one of his papers and have tried to implement the first steps
towards something like that here. Much work remains to be done.

show more ...


12345678910>>...80