summaryrefslogtreecommitdiff
path: root/sys/net/rtsock.c
AgeCommit message (Expand)Author
2022-08-29Use struct refcnt for interface address reference counting.Alexander Bluhm
2022-08-28Move PRU_SENSE request to (*pru_sense)().Vitaliy Makkoveev
2022-08-28Since we have no raw_usrreq anymore, remove pr_output indirection.Alexander Bluhm
2022-08-28Move PRU_ABORT request to (*pru_abort)().Vitaliy Makkoveev
2022-08-27Move PRU_SEND request to (*pru_send)().Vitaliy Makkoveev
2022-08-26Move PRU_RCVD request to (*pru_rcvd)().Vitaliy Makkoveev
2022-08-22Move PRU_SHUTDOWN request to (*pru_shutdown)().Vitaliy Makkoveev
2022-08-22Move PRU_DISCONNECT request to (*pru_disconnect).Vitaliy Makkoveev
2022-08-22Move PRU_ACCEPT request to (*pru_accept)().Vitaliy Makkoveev
2022-08-21Move PRU_CONNECT request to (*pru_connect)() handler.Vitaliy Makkoveev
2022-08-21Move PRU_LISTEN request to (*pru_listen)() handler.Vitaliy Makkoveev
2022-08-20Move PRU_BIND request to (*pru_bind)() handler.Vitaliy Makkoveev
2022-08-15Introduce 'pr_usrreqs' structure and move existing user-protocolVitaliy Makkoveev
2022-06-28Use refcnt API for struct rtentry instead of hand-crafted atomicAlexander Bluhm
2022-06-27Rework the rttimer code. Instead of a global queue and a global timeoutClaudio Jeker
2022-06-27Fix white space and wrap long lines.Alexander Bluhm
2022-06-27Don't copy more than sa_len from the sockaddr to the sysctl / rt msg buffer.Claudio Jeker
2022-06-26Switch walkargs for the buffer size to size_t and change the overflowClaudio Jeker
2022-06-16Mark routes sent via sysctl(2) with RTF_DONE like it is done on theClaudio Jeker
2022-06-06Simplify solock() and sounlock(). There is no reason to return a valueClaudio Jeker
2022-03-09Change the logic around rounding up the needed memory for sysctls sinceClaudio Jeker
2022-02-25Reported-by: syzbot+1b5b209ce506db4d411d@syzkaller.appspotmail.comPhilip Guenther
2022-02-25Move pr_attach and pr_detach to a new structure pr_usrreqs that canPhilip Guenther
2022-01-20Shifting signed integers left by 31 is undefined behavior in C.Alexander Bluhm
2021-12-16When adding the extra 10% of space to a needed sysctl buffer use mathClaudio Jeker
2021-09-14Add missing kernel lock for Bi-directional Forwarding Detection data.Vitaliy Makkoveev
2021-09-07Fix NULL pointer dereference introduced by previous commit.Vitaliy Makkoveev
2021-09-07Fix the race between if_detach() and rtm_output().Vitaliy Makkoveev
2021-06-23rtsock: revert from timeout_set_flags(9) to timeout_set_proc(9); ok mvs@cheloha
2021-06-01Check `so_state' in rtm_senddesync() and return if SS_ISCONNECTED ormvs
2021-05-30Declare all struct protosw as constant.Alexander Bluhm
2021-05-25As network features are not added dynamically, the domain structuresAlexander Bluhm
2021-05-17Revert. Last change should not have been committed.Claudio Jeker
2021-05-17Increase the default buffer space using on PF_UNIX sockets to 8k.Claudio Jeker
2021-05-16In route detach we delete `rop_timeout' while `rop' is still linked tomvs
2021-05-01Implement per-socket `so_lock' rwlock(9) and use it to protect routingmvs
2021-04-26Revert per-socket `so_lock' rwlock(9) and use it to protect routingClaudio Jeker
2021-04-25Implement per-socket `so_lock' rwlock(9) and use it to protect routingmvs
2021-03-26Push kernel lock down to rt_setsource() to make `ifa' dereference safe.mvs
2021-03-18Like in the sysctl case include the ifp_sadl as RTA_IFP address in RTM_IFINFOClaudio Jeker
2021-02-27Rework route_input() and rtm_sendup(). While we perform foreach loopmvs
2021-02-25we don't have to cast to caddr_t when calling m_copydata anymore.David Gwynne
2021-02-15Simplify error path in in route_attach(). We always call it in threadmvs
2020-11-07Rework source IP address setting.denis
2020-10-29Add feature to force the selection of source IP addressdenis
2020-09-23Fix declaration of `routedomain'. It's not external here.mvs
2020-09-22Document locks which protect `rtpcb' struct members.mvs
2020-08-13Add a ROUTE_FLAGFILTER socket option for routing sockets, allowingJonathan Matthew
2020-06-24kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)cheloha
2020-03-24Remove redundant 'NULL' check for 'rtm'.tobhe