<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/pfctl, branch upstream/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-02-18T10:14:58Z</updated>
<entry>
<title>libpfctl: fix creatorid endianness</title>
<updated>2022-02-18T10:14:58Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2022-01-21T16:50:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=63220460d0af381abfaddc4a203c3df21bd9719d'/>
<id>urn:sha1:63220460d0af381abfaddc4a203c3df21bd9719d</id>
<content type='text'>
We provide the hostid (which is the state creatorid) to the kernel as a
big endian number (see pfctl/pfctl.c pfctl_set_hostid()), so convert it
back to system endianness when we get it from the kernel.

This avoids a confusing mismatch between the value the user configures
and the value displayed in the state.

MFC after:	3 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D33989

(cherry picked from commit 735748f30aad80593e2b7f5f5f175d64484c5eeb)
</content>
</entry>
<entry>
<title>pfctl: improve error reporting for routehost</title>
<updated>2022-02-18T10:14:58Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2022-01-05T20:31:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b5f6f687a2eea520d93f2c1ca4e04efd7c2e367f'/>
<id>urn:sha1:b5f6f687a2eea520d93f2c1ca4e04efd7c2e367f</id>
<content type='text'>
If an invalid (i.e. overly long) interface name is specified error out
immediately, rather than in expand_rule() so we point at the incorrect
line.

PR:		260958
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D34008

(cherry picked from commit e68de6694381748b7578703b22580c0f17780b32)
</content>
</entry>
<entry>
<title>sys/bitset.h: reduce visibility of BIT_* macros</title>
<updated>2022-01-14T16:17:30Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2021-12-05T21:27:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=379bfb2aa9e940d1ddb6ed3fd113a543c0db3572'/>
<id>urn:sha1:379bfb2aa9e940d1ddb6ed3fd113a543c0db3572</id>
<content type='text'>
(cherry picked from commit 5e04571cf3cf4024be926976a6abf19626df30be)
</content>
</entry>
<entry>
<title>pf: Introduce ridentifier</title>
<updated>2021-11-26T03:39:05Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2021-10-29T15:40:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cfe9b890d574a92e8b04eb662e9ac2010d243193'/>
<id>urn:sha1:cfe9b890d574a92e8b04eb662e9ac2010d243193</id>
<content type='text'>
Allow users to set a number on rules which will be exposed as part of
the pflog header.
The intent behind this is to allow users to correlate rules across
updates (remember that pf rules continue to exist and match existing
states, even if they're removed from the active ruleset) and pflog.

Obtained from:	pfSense
MFC after:	3 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D32750

(cherry picked from commit 76c5eecc3490d89a9a3492ed2354802b69d69602)
</content>
</entry>
<entry>
<title>pfctl: delay label macro expansion until after rule optimisation</title>
<updated>2021-10-22T07:34:25Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2021-10-13T14:06:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=35237559a6a0ad0b16abcc6809c2e145931c5e9a'/>
<id>urn:sha1:35237559a6a0ad0b16abcc6809c2e145931c5e9a</id>
<content type='text'>
We used to expand the $nr macro in labels into the rule number prior to
the optimisation step. This would occasionally produce incorrect rule
numbers in the labels.

Delay all macro expansion until after the optimisation step to ensure
that we expand the correct values.

MFC after:	1 week
Reported by:	Özkan KIRIK &lt;ozkan.kirik@gmail.com&gt;
Differential Revision:	https://reviews.freebsd.org/D32488

(cherry picked from commit 09c7f2386973f8c36978895a7600320916bc3d07)
</content>
</entry>
<entry>
<title>pfctl: Remove unused variable</title>
<updated>2021-10-22T07:32:24Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2021-09-30T15:25:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e089cda88b7885e23043b8a46f9c9add6a285443'/>
<id>urn:sha1:e089cda88b7885e23043b8a46f9c9add6a285443</id>
<content type='text'>
MFC after:	2 weeks
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 90dedf0fef71d3e3081015525665bf335f9c7ee3)
</content>
</entry>
<entry>
<title>pfctl: userspace adaptive syncookies configration</title>
<updated>2021-10-06T08:46:54Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2021-08-13T11:42:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c5a340e864028fcb35301275d38bafd39eb2fd26'/>
<id>urn:sha1:c5a340e864028fcb35301275d38bafd39eb2fd26</id>
<content type='text'>
Hook up the userspace bits to configure syncookies in adaptive mode.

MFC after:	1 week
Sponsored by:	Modirum MDPay
Differential Revision:	https://reviews.freebsd.org/D32136

(cherry picked from commit 5062afff9de7e67da96e3f0dcb9d8bbd5a4e1c5b)
</content>
</entry>
<entry>
<title>pfctl: print counters in decimal</title>
<updated>2021-09-08T07:28:29Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2021-09-04T14:07:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c298e0a0c2047f1db0e69e90f48d9873f9b6c323'/>
<id>urn:sha1:c298e0a0c2047f1db0e69e90f48d9873f9b6c323</id>
<content type='text'>
795d78a46713 pfctl: Don't use PRIu64 mistakenly changed these to be
printed as hexadecimal numbers.

Reported by:	Florian Smeets
MFC after:	4 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 846a6e8f9ab25df4e06d28c05fb66060d803c9ba)
</content>
</entry>
<entry>
<title>pfctl: Don't use PRIu64</title>
<updated>2021-09-08T07:28:25Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2021-09-01T16:18:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0c976ab9c086e1a4765533c869fd6ad60140da68'/>
<id>urn:sha1:0c976ab9c086e1a4765533c869fd6ad60140da68</id>
<content type='text'>
Rather than PRIu64 we can just treat the data as uintmax_t, and use %jx
instead.

MFC after:	1 week
Suggested by:	kib
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 795d78a46713fc16153966e77f20da2f40aac2a3)
</content>
</entry>
<entry>
<title>Fix -Wformat errors in pfctl on 32-bit architectures</title>
<updated>2021-09-06T13:42:53Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2021-08-29T15:31:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a80a3afc3bfde2de6ca88b524ac1f5ab6f048aed'/>
<id>urn:sha1:a80a3afc3bfde2de6ca88b524ac1f5ab6f048aed</id>
<content type='text'>
Use PRIu64 to printf(3) uint64_t quantities, otherwise this will result
in "error: format specifies type 'unsigned long' but the argument has
type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]" on 32-bit
architectures.

Fixes:		80078d9d38fd
MFC after:	1 week

(cherry picked from commit 5b8f07b12f8477f1679013d6b3abdab8d33c7243)
</content>
</entry>
</feed>
