summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_divert.c
AgeCommit message (Expand)Author
2017-02-09percpu counters for divert(4) statsJeremie Courreges-Anglas
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
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-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
2015-09-09if_put after if_getDavid Gwynne
2015-09-01Replace sockaddr casts with the proper satosin(), ... calls.Alexander Bluhm
2015-08-14Replace sockaddr casts with the proper satosin() or satosin6() calls.Alexander Bluhm
2015-07-15m_freem() can handle NULL, do not check for this condition beforehands.Theo de Raadt
2015-06-16Store a unique ID, an interface index, rather than a pointer to theMartin Pieuchot
2015-04-10replace the use of ifqueues for most input queues serviced by netisrDavid Gwynne
2015-01-24Userland (base & ports) was adapted to always include <netinet/in.h>Theo de Raadt
2014-12-05Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.Martin Pieuchot
2014-09-08remove uneeded route.h includesJonathan Gray
2014-08-10Fix the length check for reinjected ICMP packets: sizeof(struct icmp) isLawrence Teo
2014-08-10Rename p_hdrlen to min_hdrlen to better reflect its purpose.Lawrence Teo
2014-07-22Fewer <netinet/in_systm.h> !Martin Pieuchot
2014-07-12Remove the redundant csum_flag variable and just set the checksum flagLawrence Teo
2014-07-12Protocol checksums have been recalculated on reinjection for a whileLawrence Teo
2014-07-12Implement checksum offload for divert(4): simply set the checksum flagLawrence Teo
2014-07-10Simplify the way divert(4) sends packets to userspace: Instead ofLawrence Teo
2014-04-23No need for vargs here.Florian Obser
2014-04-21ip_output() using varargs always struck me as bizarre, esp since it's onlyHenning Brauer
2014-04-14"struct pkthdr" holds a routing table ID, not a routing domain one.Martin Pieuchot
2014-04-07Retire kernel support for SO_DONTROUTE, this time without breakingMartin Pieuchot
2014-03-28revert "Retire kernel support for SO_DONTROUTE" diff, which does bad thingsStuart Henderson
2014-03-27Retire kernel support for SO_DONTROUTE, since the plan is to alwaysMartin Pieuchot
2014-01-09bzero/bcmp -> memset/memcmp. ok matthewTed Unangst
2013-12-20Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQKenneth R Westerback
2013-11-15Rename the struct pf_divert variable in divert_packet() andLawrence Teo
2013-04-08Recalculate the IP and protocol checksums of packets (re)injected viaLawrence Teo
2013-04-02Use macros sotoinpcb() and intotcpcb() instead of casts. Use NULLAlexander Bluhm
2013-03-28no need for a lot of code to include proc.hTed Unangst
2012-10-21Add the IP_DIVERTFL socket option on divert(4) sockets to controlSebastian Benoit
2012-07-133 line diff to fix divert using connections from local system.Claudio Jeker
2010-09-08Return EACCES when pf_test() blocks a packet in ip_output(). This allowsClaudio Jeker
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
2010-03-09Use correct routing domain when doing address lookups.Joel Sing
2010-03-08Use properly initialised sockaddr_in/sockaddr_in6 struct when performingJoel Sing
2009-10-04Add (again) support for divert sockets. They allow you to:Michele Marchetto
2009-09-08I had not enough oks to commit this diff.Michele Marchetto
2009-09-08Add support for divert sockets. They allow you to:Michele Marchetto