OPNsense - FreeBSD source
Find a file
Zhenlei Huang db8296ff38 ethernet: Move the assertion of ether header sizes back into ethernet.h
There're lots of consumers, Ethernet drivers, libraries and applications.
It is more promising to assert the sizes in every compilation units
rather than in if_ethersubr.c only.

Those assertions were in the header file but were moved to if_ethersubr.c
due to possible conflict of the implementation of CTASSERT [1]. Now that
the default C standard is now gnu17 [2] [3] which supports _Static_assert
natively, use _Static_assert instead of CTASSERT to avoid possible
conflicts.

While here, add an extra assertion for the size of struct ether_vlan_header.

[1] d54d93ac7f Move CTASSERT of ether header sizes out of the header file and into ...
[2] ca4eddea97 src: Use gnu17 as the default C standard for userland instead of gnu99
[3] 3a98d5701c sys: Use gnu17 as the default C standard for the kernel

PR:		287761 (exp-run)
Reviewed by:	glebius
Differential Revision:	https://reviews.freebsd.org/D50947
2025-07-15 23:31:19 +08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github github: Fix checklist action 2025-04-28 15:27:29 -06:00
bin cp: Add descriptions to all test cases. 2025-07-09 19:10:59 +02:00
cddl dtrace.1: Document evaltime 2025-07-14 18:38:19 +02:00
contrib kyua: Try harder to delete directories. 2025-07-09 22:28:47 +02:00
crypto openssh: Support building with MIT KRB5 2025-06-15 19:49:36 -07:00
etc examples: Add a demo program for inotify 2025-07-04 14:42:34 +00:00
gnu build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
include libc: Rename fscandir{,_b}() to fdscandir{,_b}(). 2025-06-23 15:03:10 +02:00
kerberos5 build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
krb5 krb5: Install the libkrb5clnt.so symlink with the .so 2025-07-08 06:54:27 -07:00
lib ncurses: Provide reproducible paths 2025-07-14 14:45:57 +00:00
libexec /etc/rc.d/pf: Fix for multi-line pf_fallback_rules 2025-07-15 15:06:27 +02:00
release release/packages/generate-ucl.sh: use correct exit status 2025-07-15 06:12:45 +01:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin pflog: improve uid logging 2025-07-15 09:55:30 +02:00
secure openssh: Support building with MIT KRB5 2025-06-15 19:49:36 -07:00
share /etc/rc.d/pf: Fix for multi-line pf_fallback_rules 2025-07-15 15:06:27 +02:00
stand libsa/zfs: fail earlier in vdev_probe() if can't find ZPOOL_CONFIG_GUID 2025-07-10 20:26:01 -07:00
sys ethernet: Move the assertion of ether header sizes back into ethernet.h 2025-07-15 23:31:19 +08:00
targets build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
tests netinet6: allow binding a raw socket to an anycast address 2025-07-15 06:12:45 +01:00
tools cross-build: provide exterr.h and sys/exterrvar.h for non-FreeBSD hosts 2025-07-10 23:55:41 +03:00
usr.bin find.1: Correct HISTORY grammar typo 2025-07-14 13:50:51 -04:00
usr.sbin inetd.conf: remove -[46] from the ssh entry 2025-07-15 06:12:45 +01:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml .cirrus.yml: Switch to manual mode for internal CI 2025-07-06 14:40:24 +02:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs git-blame-ignore-revs: iflib style(9) tweaks 2025-06-06 18:07:06 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore .gitignore: add sys/*/compile 2024-02-02 09:20:36 -07:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING.md/style: spring cleaning 2024-05-10 15:07:03 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile powerpc: Disconnect 32-bit powerpc from make universe 2025-07-14 11:01:09 -04:00
Makefile.inc1 packages: make UCL files required 2025-07-15 06:12:44 +01:00
Makefile.libcompat Makefile: Hook MIT KRB5 into the build 2025-06-15 19:49:37 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc share: Delete bitrotted make_*_driver.sh scripts 2025-07-10 20:36:08 +01:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Document the addition of inotify 2025-07-04 15:13:43 +00:00
UPDATING shar: remove from the tree well in advance of the 15.0 release 2025-07-10 12:57:03 -05: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.

For official FreeBSD bootable images, see the release 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.