summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_socket.c
AgeCommit message (Expand)AuthorFilesLines
2020-06-22Extend kqueue interface with EVFILT_EXCEPT filter.mpi1-3/+19
2020-06-18Compare `so' and `sosp' types just after `sosp' obtaining. We can't splicemvs1-5/+5
2020-06-15Set __EV_HUP when the conditions matching poll(2)'s POLLUP are found.mpi1-1/+9
2020-04-12In sosplice(), temporarily release the socket lock before callinganton1-1/+9
2020-04-07Abstract the head of knote lists. This allows extending the lists,visa1-6/+6
2020-03-11Fix unlimited recursion caused by local outbound bcast/mcast packetsashan1-3/+9
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowvisa1-4/+4
2020-02-14Push the KERNEL_LOCK() insidge pgsigio() and selwakeup().mpi1-3/+1
2020-01-15Keep socket timeout intervals in nsecs and use them with tsleep_nsec(9).mpi1-14/+30
2019-12-31Use C99 designated initializers with struct filterops. In addition,visa1-7/+21
2019-12-12Reintroduce socket locking inside socket event filters.visa1-3/+16
2019-12-02Revert "timeout(9): switch to tickless backend"cheloha1-4/+3
2019-11-26timeout(9): switch to tickless backendcheloha1-3/+4
2019-07-22implement SO_DOMAIN and SO_PROTOCOL so that the domain and the protocolrobert1-1/+9
2019-07-11listen(2) should return EINVAL if the socket is connected.bluhm1-4/+3
2019-07-04Remove a useless kernel lock from the TCP socket splicing path.bluhm1-11/+27
2018-12-17When using MSG_WAITALL, soreceive() can sleep while processing thebluhm1-3/+11
2018-11-30Trivial MH_ALIGN/M_ALIGN to m_align conversions.claudio1-2/+2
2018-11-21When using MSG_PEEK to peak into packets skip control messages holdingclaudio1-10/+12
2018-11-19Utilize sigio with sockets.visa1-5/+7
2018-08-21If the control message of IP_SENDSRCADDR did not fit into the socketbluhm1-5/+9
2018-07-30Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O modempi1-11/+7
2018-07-05Serialize the sosplice taskq allocation. This prevents an unlikelyvisa1-4/+16
2018-06-14In soclose() and soaccept() convert the KASSERT(SS_NOFDREF) backbluhm1-4/+6
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketmpi1-23/+28
2018-06-06Asseert that a pfkey or routing socket is referenced by a `fp' insteadmpi1-5/+3
2018-05-08Socket splicing can delay operations by task or timeout. Introducebluhm1-8/+20
2018-04-08AF_LOCAL was a failed attempt (by POSIX?) to seem less UNIX-specific, butguenther1-4/+4
2018-03-27Use a goto to merge multiple error blocks in sosplice().mpi1-5/+4
2018-03-01When socket splicing is involved, delay the pool_put() after thebluhm1-4/+27
2018-02-19Grab solock() inside soconnect2() instead of asserting for it to be held.mpi1-3/+4
2018-02-19Remove almost unused `flags' argument of suser().mpi1-3/+3
2018-01-10Mark sosplice task mp safe, do not grab kernel lock for tcp output.bluhm1-2/+3
2018-01-09Change `so_state' and `so_error' to unsigned int such that they canmpi1-2/+2
2018-01-02Do not memset() the whole structure in sorflush() to keep `sb_flagsintr'mpi1-7/+3
2017-12-19Remove unnecessary unlock/lock dance when following a goto.mpi1-5/+5
2017-12-18Revert grabbing the socket lock in kqueue(2) filters.mpi1-16/+3
2017-12-10Move SB_SPLICE, SB_WAIT and SB_SEL to `sb_flags', serialized by solock().mpi1-15/+16
2017-11-23Constify protocol tables and remove an assert now that ip_deliver() ismpi1-5/+5
2017-11-23We want `sb_flags' to be protected by the socket lock rather than thempi1-12/+12
2017-11-04Make it possible for multiple threads to enter kqueue_scan() in parallel.mpi1-3/+16
2017-11-02Move PRU_DETACH out of pr_usrreq into per proto pr_detachflorian1-3/+4
2017-09-15Coverity complains that top == NULL was checked and further downbluhm1-3/+3
2017-09-11Coverty complains that the return value of sblock() is not checkedbluhm1-2/+5
2017-09-01Change sosetopt() to no longer free the mbuf it receives and changempi1-53/+28
2017-08-22Make sogetopt(9) caller responsible for allocating an MT_SOOPTS mbuf.mpi1-17/+4
2017-08-10Move the solock()/sounlock() dance outside of sobind().mpi1-4/+4
2017-08-10The socket field so_proto can never be NULL. Remove the checks.bluhm1-6/+6
2017-08-09Move the socket lock "above" sosetopt(), sogetopt() and sosplice().mpi1-30/+10
2017-07-27Assert that the KERNEL_LOCK() is held prior to call csignal() andmpi1-1/+2