opnsense-src/sys
Justin Hibbits 8f31b879ec bpf: Add IfAPI analogue for bpf_peers_present()
An interface's bpf could feasibly not exist, in which case
bpf_peers_present() would panic from a NULL pointer dereference.  Solve
this by adding a new IfAPI that could deal with a NULL bpf, if such
could occur in the network stack.

Reviewed by:	zlei
Sponsored by:	Juniper Networks, Inc.
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D42082
2023-10-13 14:33:31 -04:00
..
amd64 pmap: add pmap_kextract(9) man page 2023-10-13 15:27:24 -03:00
arm Add a COMPAT_FREEBSD14 kernel option 2023-10-10 11:48:22 +02:00
arm64 pmap: add pmap_kextract(9) man page 2023-10-13 15:27:24 -03:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam cam/scsi: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-09 18:30:21 +08:00
cddl dtrace: remove x86 non-EARLY_AP_STARTUP support 2023-10-10 11:03:27 -04:00
compat netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
conf netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
contrib zfs: merge openzfs/zfs@8a7407012 2023-10-13 09:45:15 +02:00
crypto ossl: Rebuild the openssl asm 2023-10-02 17:12:50 +01:00
ddb ddb: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-09 18:30:21 +08:00
dev bpf: Add IfAPI analogue for bpf_peers_present() 2023-10-13 14:33:31 -04:00
dts sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
fs nfscl: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-09 18:30:21 +08:00
gdb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom Fix geom build with clang 17 and KTR enabled 2023-09-17 14:13:09 +02:00
gnu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 x86: Rename {stop,start}_emulating to fpu_{enable,disable} 2023-10-11 14:32:06 -07:00
isa sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
kern arm64: do not disable the kern.kstack_pages tunable on arm64 2023-10-13 12:26:45 +03:00
kgssapi sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
libkern sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
modules zfs: merge openzfs/zfs@8a7407012 2023-10-13 09:45:15 +02:00
net bpf: Add IfAPI analogue for bpf_peers_present() 2023-10-13 14:33:31 -04:00
net80211 net80211: pass __func__, __LINE__ also to ieee80211_alloc_node() 2023-10-06 10:50:06 +00:00
netgraph ng_eiface: switch VNETs when injecting mbufs into netgraph 2023-09-23 10:56:56 +02:00
netinet netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
netinet6 netinet6: Add sysctl flag CTLFLAG_TUN to loader tunables 2023-09-25 18:10:47 +08:00
netipsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netlink netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
netpfil pf: implement start/stop calls via netlink 2023-10-13 09:53:22 +02:00
netsmb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfsclient sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nfsserver sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nlm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ofed ofed: mask seq_num identifier to occupy only 3 bytes 2023-08-22 16:09:13 -07:00
opencrypto sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
powerpc Add a COMPAT_FREEBSD14 kernel option 2023-10-10 11:48:22 +02:00
riscv pmap: add pmap_kextract(9) man page 2023-10-13 15:27:24 -03:00
rpc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
security cr_canseejailproc(): New privilege, no direct check for UID 0 2023-09-28 11:42:22 -03:00
sys (s)tty: add support for IUTF8 input flag 2023-10-07 20:59:57 +03:00
teken teken: fix style in teken_wcwidth.h 2023-10-13 08:14:57 +03:00
tests netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
tools pccarddevs2h.awk: Remove 2023-08-25 15:12:44 -06:00
ufs ufs: restore name cache fast path lookup 2023-09-09 21:48:57 +00:00
vm vm_phys: Add corresponding sysctl knob for loader tunable 2023-10-12 18:14:49 +08:00
x86 x86: Rename {stop,start}_emulating to fpu_{enable,disable} 2023-10-11 14:32:06 -07:00
xdr sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xen sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
README.md sys/README.md: Add a section for documentation 2023-08-03 11:07:41 -03:00

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures