summaryrefslogtreecommitdiff
path: root/sys/netinet/raw_ip.c
AgeCommit message (Expand)Author
2022-05-15have in_pcbselsrc copy the selected address to memory provided by the caller.David Gwynne
2022-03-23Move global variable ripsrc onto stack, it is only used once withinAlexander Bluhm
2022-03-22For raw IP packets rip_input() traverses the loop of all PCBs. FromAlexander Bluhm
2022-03-21Header netinet/in_pcb.h includes sys/mutex.h now. Recommit mutexAlexander Bluhm
2022-03-21call in_pcbselsrc from rip_output so route sourceaddr can take effect.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-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
2019-02-04Avoid an mbuf double free in the oob soreceive() path. In theAlexander Bluhm
2019-01-08Botched up an if conditional in the last commit. The IP length needs toClaudio Jeker
2019-01-07Validate the version, and all length fields of IP packets passed to a raw socketClaudio Jeker
2018-12-03In PRU_DISCONNECT don't fall through into PRU_ABORT since the latter freesClaudio Jeker
2018-11-10Do not translate the EACCES error from pf(4) to EHOSTUNREACH anymore.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-13Add reference counting for inet pcb, this will be needed when weAlexander Bluhm
2018-07-05It was possible to leak the control mbuf in raw ip user requestAlexander Bluhm
2018-07-04Prevent a mbuf double free by not freeing it along the error-path inanton
2018-04-24Push NET_LOCK down in the default ifioctl case.Paul Irofti
2017-12-04Make divert lookup similar for all socket types. If PF_TAG_DIVERTEDAlexander Bluhm
2017-11-28The divert structure was using the port number to indicate thatAlexander Bluhm
2017-11-20Sprinkle some NET_ASSERT_LOCKED(), const and co to prepare runningMartin Pieuchot
2017-11-02Move PRU_DETACH out of pr_usrreq into per proto pr_detachFlorian Obser
2017-10-06Kill the divert-packet socket option IP_DIVERTFL to filter packets.Alexander Bluhm
2017-09-05Replace NET_ASSERT_LOCKED() by soassertlocked() in *_usrreq().Martin Pieuchot
2017-09-01Change sosetopt() to no longer free the mbuf it receives and changeMartin Pieuchot
2017-08-11Validate sockaddr from userland in central functions. This resultsAlexander Bluhm
2017-06-26Assert that the corresponding socket is locked when manipulating socketMartin Pieuchot
2017-04-17The raw ip input functions are called from several places. Use theAlexander Bluhm
2017-04-14Pass down the address family through the pr_input calls. ThisAlexander Bluhm
2017-03-13Move PRU_ATTACH out of the pr_usrreq functions into pr_attach.Claudio Jeker
2017-03-03Convert the variable argument list of the pr_output functions toAlexander Bluhm
2017-02-01In sogetopt, preallocate an mbuf to avoid using sleeping mallocs withDavid Hill
2017-01-29Change the IPv4 pr_input function to the way IPv6 is implemented,Alexander Bluhm
2017-01-25Since raw_input() and route_input() are gone from pr_input, we canAlexander Bluhm
2017-01-23The function raw_input() has not been called since netiso has beenAlexander Bluhm
2017-01-10Remove NULL checks before m_free(9), it deals with it.Martin Pieuchot
2016-12-19Extend the multicast sockets and multicast hash table support to multipleRafael Zalamena
2016-12-19Introduce the NET_LOCK() a rwlock used to serialize accesses to the partsMartin Pieuchot
2016-11-21Enforce that pr_usrreq functions are called at IPL_SOFTNET.Martin Pieuchot
2016-11-14turn ipstat into a set of percpu counters.David Gwynne
2016-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
2015-12-03Remove broadcast matching from ifa_ifwithaddr(), use in_broadcast() whereVincent Gross
2015-07-28Implement pf divert-reply for raw sockets. Note that an emptyAlexander Bluhm
2015-07-15use mp for the name of a variable of type struct mbuf **, rather than mTheo de Raadt
2015-07-15m_freem() can handle NULL, do not check for this condition beforehands.Theo de Raadt
2015-06-30Get rid of the undocumented & temporary* m_copy() macro added forMartin Pieuchot
2015-06-07Replace a bunch of == 0 with == NULL in pointer tests. Nuke someKenneth R Westerback
2015-01-24Userland (base & ports) was adapted to always include <netinet/in.h>Theo de Raadt