<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sbin/pfctl/pfctl_parser.h, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sbin/pfctl/pfctl_parser.h?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sbin/pfctl/pfctl_parser.h?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-01-15T11:52:50Z</updated>
<entry>
<title>Enable pfctl(8) to recursively flush rules and tables from PF driver.  The</title>
<updated>2020-01-15T11:52:50Z</updated>
<author>
<name>sashan</name>
<email>sashan@openbsd.org</email>
</author>
<published>2020-01-15T11:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ae711728d410d2bb41f3a563f2e2ebdede715edc'/>
<id>urn:sha1:ae711728d410d2bb41f3a563f2e2ebdede715edc</id>
<content type='text'>
recursive operation ("pfctl -a '*' ...") works for '-s' option already. This
change enables the same thing for '-F' option, so "pfctl -a '*' -Fa" will flush
everything from PF driver.

The idea was discussed with many on tech@ in spring 2019.

OK kn@
</content>
</entry>
<entry>
<title>Remove pfctl_*_pool() remnants</title>
<updated>2019-03-07T08:01:52Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2019-03-07T08:01:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f985073445837bb74ca302a96db3b51d58a5cf3b'/>
<id>urn:sha1:f985073445837bb74ca302a96db3b51d58a5cf3b</id>
<content type='text'>
Left behind in pfctl_parser.h revision 1.91
	"First pass at removing the 'pf_pool' mechanism [...]"

These functions don't exist anymore, no object change.

OK procter
</content>
</entry>
<entry>
<title>Fix once rules</title>
<updated>2019-03-06T19:49:05Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2019-03-06T19:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6da84b37b3f3e88426bb98c24d021b664f406547'/>
<id>urn:sha1:6da84b37b3f3e88426bb98c24d021b664f406547</id>
<content type='text'>
parse.y revision 1.682 from 16.07.2018 errornously allowed `match once' and
`anchor "a" once'.

Fix both by checking for PF_DROP not PF_MATCH and creating anchors in the
parser already such that they can be used to distinguish anchor rules in
the same check as well.

Found and fixed by Petr Hoffmann &lt;petr.hoffmann at oracle dot com&gt;, thanks!

While here, remove an unneeded cast and make pfctl_add_rule() void as it
always returned 0.

OK sashan
</content>
</entry>
<entry>
<title>Reuse copy_satopfaddr() when killing entries</title>
<updated>2019-01-29T10:58:31Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2019-01-29T10:58:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0ff82421d83962a6e348424fabb01a1e0860c3eb'/>
<id>urn:sha1:0ff82421d83962a6e348424fabb01a1e0860c3eb</id>
<content type='text'>
Recently introduced in pfctl_parser.c r1.333, this helper nicely
simplifies code when copying IPs based on their address family, so use
it in five other places when killing state or source node entries.

All addresses copied in these code paths result from either
pfctl_parse_host() or pfctl_addrprefix() which guarantee the address
family set to AF_INET or AF_INET6.  Therefore, effectively relaxing the
case of unhandled families from errx(3) in callers to warnx(3) in
copy_satopfaddr() is safe since it's never reached.

OK sashan
</content>
</entry>
<entry>
<title>Remove unused af argument from unmask()</title>
<updated>2018-09-06T15:07:33Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2018-09-06T15:07:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f0bb6ca5dd99693590fea0d9be3547a3318048b5'/>
<id>urn:sha1:f0bb6ca5dd99693590fea0d9be3547a3318048b5</id>
<content type='text'>
This has been unused for years.

While here, zap the duplicate function signature from pfctl.h (already
present in pfctl_parser.h); spotted by sashan, thanks.

OK sashan
</content>
</entry>
<entry>
<title>Move AF-specific mask logic from callers into set_ipmask()</title>
<updated>2018-09-05T21:16:26Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2018-09-05T21:16:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c04427dd304c542b6bf753a850dfa3a32453ef43'/>
<id>urn:sha1:c04427dd304c542b6bf753a850dfa3a32453ef43</id>
<content type='text'>
Instead of doing the same dance with every caller, check for user provided
mask or address familiy specific maximum inside the function itself.

Feedback and OK claudio
</content>
</entry>
<entry>
<title>make the watermarks/thresholds for entering and leaving syncookie mode when</title>
<updated>2018-02-08T09:15:46Z</updated>
<author>
<name>henning</name>
<email>henning@openbsd.org</email>
</author>
<published>2018-02-08T09:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4ee64aa978208207d48c82f9533054056802dd0e'/>
<id>urn:sha1:4ee64aa978208207d48c82f9533054056802dd0e</id>
<content type='text'>
syncookies are set to adaptive tunable, ok claudio benno
</content>
</entry>
<entry>
<title>show current synflood detection watermarks in pfctl -vsi, for the lack</title>
<updated>2018-02-08T02:26:39Z</updated>
<author>
<name>henning</name>
<email>henning@openbsd.org</email>
</author>
<published>2018-02-08T02:26:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6af768114498cef737349f00a72a3551ee747c3a'/>
<id>urn:sha1:6af768114498cef737349f00a72a3551ee747c3a</id>
<content type='text'>
of a more appropriate place. ok claudio benno procter
</content>
</entry>
<entry>
<title>allow control over syncookies: set syncookies never/always/adaptive</title>
<updated>2018-02-06T23:47:47Z</updated>
<author>
<name>henning</name>
<email>henning@openbsd.org</email>
</author>
<published>2018-02-06T23:47:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6dce935d778a69e00f7a0b19748c7682336dc325'/>
<id>urn:sha1:6dce935d778a69e00f7a0b19748c7682336dc325</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- patching use-after-free and innocent memory leak in pfctl_optimzie.c</title>
<updated>2017-11-25T22:20:06Z</updated>
<author>
<name>sashan</name>
<email>sashan@openbsd.org</email>
</author>
<published>2017-11-25T22:20:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=43d70b8338dfc717f31a91a78a3e54e4bb2f631d'/>
<id>urn:sha1:43d70b8338dfc717f31a91a78a3e54e4bb2f631d</id>
<content type='text'>
OK bluhm@
</content>
</entry>
</feed>
