summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket2.c
AgeCommit message (Collapse)Author
2003-07-21remove caddr_t casts. it's just silly to cast something when the functionTed Unangst
takes a void *. convert uiomove to take a void * as well. ok deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-10-10constify a few strings. various@ okArtur Grabowski
2002-08-26Update sb_lastrecord in sbcompress() when the mbuf pointed to is removed.Daniel Hartmeier
Bug report from Alistair Kerr, tested miod@, inspected art@, ok provos@
2002-08-08redo socketbuf speedup.Niels Provos
2002-08-08backout the tree break. ok pb@, art@Todd T. Fries
2002-08-08socket buf speedup from thorpej@netbsd, okay art@ ericj@:Niels Provos
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!
2002-06-11splassert where necessaryArtur Grabowski
2002-05-11track egid/rgid on bound/connected sockets too (pf will use this)Theo de Raadt
2001-11-30sbcompress() can compact mbuf clusters now; from thorpej@netbsdNiels Provos
2001-11-28avoid "thundering herd" problem in accept by waking just one process.Niels Provos
based on freebsd. okay art@ markus@
2001-11-28from enami@netbsd:Niels Provos
Give different names for different wait channels
2001-11-27change socket allocation to pool allocator; from netbsd; okay niklas@Niels Provos
2001-11-27change socket connection queues to use TAILQ_Niels Provos
from NetBSD: Wed Jan 7 23:47:08 1998 UTC by thorpej Make insertion and removal of sockets from the partial and incoming connections queues O(C) rather than O(N).
2001-09-26At sonewconn() time, copy so_siguid & so_sigeuid to the newly created socket.Theo de Raadt
Stops a nasty little program supplied by gustavo@core-sdi.com
2001-07-05It feels a bit pointless to have:Artur Grabowski
#define sonewconn(head, connstatus) sonewconn1((head), (connstatus)) Just wastes preprocessor time.
2001-06-22KNFTheo de Raadt
2001-05-26Style.Angelos D. Keromytis
2001-05-02prevent overflow in sbreserve; from wollman@freebsd via netbsdNiels Provos
2000-11-16support kernel event queues, from FreeBSD by Jonathan Lemon,Niels Provos
okay art@, millert@
2000-02-29more fix to ancillary data alignment. we need padding afterJun-ichiro itojun Hagino
last cmsg_data item (see the figure on RFC2292 page 18).
2000-02-18fix alignment problem in ancillary data (alpha).Jun-ichiro itojun Hagino
only ipv6 tools (which touches ancillary data) are affected. From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>
2000-02-04Fix misleading comment.Angelos D. Keromytis
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
1999-02-19fixed patch for accept/select race; mycroft@netbsd.orgTodd C. Miller
1999-02-18undo select/accept patch, which causes full listen queues apparentlyTheo de Raadt
1999-01-21Fixes select(2)/accept(2) race condition which permits DoS; mycroft@netbsd.orgTodd C. Miller
1998-02-14add seperate so_euid & so_ruid to struct socket, so that identd is still ↵Theo de Raadt
fast.. Sigh. I will change this again later
1997-08-31for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uidTheo de Raadt
and euid as well, then deliver them using new csignal() interface which ensures that pgid setting process is permitted to signal the pgid process(es). Thanks to newsham@aloha.net for extensive help and discussion.
1997-02-21do not allow SO_SNDBUF/SO_RCVBUF len 0Theo de Raadt
1996-09-20`solve' the syn bomb problem as well as currently known; add sysctl's forTheo de Raadt
SOMAXCONN (kern.somaxconn), SOMINCONN (kern.sominconn), and TCPTV_KEEP_INIT (net.inet.tcp.keepinittime). when this is not enough (ie. overfull), start doing tail drop, but slightly prefer the same port.
1996-08-24change to so_uid, also fix a missing credential found by dmTheo de Raadt
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt