summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_socket.c
AgeCommit message (Expand)Author
2019-12-02Revert "timeout(9): switch to tickless backend"cheloha
2019-11-26timeout(9): switch to tickless backendcheloha
2019-07-22implement SO_DOMAIN and SO_PROTOCOL so that the domain and the protocolRobert Nagy
2019-07-11listen(2) should return EINVAL if the socket is connected.Alexander Bluhm
2019-07-04Remove a useless kernel lock from the TCP socket splicing path.Alexander Bluhm
2018-12-17When using MSG_WAITALL, soreceive() can sleep while processing theAlexander Bluhm
2018-11-30Trivial MH_ALIGN/M_ALIGN to m_align conversions.Claudio Jeker
2018-11-21When using MSG_PEEK to peak into packets skip control messages holdingClaudio Jeker
2018-11-19Utilize sigio with sockets.Visa Hankala
2018-08-21If the control message of IP_SENDSRCADDR did not fit into the socketAlexander Bluhm
2018-07-30Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O modeMartin Pieuchot
2018-07-05Serialize the sosplice taskq allocation. This prevents an unlikelyVisa Hankala
2018-06-14In soclose() and soaccept() convert the KASSERT(SS_NOFDREF) backAlexander Bluhm
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketMartin Pieuchot
2018-06-06Asseert that a pfkey or routing socket is referenced by a `fp' insteadMartin Pieuchot
2018-05-08Socket splicing can delay operations by task or timeout. IntroduceAlexander Bluhm
2018-04-08AF_LOCAL was a failed attempt (by POSIX?) to seem less UNIX-specific, butPhilip Guenther
2018-03-27Use a goto to merge multiple error blocks in sosplice().Martin Pieuchot
2018-03-01When socket splicing is involved, delay the pool_put() after theAlexander Bluhm
2018-02-19Grab solock() inside soconnect2() instead of asserting for it to be held.Martin Pieuchot
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-01-10Mark sosplice task mp safe, do not grab kernel lock for tcp output.Alexander Bluhm
2018-01-09Change `so_state' and `so_error' to unsigned int such that they canMartin Pieuchot
2018-01-02Do not memset() the whole structure in sorflush() to keep `sb_flagsintr'Martin Pieuchot
2017-12-19Remove unnecessary unlock/lock dance when following a goto.Martin Pieuchot
2017-12-18Revert grabbing the socket lock in kqueue(2) filters.Martin Pieuchot
2017-12-10Move SB_SPLICE, SB_WAIT and SB_SEL to `sb_flags', serialized by solock().Martin Pieuchot
2017-11-23Constify protocol tables and remove an assert now that ip_deliver() isMartin Pieuchot
2017-11-23We want `sb_flags' to be protected by the socket lock rather than theMartin Pieuchot
2017-11-04Make it possible for multiple threads to enter kqueue_scan() in parallel.Martin Pieuchot
2017-11-02Move PRU_DETACH out of pr_usrreq into per proto pr_detachFlorian Obser
2017-09-15Coverity complains that top == NULL was checked and further downAlexander Bluhm
2017-09-11Coverty complains that the return value of sblock() is not checkedAlexander Bluhm
2017-09-01Change sosetopt() to no longer free the mbuf it receives and changeMartin Pieuchot
2017-08-22Make sogetopt(9) caller responsible for allocating an MT_SOOPTS mbuf.Martin Pieuchot
2017-08-10Move the solock()/sounlock() dance outside of sobind().Martin Pieuchot
2017-08-10The socket field so_proto can never be NULL. Remove the checks.Alexander Bluhm
2017-08-09Move the socket lock "above" sosetopt(), sogetopt() and sosplice().Martin Pieuchot
2017-07-27Assert that the KERNEL_LOCK() is held prior to call csignal() andMartin Pieuchot
2017-07-24Extend the scope of the socket lock to protect `so_state' in connect(2).Martin Pieuchot
2017-07-20If pool_get() sleeps while allocating additional memory for socketAlexander Bluhm
2017-07-20Prepare filt_soread() to be locked. No functionnal change.Martin Pieuchot
2017-07-13Do not unlock the netlock in the goto out error path before it hasAlexander Bluhm
2017-07-08Revert grabbing the socket lock in kqueue filters.Martin Pieuchot
2017-07-04Always hold the socket lock when calling sblock().Martin Pieuchot
2017-07-03Protect `so_state', `so_error' and `so_qlen' with the socket lock inMartin Pieuchot
2017-06-27Add missing solock()/sounlock() dances around sbreserve().Martin Pieuchot
2017-06-26Assert that the corresponding socket is locked when manipulating socketMartin Pieuchot
2017-06-20In ddb print socket bit field so_state in hex to match SS_ defines.Alexander Bluhm
2017-06-20Convert sodidle() to timeout_set_proc(9), it needs a process contextMartin Pieuchot