OPNsense - FreeBSD source
Find a file
Ronald Klop cdc5c1db54 Teach if_smsc to get MAC from bootargs.
Some Raspberry Pi pass smsc95xx.macaddr=XX:XX:XX:XX:XX:XX as bootargs.
Use this if no ethernet address is found in an EEPROM.
As last resort fall back to ether_gen_addr() instead of random MAC.

(cherry picked from commit 3878bbf1bb9e68f8579b57cde7d4e5c77de93320)

if_smsc: fix build on armv6 & armv7

compile error was:
/usr/src/sys/dev/usb/net/if_smsc.c:1597:40: error: format specifies type 'unsigned long' but the argument has type 'ssize_t' (aka 'int') [-Werror,-Wformat]
                                "failed alloc for bootargs (%lu)", len);
                                                            ~~~    ^~~
                                                            %zd

(cherry picked from commit 8a0ee306227a17a998bdc7af2275fd94b9164342)

PR:	274092
Reported by:	Patrick M. Hausen (via ML)
Reviewed by:	imp, karels, zlei
Tested by:	Patrick M. Hausen
Approved by:	karels
Relnotes:	yes
Differential Revision: https://reviews.freebsd.org/D42463
2024-01-05 09:41:22 +01:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github Update bug_report.md 2023-11-11 10:52:45 +01:00
bin Remove $FreeBSD$: one-line nroff pattern 2023-09-06 08:05:09 +02:00
cddl Remove $FreeBSD$: one-line .c comment pattern 2023-09-06 07:59:08 +02:00
contrib compiler-rt: avoid segfaults when re-exec'ing with ASLR 2023-12-07 12:05:54 +01:00
crypto Implement "strict key exchange" in ssh and sshd. 2023-12-20 09:28:52 +01:00
etc rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
gnu Remove $FreeBSD$: two-line .h pattern 2023-09-06 07:57:18 +02:00
include Remove $FreeBSD$: one-line .c comment pattern 2023-09-06 07:59:08 +02:00
kerberos5 Remove $FreeBSD$: one-line .c comment pattern 2023-09-06 07:59:08 +02:00
lib libnetmap: better fix for port parsing failure 2023-12-01 08:19:49 +01:00
libexec rc: was missing a documentation update 2023-11-21 13:00:24 +01: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 dhclient: do not add 0.0.0.0 interface alias. 2023-11-22 08:24:18 +01:00
secure caroot: add new certs 2023-09-07 18:45:33 +02:00
share rc: was missing a documentation update 2023-11-21 13:00:24 +01:00
stand Purge more stray embedded $FreeBSD$ strings 2023-11-01 11:01:19 +01:00
sys Teach if_smsc to get MAC from bootargs. 2024-01-05 09:41:22 +01:00
targets Fix bootstrapping to actually build lldb-tblgen for later use 2021-09-07 13:08:18 +01:00
tests Remove $FreeBSD$: one-line .c comment pattern 2023-09-06 07:59:08 +02:00
tools Remove $FreeBSD$: one-line nroff pattern 2023-09-06 08:05:09 +02:00
usr.bin Purge more stray embedded $FreeBSD$ strings 2023-11-01 11:01:19 +01:00
usr.sbin freebsd-update: create deep BEs by default 2023-11-08 08:33:10 +01: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: 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 AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
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 Add an UPDATING entry and bump the branch version. 2023-12-20 09:28:54 +01: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.