OPNsense - FreeBSD source
Find a file
Mariusz Zaborski 4cd80dbc7e mpr: fix copying of event_mask
Before the commit 6cc44223cb6717795afdac4348bbe7e2a968a07d the
field event_mask was fully copied to the EventMasks field.
After this commit the event_mask (uint8_t) is 4 times casted to
EventMask (uint32_t). Because of that 24 bits of each event_mask array
is lost.

This commits brings back simple copying of field, and after words
converting 32 bits field to the requested endian.

I don't think we need more sophisticated method,
as the array is of size 4 (for 32 bits version).

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D39562

(cherry picked from commit ea6597c38c)
(cherry picked from commit e7a3a08febd01c95b74185bb971ec29cca64b8e1)

Approved by:	so
Security:	FreeBSD-EN-23:07.mpr
2023-06-21 10:02:52 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github Issues - add contributing guidelines and issue template. As this is mostly upstream, don't include feature request templates or questions 2023-05-09 14:36:50 +02:00
bin etc: OPNsense customisations 2023-05-09 14:34:18 +02:00
cddl Delete obsolete Solaris compat header file stdlib.h 2023-03-02 16:22:26 +08:00
contrib contrib/tzdata: import tzdata 2023c 2023-03-29 10:32:25 +08:00
crypto ssh: Update to OpenSSH 9.3p1 2023-03-16 21:38:16 -04:00
etc rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-19 14:10:48 -05:00
include netlink: add headers installation 2023-02-15 17:14:47 +00:00
kerberos5 pkgbase: split kerberos binaries and libs 2022-08-19 14:27:16 +01:00
lib Update in preparation for 13.2-RELEASE 2023-04-06 17:03:18 -07:00
libexec rc: add ${name}_setup script support 2023-05-09 14:34:18 +02:00
release 13.2: create releng/13.2 branch 2023-02-09 16:37:06 -08:00
rescue Add an internal libiscsiutil library. 2022-04-29 14:13:00 -07:00
sbin sft: merge pfSense stf additions not in FreeBSD 2023-05-09 13:58:03 +02:00
secure ssh: Update to OpenSSH 9.3p1 2023-03-16 21:38:16 -04:00
share etc: OPNsense customisations 2023-05-09 14:34:18 +02:00
stand loader: comconsole: don't unconditionally wipe out hw.uart.console 2023-06-21 10:02:51 +02:00
sys mpr: fix copying of event_mask 2023-06-21 10:02:52 +02:00
targets Fix bootstrapping to actually build lldb-tblgen for later use 2021-09-07 13:08:18 +01:00
tests routing: fix panic when adding an interface route to the p2p interface 2023-05-09 10:58:12 +02:00
tools Bring our tzcode up to date. 2023-01-31 10:44:19 +01:00
usr.bin etc: OPNsense customisations 2023-05-09 14:34:18 +02:00
usr.sbin bsdinstall: switch branding where appropriate 2023-05-09 12:17:01 +02:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint
.cirrus.yml Cirrus-CI: add gpart show to setup script 2023-01-09 12:26:34 -05:00
.clang-format clang-format: Add bitset loop macros 2021-11-01 09:20:11 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore add exuberant ctags tags file to gitignore 2022-01-11 15:25:37 +02:00
CONTRIBUTING.md Issues - add contributing guidelines and issue template. As this is mostly upstream, don't include feature request templates or questions 2023-05-09 14:36:50 +02: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 Makefile: Avoid sanitizing PATH on non-FreeBSD systems 2023-01-31 01:46:18 +00:00
Makefile.inc1 Makefile.inc1: Print the right PATH for missing install tool error 2023-01-31 10:44:19 +01:00
Makefile.libcompat Prefer MK_SSP=no to SSP_CFLAGS= 2021-08-11 13:56:28 -03:00
Makefile.sys.inc
ObsoleteFiles.inc rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
README.md hier(7): remove text describing /usr/src layout 2022-12-05 12:37:07 -04:00
RELNOTES Note upgrade to sendmail 8.17.1 2023-02-01 02:48:05 +00:00
UPDATING Update in preparation for 13.2-RELEASE 2023-04-06 17:03:18 -07: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* 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.