<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/netinet/ip_divert.h, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/netinet/ip_divert.h?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/netinet/ip_divert.h?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2017-11-02T14:01:18Z</updated>
<entry>
<title>Move PRU_DETACH out of pr_usrreq into per proto pr_detach</title>
<updated>2017-11-02T14:01:18Z</updated>
<author>
<name>florian</name>
<email>florian@openbsd.org</email>
</author>
<published>2017-11-02T14:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2c5f89aa3af53cc28e3d36f3b88d081fdaa44cd6'/>
<id>urn:sha1:2c5f89aa3af53cc28e3d36f3b88d081fdaa44cd6</id>
<content type='text'>
functions to pave way for more fine grained locking.

Suggested by, comments &amp; OK mpi
</content>
</entry>
<entry>
<title>Pass down the address family through the pr_input calls.  This</title>
<updated>2017-04-14T20:46:31Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2017-04-14T20:46:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=459fa0feb1e08ab4109b4bff330f1f74c94429d3'/>
<id>urn:sha1:459fa0feb1e08ab4109b4bff330f1f74c94429d3</id>
<content type='text'>
allows to simplify code used for both IPv4 and IPv6.
OK mikeb@ deraadt@
</content>
</entry>
<entry>
<title>Move PRU_ATTACH out of the pr_usrreq functions into pr_attach.</title>
<updated>2017-03-13T20:18:21Z</updated>
<author>
<name>claudio</name>
<email>claudio@openbsd.org</email>
</author>
<published>2017-03-13T20:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3d7f610ca455928a1a6266ec779dbfc0c033fe19'/>
<id>urn:sha1:3d7f610ca455928a1a6266ec779dbfc0c033fe19</id>
<content type='text'>
Attach is quite a different thing to the other PRU functions and
this should make locking a bit simpler. This also removes the ugly
hack on how proto was passed to the attach function.
OK bluhm@ and mpi@ on a previous version
</content>
</entry>
<entry>
<title>percpu counters for divert(4) stats</title>
<updated>2017-02-09T15:32:56Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2017-02-09T15:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=feaf2b8904e3856b5e08b993098a6630db7131da'/>
<id>urn:sha1:feaf2b8904e3856b5e08b993098a6630db7131da</id>
<content type='text'>
ok dlg@
</content>
</entry>
<entry>
<title>Since raw_input() and route_input() are gone from pr_input, we can</title>
<updated>2017-01-25T17:34:31Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2017-01-25T17:34:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8f50be26efbcb88c43579636cc560843a6399860'/>
<id>urn:sha1:8f50be26efbcb88c43579636cc560843a6399860</id>
<content type='text'>
make the variable parameters of the protocol input functions fixed.
Also add the proto to make it similar to IPv6.
OK mpi@ guenther@ millert@
</content>
</entry>
<entry>
<title>Simplify the way divert(4) sends packets to userspace: Instead of</title>
<updated>2014-07-10T03:17:59Z</updated>
<author>
<name>lteo</name>
<email>lteo@openbsd.org</email>
</author>
<published>2014-07-10T03:17:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=89cfabdcbcffc16c13db46c5c4811e4471f532c6'/>
<id>urn:sha1:89cfabdcbcffc16c13db46c5c4811e4471f532c6</id>
<content type='text'>
unnecessarily allocating an mbuf tag to store the divert port, just pass
the divert port directly to divert_packet() or divert6_packet() as an
argument.

includes a style fix pointed out by bluhm@
ok bluhm@ henning@ reyk@
</content>
</entry>
<entry>
<title>No need for vargs here.</title>
<updated>2014-04-23T14:43:14Z</updated>
<author>
<name>florian</name>
<email>florian@openbsd.org</email>
</author>
<published>2014-04-23T14:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=33497003067c374f572bc1fd18752aaef527fdc5'/>
<id>urn:sha1:33497003067c374f572bc1fd18752aaef527fdc5</id>
<content type='text'>
While there move declaration of divert{,6}_output() to .c as it's a
private function. Also switch first two args to make it more like
similar functions (both suggested by mpi@).
Input/OK mpi@, OK lteo@
</content>
</entry>
<entry>
<title>Add the IP_DIVERTFL socket option on divert(4) sockets to control</title>
<updated>2012-10-21T13:06:02Z</updated>
<author>
<name>benno</name>
<email>benno@openbsd.org</email>
</author>
<published>2012-10-21T13:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=88149a5db4ddb033c5a5a49d1b3fa5875e1f0042'/>
<id>urn:sha1:88149a5db4ddb033c5a5a49d1b3fa5875e1f0042</id>
<content type='text'>
which packets (as in direction) of the traffic will be diverted
through the divert socket.
ok claudio@, henning@
</content>
</entry>
<entry>
<title>Add (again) support for divert sockets. They allow you to:</title>
<updated>2009-10-04T16:08:37Z</updated>
<author>
<name>michele</name>
<email>michele@openbsd.org</email>
</author>
<published>2009-10-04T16:08:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d85f7bc16ff4db5aedffd92a6397af819385204f'/>
<id>urn:sha1:d85f7bc16ff4db5aedffd92a6397af819385204f</id>
<content type='text'>
- queue packets from pf(4) to a userspace application
- reinject packets from the application into the kernel stack.

The divert socket can be bound to a special "divert port" and will
receive every packet diverted to that port by pf(4).

The pf syntax is pretty simple, e.g.:

pass on em0 inet proto tcp from any to any port 80 divert-packet port 1

A lot of discussion have happened since my last commit that resulted
in many changes and improvements.
I would *really* like to thank everyone who took part in the discussion
especially canacar@ who spotted out which are the limitations of this approach.

OpenBSD divert(4) is meant to be compatible with software running on
top of FreeBSD's divert sockets even though they are pretty different and will
become even more with time.

discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@
tested by reyk@ and myself
ok reyk@ claudio@ beck@
manpage help and ok by jmc@
</content>
</entry>
<entry>
<title>I had not enough oks to commit this diff.</title>
<updated>2009-09-08T17:52:17Z</updated>
<author>
<name>michele</name>
<email>michele@openbsd.org</email>
</author>
<published>2009-09-08T17:52:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7cbbb26b385f13095c3ebf990e77751dfe816685'/>
<id>urn:sha1:7cbbb26b385f13095c3ebf990e77751dfe816685</id>
<content type='text'>
Sorry.
</content>
</entry>
</feed>
