summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.c
AgeCommit message (Expand)Author
2022-08-22Use rwlock per inpcb table to protect notify list. The notifyAlexander Bluhm
2022-08-21Introduce a mutex per inpcb to serialize access to socket receiveAlexander Bluhm
2022-08-08To make protocol input functions MP safe, internet PCB need protection.Alexander Bluhm
2022-08-06Clean up the netlock macros. Merge NET_RLOCK_IN_SOFTNET andAlexander Bluhm
2022-06-28Use btrace(8) to debug reference counting. dt(4) provides a staticAlexander Bluhm
2022-06-06Simplify solock() and sounlock(). There is no reason to return a valueClaudio Jeker
2022-05-15have in_pcbselsrc copy the selected address to memory provided by the caller.David Gwynne
2022-04-14Relax address availability check for multicast binds.Claudio Jeker
2022-03-22Fix whitespace.Alexander Bluhm
2022-03-21Header netinet/in_pcb.h includes sys/mutex.h now. Recommit mutexAlexander Bluhm
2022-03-21treat 255.255.255.255 like an mcast address in in_pcbselsrc.David Gwynne
2022-03-14Unbreak the tree, revert commitid aZ8fm4iaUnTCc0ulTheo Buehler
2022-03-14pf_socket_lookup() calls in_pcbhashlookup() in the PCB layer. ToAlexander Bluhm
2022-03-04in_pcbinit() is called during boot. There malloc(9) cannot fail,Alexander Bluhm
2022-03-02Use NULL instead of 0 for pointer.Alexander Bluhm
2022-03-01Remove outdated comment about v4-mapped v6 addresses. They are notAlexander Bluhm
2021-10-25The implementation of ipsp_spd_inp() is side effect free. It mayAlexander Bluhm
2021-03-10spellingJonathan Gray
2021-02-11Swap faddr/laddr and fport/lport arguments in call to stoeplitz_ipXport().Patrick Wildt
2021-01-25if stoeplitz is enabled, use it to provide a flowid for tcp packets.David Gwynne
2020-11-07Rework source IP address setting.denis
2020-11-05Replace wrong cast with satosin.denis
2020-10-29Add feature to force the selection of source IP addressdenis
2020-05-27Connectionless sockets like UDP can be re-connected to a differentAlexander Bluhm
2019-07-15Initialize struct inpcb pool not on demand, but during initialization.Alexander Bluhm
2018-10-04Revert the inpcb table mutex commit. It triggers a witness panicAlexander Bluhm
2018-09-20As a step towards per inpcb or socket locks, remove the net lockAlexander Bluhm
2018-09-14In general it is a bad idea to use one random secret for two things.Alexander Bluhm
2018-09-13Add reference counting for inet pcb, this will be needed when weAlexander Bluhm
2018-09-11Make the distribution of in_ and in6_ functions in in_pcb.c andAlexander Bluhm
2018-09-10Remove useless INPCBHASH() macros. Just expand them.Alexander Bluhm
2018-09-07Explain the special case for redirect to localhost in a comment.Alexander Bluhm
2018-07-11Retire RTM_LOSING, it no longer makes sense and on busy servers theClaudio Jeker
2018-06-14In in_pcballoc() finish the inp initialization before adding it toAlexander Bluhm
2018-06-14Assert that the INP_IPV6 in in6_pcbconnect() is correct. Just callAlexander Bluhm
2018-06-11Do not unlock the KERNEL_LOCK() unconditionally in sounlock().Martin Pieuchot
2018-06-11Push the KERNEL_LOCK() inside route_input().Martin Pieuchot
2018-06-07The global zero addresses must not change, mark them constant.Alexander Bluhm
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketMartin Pieuchot
2018-06-03Use variable names for rtable and rdomain consistently in the in_pcbAlexander Bluhm
2018-06-03Rename the incpb table field inpt_hash to inpt_mask as it containsAlexander Bluhm
2018-06-02Cleanup the in_pcbnotifymiss diagnostic printfs. Always print theAlexander Bluhm
2018-06-02The function in_pcbrehash() does not modify the pcb table queue.Alexander Bluhm
2018-03-30Store the allocation size in inpcbhead for free().David Hill
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-12-04Make divert lookup similar for all socket types. If PF_TAG_DIVERTEDAlexander Bluhm
2017-12-01Fix white spaces and shorten long line.Alexander Bluhm
2017-12-01Simplify the reverse PCB lookup logic. The PF_TAG_TRANSLATE_LOCALHOSTAlexander Bluhm
2017-08-11Validate sockaddr from userland in central functions. This resultsAlexander Bluhm
2017-08-04The in_pcbhashlookup() in in_pcbconnect() enforces that the 4 tupelAlexander Bluhm