OPNsense - FreeBSD source
Find a file
Alexander V. Chernikov 83add84c00 [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI.
Currently, most of the rib(9) KPI does not use rnh pointers, using
 fibnum and family parameters to determine the rib pointer instead.
This works well except for the case when we initialize new rib pointers
 during fib growth.
In that case, there is no mapping between fib/family and the new rib,
 as an entirely new rib pointer array is populated.

Address this by delaying fib algo initialization till after switching
 to the new pointer array and updating the number of fibs.
Set datapath pointer to the dummy function, so the potential callers
 won't crash the kernel in the brief moment when the rib exists, but
 no fib algo is attached.

This change allows to avoid creating duplicates of existing rib functions,
 with altered signature.

Differential Revision: https://reviews.freebsd.org/D29969
MFC after:	1 week

(cherry picked from commit 8a0d57baec)
2021-05-04 21:30:35 +00:00
.github/workflows Enable GitHub actions CI for stable/13 as well 2021-04-20 09:52:11 +01:00
bin ed(1): Add two references in the SEE ALSO section 2021-04-16 16:25:25 +02:00
cddl dtrace tests: Fix tst.system.d after ping/ping6 unification 2021-04-30 09:21:00 -04:00
contrib lex: Use NULL instead of 0 for pointers 2021-04-23 11:59:29 -04:00
crypto OpenSSL: Merge OpenSSL 1.1.1k 2021-03-25 12:21:51 -04:00
etc zfs: bump version and install new share files 2021-03-10 02:26:35 +01:00
gnu Bump shared library versions after ncurses bump in 13. 2021-02-04 17:51:45 -08:00
include Stop installing kernel-only crypto headers to /usr/include/crypto. 2021-03-29 16:23:36 -07:00
kerberos5 kerberos5: Silence compiler warnings 2021-03-17 09:53:08 +00:00
lib connectat(2): clarify that the s argument is socket 2021-05-03 04:26:50 +03:00
libexec rtld_lock.h: add some comments about versioning of struct RtldLockInfo 2021-04-23 14:14:08 +03:00
release pass UNAME_r to fix building 14.x ports on 13.x 2021-04-29 11:55:46 -04:00
rescue ping: add a ping6 hard link for backwards compatibility 2020-11-26 18:33:04 +00:00
sbin pfctl: Revert "pfctl: Another set skip <group> fix" 2021-05-04 09:50:34 +02:00
secure OpenSSL: Regen manual pages for 1.1.1k 2021-03-25 12:22:21 -04:00
share geom_uzip(4): fix a typo 2021-05-03 05:48:35 -04:00
stand loader: do not output empty menu title 2021-04-28 12:35:54 +03:00
sys [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. 2021-05-04 21:30:35 +00:00
targets targets: no longer depend on bt3cfw(8) 2021-01-16 23:53:13 +01:00
tests pf tests: Test using '<ifgroup>:network' in tables 2021-05-04 09:51:25 +02:00
tools wlanstats: fix build 2021-04-27 17:31:18 +00:00
usr.bin Fix zgrep --version 2021-04-26 15:39:54 +02:00
usr.sbin arp(8): fixing the deletion failure of IEEE1394 associated addresses 2021-05-03 07:51:53 +00:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: use FreeBSD 13.0 image for base system CI build 2021-04-23 12:05:34 -04:00
.clang-format clang-format: Avoid breaking after the opening paren of function definitions 2020-10-28 11:54:00 +00:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore Revert "bc: Vendor import of Gavin Howard's bc version 3.2.6" 2021-02-05 20:53:34 +01:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Add a pointer to csprng@ for the CSPRNG driver. This is enforced anyway by 2020-09-01 08:02:12 +00:00
Makefile Rename NO_WERROR -> MK_WERROR=no 2021-01-07 09:31:03 +00:00
Makefile.inc1 Makefile.inc1: unbreak bootstrap when kbdcontrol does not exist 2021-03-28 13:49:34 -04:00
Makefile.libcompat libcompat: remove redundant path for ncurses 2021-01-07 15:14:52 +01:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc Remove reference to the pfctlinput2() from domain(9) after 237c1f932b. 2021-04-21 00:33:43 +03:00
README Mark the repository has been converted to Git 2020-12-23 12:27:27 +08:00
README.md Revert "bc: Vendor import of Gavin Howard's bc version 3.2.6" 2021-02-05 20:53:34 +01:00
RELNOTES [skip ci] Add RELNOTES entries for aio_writev and fusefs 2021-03-07 16:17:41 +00:00
UPDATING UPDATING: dereference portupgrade(8) 2021-04-30 12:47:41 -04:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

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), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

Source Roadmap:

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		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* 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.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

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:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html