Commit graph

22863 commits

Author SHA1 Message Date
Graham Percival
2878d99dfc manuals: Misc macro typos
These were reported by `mandoc -T lint` as
    ERROR: skipping unknown macro
When these pages were rendered with `man`, the "unknown macro" meant
that the entire line was omitted from the output.

Obvious typos in:
lib/libsys/swapon.2
lib/libsys/procctl.2
share/man/man9/firmware.9

lib/libcasper/services/cap_net/cap_net.3: 'mode' describes a function
    argument.

lib/libsys/statfs.2: there's no .Tm command ("trademark?"), and
    .Tn ("tradename") is deprecated, so remove the macro entirely.

usr.sbin/mfiutil/mfiutil.8: man was interpreting '/dev/' as a macro
    (which it didn't recognize).

share/man/man4/qat.4: same issue as above, but with '0'.  In this case,
    given the context of the previous line, rewriting as "Value '0'"
    seemed more appropriate.

usr.sbin/mlx5tool/mlx5tool.8: typo in .Xr

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Sponsored by:	Tarsnap Backup Inc.
Reviewed by:	concussious, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1417
2024-09-21 05:25:15 -06:00
Mateusz Piotrowski
9dc67a7065 rc.8: Remove false information about rc.d/local
It does not handle scripts in /usr/local/etc/rc.d/. Instead, it takes
care of /etc/rc.local and /etc/rc.shutdown.local.

MFC after:	2 weeks
2024-09-20 19:28:59 +01:00
Ahmad Khalifa
fe3f792f9a Add build option for the ia32 loader
In preparation for supporting 64-bit machines with 32-bit UEFI firmware,
add a build option for compiling the ia32 loader. Currently unused.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098
2024-09-20 08:45:05 -06:00
Mark Johnston
0abe2d3903 agp.4: Add a deprecation notice to the man page
The driver is giant-locked and thus already prints a deprecation warning
when attaching.  The device file interface was broken in 14.0 and 14.1,
see commit 12500c1428, but it took a very long time for anyone to
notice, and in that case it was only because of some code which probes
all device files.

Relnotes:	yes
Reviewed by:	imp, jhb, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D46542
2024-09-20 12:24:34 +00:00
Kristof Provost
f3ab00c2b6 pf: add a new log opt PF_LOG_MATCHES
forces logging on all subsequent matching rules
new log opt "matches"
awesome for debugging, a rule like
match log(matches) from $testbox
will show you exactly which subsequent rules match on that packet
real ok theo assumed oks ryan & dlg bikeshedding many

Obtained from:	OpenBSD, henning <henning@openbsd.org>, 1603e01ae4
Obtained from:	OpenBSD, henning <henning@openbsd.org>, f496e91672
Obtained from:	OpenBSD, henning <henning@openbsd.org>, 07481a9fee
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46588
2024-09-19 22:20:13 +02:00
Kristof Provost
e80f2a1087 pf.conf.5: document received-on
Reviewed by:	zlei
Obtained from:	OpenBSD, dlg <dlg@openbsd.org>, 456093dddc
Obtained from:	OpenBSD, jmc <jmc@openbsd.org>, 2bf0158fa8
Obtained from:	OpenBSD, deraadt <deraadt@openbsd.org>, be785dc6e2
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46579
2024-09-16 13:48:40 +02:00
Colin Percival
0a5443da81 man4: Add a comment about Hardware Notes
The Hardware Notes for each release are generated automatically from a
template file and the HARDWARE sections of driver man pages.  When man
pages for new drivers are added here, they should usually be added to
the release notes template file.

Suggested by:	bz
Sponsored by:	Amazon
2024-09-14 12:23:31 -07:00
Mark Johnston
339a1977c3 pf: Add a sysctl to limit work done for rdr source port rewriting
It was pointed out that the current approach of exhaustively searching
for a free source port might be very time consuming.  Limit the amount
of work that we might do before giving up.

Reviewed by:	kp
Reported by:	Eirik Øverby <ltning-freebsd@anduin.net>
MFC after:	3 months
Sponsored by:	Klara, Inc.
Sponsored by:	Modirum
Differential Revision:	https://reviews.freebsd.org/D46495
2024-09-10 14:58:19 +00:00
Mark Johnston
a6c8ab4f45 src.conf.5: Regenerate 2024-09-07 14:44:51 +00:00
Mark Johnston
24affded3d src.conf: Add a MK_ZFS_TESTS knob
The in-tree ZFS test suite is somewhat outdated and I see a number of
failures there.  I tend to think that we want to integrate the OpenZFS
test suite somehow, replacing the legacy one, though it's also possible
to run that as a separate test suite.

In any case, if one wants to run the OpenZFS test suite separately, it's
useful to be able to disable installation of the legacy ZFS test suite,
so let's provide a src.conf option to do that.

Reviewed by:	asomers
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D46476
2024-09-07 14:36:28 +00:00
Tom Hukins
5e6bef460d Fix "version introduced" in two manual pages
Signed-off-by: Tom Hukins <tom@FreeBSD.org>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1385
2024-09-06 12:34:33 -06:00
Alexander Ziaee
4c72525953 ure.4: description consistencies + tag spdx
+ consistent document description languague with other USB-BaseT drivers
+ mention newly added adapters from 6ea4d9
+ attempt to mention rgephy(4) phys feed into ure interfaces

Fixes:		6ea4d9 (Move RTL8156 from cdce(4) to ure(4))
MFC after:	3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1384
2024-09-06 12:34:33 -06:00
Alexander Ziaee
7e3b6b249f diskless.8: show in apropos pxe + tag SPDX
MFC after:	3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1378
2024-09-06 12:34:32 -06:00
Joshua Rogers
62cf43dda8 wsp: Improve multi-finger touchpad usage and allow more configurations
This patch allows scrolling with multiple fingers simultaneously, in
line with how wsp trackpads function on MacOS.

Two new tunables are added: hw.usb.wsp.max_finger_area and
hw.usb.wsp.max_double_tap_distance.

max_finger_area defines the maximum size which the driver registered an
object on trackpad as a finger.
Previously, this value was hardcoded as 1200, which was too low to
register thumb-clicks.

max_double_tap_distance defines the maximum distance between two
fingers which will register as a double-click.

Signed-off-by: Joshua Rogers <Joshua@Joshua.Hu>
Reviewed by: imp, wulf
Pull Request: https://github.com/freebsd/freebsd-src/pull/1365
2024-09-06 12:34:31 -06:00
Joshua Rogers
7b984d5043 wsp: Allow the trackpad to be used after a partially unreleased click.
This provides functionality for a click which is partially unreleased
and then allows the user to continue moving the mousepad as if were not
invoked as a full click

Signed-off-by: Joshua Rogers <Joshua@Joshua.Hu>
Reviewed by: imp, wulf
Pull Request: https://github.com/freebsd/freebsd-src/pull/1365
2024-09-06 12:34:31 -06:00
Tom Jones
390dc369ef pf: Add support for endpoint independent NAT bindings for UDP
With Endpoint Independent NAT bindings for UDP flows from a NATed source
address are always mapped to the same ip:port pair on the NAT router.
This allows a client to connect to multiple external servers while
appearing as the same host and enables NAT traversal without requiring
the client to use a middlebox traversal protocol such as STUN or TURN.

Introduce the 'endpoint-independent' option to NAT rules to allow
configuration of endpoint independent without effecting existing
deployments.

This change satisfies REQ 1 and 3 of RFC 4787 also known as 'full cone'
NAT.

Using Endpoint Independent NAT changes NAT exhaustion behaviour it does
not introduce any additional security considerations compared to other
forms of NAT.

PR:             219803
Co-authored-by: Damjan Jovanovic <damjan.jov@gmail.com>
Co-authored-by: Naman Sood <mail@nsood.in>
Reviewed-by:	kp
Sponsored-by:   Tailscale
Sponsored-by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D11137
2024-09-06 13:48:04 +01:00
Kristof Provost
a9ac25d65f pf.4: document missing sysctls
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46510
2024-09-05 09:38:11 +02:00
Tom Hukins
9a3fa77585 vale(4): refer to the valectl(8) management tool
Signed-off-by:	Tom Hukins <tom@FreeBSD.org>
Reviewed by:	imp, mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1369
2024-08-30 16:39:56 -03:00
Jose Luis Duran
973bbdab47 mk: Add a BTI-report linker feature
Add support for specifying how to report the missing Branch Target
Identification (BTI) linker feature on AArch64.

For:

Kernel:    bti-report on when the linker supports it
Userspace: bti-report on when the linker supports it and
           BTI_REPORT_ERROR is defined

Fixes:	43e8849bc2 ("conf: Enable BTI checking in the arm64 kernel")
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1393
2024-08-30 16:03:17 +00:00
Igor Ostapenko
033f223666 committers-src: Add igoro@ with markj@ and kp@ mentors
Approved by:	markj (mentor), kp (mentor)
2024-08-27 00:52:28 +00:00
Christos Margiolis
7ae4868a9a sound examples: Delete stale ossinit.h file
Fixes:		3decd659a788("sound examples: Simplify audio example")
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
2024-08-24 15:16:21 +03:00
Christos Margiolis
6747b1a821 sound examples: Move MIDI example out of OSS directory
This example is not related to OSS.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, meka_tilda.center
Differential Revision:	https://reviews.freebsd.org/D46308
2024-08-24 15:07:49 +03:00
Christos Margiolis
3decd659a7 sound examples: Simplify audio example
- Merge ossinit.h and basic.c.
- Rename basic.c to audio.c.
- Use err(3) instead of fprintf(3) + exit(3).
- Some style(9) improvements.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D46307
2024-08-24 15:07:45 +03:00
Christos Margiolis
0ca4d5d820 sound examples: Simplify MIDI example
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, emaste
Differential Revision:	https://reviews.freebsd.org/D46306
2024-08-24 15:07:40 +03:00
Maxim Konovalov
d399c791b2 bsd-family-tree: NetBSD 8.3 added
PR:	280983
2024-08-22 00:29:36 +00:00
Ed Maste
aa0bc761d2 bsd.symver.mk: pass $CFLAGS to $CPP invocation
This allows us to support symbols optionally available based on
configuration, not just on compiler built-in #defines.

Reviewed by:	brooks, jrtc27
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45346
2024-08-20 21:17:52 -04:00
Wolfram Schneider
b49aec04f0 bsd-family-tree: fix macOS 11 release date 2024-08-20 14:36:20 +00:00
Wolfram Schneider
d4a4d1e742 bsd-family-tree: shorter URLs 2024-08-20 13:29:18 +00:00
Wolfram Schneider
d1e78fbd4a bsd-family-tree: add NetBSD 9.4 2024-08-20 13:26:46 +00:00
John Baldwin
0a5996443b src.conf.5: Fix spelling typo
Sponsored by:	AFRL, DARPA
2024-08-20 07:54:12 -04:00
Wolfram Schneider
4132c4be4c bsd-family-tree: add FreeBSD Documentation Archive 2024-08-19 19:40:34 +00:00
Wolfram Schneider
2a91649947 bsd-family-tree: shorter URL for FreeBSD manual pages 2024-08-19 19:32:51 +00:00
Baptiste Daroussin
3cd90cb66d usb_vendors: update to 2024.07.04 2024-08-19 18:11:41 +02:00
Baptiste Daroussin
b9d1249b5b pci_vendors: update to 2024.06.23 2024-08-19 18:10:55 +02:00
Mark Johnston
9897a66923 pf: Let rdr rules modify the src port if doing so would avoid a conflict
If NAT rules cause inbound connections to different external IPs to be
mapped to the same internal IP, and some application uses the same
source port for multiple such connections, rdr translation may result in
conflicts that cause some of the connections to be dropped.

Address this by letting rdr rules detect state conflicts and modulate
the source port to avoid them.

Reviewed by:	kp, allanjude
MFC after:	3 months
Sponsored by:	Klara, Inc.
Sponsored by:	Modirum
Differential Revision:	https://reviews.freebsd.org/D44488
2024-08-19 14:37:27 +00:00
Mark Johnston
1d26746cfd build.7: Document the packages target
Reviewed by:	manu, emaste
MFC after:	1 week
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D46286
2024-08-19 14:37:27 +00:00
Ed Maste
d1daec3d35 linux.4: improve the path translation clarificiation
As suggested by martin@lispworks.com, refer to the compat path
explicitly, and correct an existing grammaro.

PR:		277804
Fixes: f66e71fa78 ("linux.4: clarify path translation")
Sponsored by:	The FreeBSD Foundation
2024-08-19 10:29:19 -04:00
Ed Maste
f66e71fa78 linux.4: clarify path translation
Try to be a little more explicit about the path translation mechanism
accessing /compat/linux/<path> then falling back to /<path>.

PR:		277804
Reviewed by:	fernape
Sponsored by:	The FreeBSD Foundation
2024-08-19 10:14:28 -04:00
Igor Ostapenko
8aaffd78c0 Add dummymbuf module for testing purposes
Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D45928
2024-08-15 09:28:13 +02:00
Wolfram Schneider
c9e8a2cdba ports(7): searchable index of all ports is at ports.freebsd.org
PR: 280816
2024-08-14 14:53:38 +00:00
Li-Wen Hsu
6ea4d95f6c
Move support of Realtek 8156/8156B from cdce(4) to ure(4)
Reviewed by:	kevlo, imp, hrs
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D45088
2024-08-12 14:56:28 +08:00
Isaac Cilia Attard
e4482bfde9 dhclient: Update rc.conf.5 with dhclient_arpwait
Add new dhclient_arpwait option to rc.conf.5, with information about
what it does, and cases in which it could be disabled.

Sponsored by:	Google LLC (GSoC 2024)
Signed-off-by:	Isaac Cilia Attard <icattard@FreeBSD.org>
MFC after:	10 days
Reviwed by:	cperciva, brooks, Tom Hukins, Alexander Ziaee
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1368
2024-08-09 14:49:54 -07:00
Warner Losh
9ed58aa60f src.conf.5: Regen after ddcd3b606c
Sponsored by:		Netflix
2024-08-06 17:42:52 -06:00
Warner Losh
20d35d5817 loader: Add WITH/WITHOUT_LOADER_PXEBOOT build option
Make it possible to disable pxeboot. This loader will fail to build when
it's too large. When /boot/loader needs to be larger like that, this
options will disable a component whose build will fail. It is an explicit
option rather than implicit when things are too large to force the user to
make the explicit tradeoffs rather than wonder why they have a stale pxeboot
or other odd failure mode.

MFC After:		3 days
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D46212
2024-08-06 17:22:36 -06:00
David E. O'Brien
1d9b60bf4d SEE ALSO lagg(4)
Add a reference in 'man 4 ng_one2many' to lagg(4) since
its functionality is so similar.
2024-08-05 20:07:55 -07:00
Bojan Novković
31cc65708c man9: Document M_NEVERFREED and VM_ALLOC_NOFREE
Reviewed by:	alc, kib, markj
Differential Revision:	https://reviews.freebsd.org/D46198
2024-08-05 18:41:22 +02:00
Michael Tuexen
fd53594ae7 tcp: retire sysctl variable functions_inherit_listen_socket_stack
The default was true and it is consistent to inherit the TCP function
block from the listener as most of the other parameters.

Reviewed by:		Peter Lei, cc
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D46141
2024-08-03 22:52:17 +02:00
Maxim Konovalov
503b7f94d8 tree.3: the example code fixed
PR:		280566
Reviewed by:	dougm
2024-08-03 19:45:47 +00:00
Sergey A. Osokin
2b4aa2816c bsd-family-tree: add FreeBSD 14.1
MFC after:	3 days
2024-08-03 11:48:55 -04:00
Simon J. Gerraty
b77f618568 Add examples to veriexec(8)
Add missing flags to veriexec(8) as well as some examples to
help explain usage.

Also add veriexec.4

Sponsored by:	Juniper Networks, Inc.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D46207
2024-08-01 14:59:52 -07:00