Go to file
Alexander V. Chernikov 2cef62886d pf: convert state retrieval to netlink
Use netlink to export pf's state table.

The primary motivation is to improve how we deal with very large state
stables. With the previous implementation we had to build the entire
list (both in the kernel and in userspace) before we could start
processing. With netlink we start to get data in userspace while the
kernel is still generating more. This reduces peak memory consumption
(which can get to the GB range once we hit millions of states).

Netlink also makes future extension easier, in that we can easily add
fields to the state export without breaking userspace. In that regard
it's similar to an nvlist-based approach, except that it also deals
with transport to userspace and that it performs significantly better
than nvlists. Testing has failed to measure a performance difference
between the previous struct-copy based ioctl and the netlink approach.

Differential Revision:	https://reviews.freebsd.org/D38888
2023-10-10 11:48:21 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin (s)tty: add support for IUTF8 input flag 2023-10-07 20:59:57 +03:00
cddl zfs: merge openzfs/zfs@2e2a46e0a 2023-09-24 23:58:34 +02:00
contrib (upstream) PR/386: Add newlines for consitency 2 2023-10-08 21:52:53 -07:00
crypto OpenSSL: update to 3.0.11 2023-10-09 15:00:26 -04:00
etc mtree: Fix entry 2023-10-09 12:56:19 +02:00
gnu Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
include pf: convert state retrieval to netlink 2023-10-10 11:48:21 +02:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lib pf: convert state retrieval to netlink 2023-10-10 11:48:21 +02:00
libexec flua: add fbsd module 2023-09-27 16:00:00 +02:00
release EC2: Add experimental cloud-init images 2023-09-28 15:18:46 -07:00
rescue zfs: merge openzfs/zfs@804414aad 2023-08-26 23:51:42 +02:00
sbin sysctl: emit a newline after NULL node descriptions 2023-10-09 22:48:53 -04:00
secure OpenSSL: update to 3.0.11 2023-10-09 15:00:26 -04:00
share dialog(1): switch off dialog(1) by default 2023-10-10 09:19:48 +02:00
stand Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
sys pf: convert state retrieval to netlink 2023-10-10 11:48:21 +02:00
targets Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tests fusefs: sanitize FUSE_READLINK results for embedded NULs 2023-10-07 08:22:03 -06:00
tools dialog(1): switch off dialog(1) by default 2023-10-10 09:19:48 +02:00
usr.bin file: Support testing multiple magic files. 2023-10-09 10:44:42 -07:00
usr.sbin bsdconfig: rework packages selection TUI 2023-10-10 09:01:51 +02:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml Cirrus CI: Trigger on pull requests or downstream repos 2023-10-09 15:13:21 -04:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore bsddialog: Import version 1.0 2023-10-04 17:43:22 +02:00
.mailmap mailmap: Add pstef and val 2023-10-06 15:02:41 +02:00
CONTRIBUTING.md CONTRIBUTING.md: add author identity info 2023-09-20 19:28:28 -04:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile bsddialog: Import version 1.0 2023-10-04 17:43:22 +02:00
Makefile.inc1 libcrypto: link engines and the legacy provider to libcrypto 2023-09-16 16:55:12 +01:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc net80211: remove ieee80211_unref_node() 2023-10-05 14:28:55 +00:00
README.md bsddialog: Import version 1.0 2023-10-04 17:43:22 +02:00
RELNOTES bsddialog(1): document the replacement of dialog(1) 2023-10-10 09:24:25 +02:00
UPDATING bsddialog(1): document the replacement of dialog(1) 2023-10-10 09:24:25 +02:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.