FreeBSD/src 081218blib/libc/posix1e mac_text.3 mac_free.3

libc: fix description issues in mac_text(3)/mac_free(3)

mac_text(3) as-written would seem to indicate that a `mac_t` should be
freed with free(3), but this isn't the case.  One can derive from
context from when the change was introduced and COMPATIBILITY that this
was intended to talk about *text in `mac_to_text`, so move the comment
there.

PR:             179832
Co-authored-by: Priit Järv <priit cc ttu ee>
MFC after:      3 days
DeltaFile
+5-3lib/libc/posix1e/mac_text.3
+2-2lib/libc/posix1e/mac_free.3
+7-52 files

FreeBSD/src a31d432sbin/pfctl parse.y

pfctl(8): Fix a typo in an error message

- s/addresess/addresses/

MFC after:      1 week
DeltaFile
+1-1sbin/pfctl/parse.y
+1-11 files

FreeBSD/src 44004bcsbin/nvmecontrol perftest.c

nvmecontrol(8): Fix a typo in an error message

- s/speciifed/specified/

MFC after:      1 week
DeltaFile
+1-1sbin/nvmecontrol/perftest.c
+1-11 files

FreeBSD/src 841cc68sys/dev/sound/pcm dsp.c

sound: Improve dsp_cdevsw style

Sponsored by:   The FreeBSD Foundation
MFC after:      4 days

(cherry picked from commit 4bab868a122b9c853865c8d89886d9354d0f242b)
DeltaFile
+9-9sys/dev/sound/pcm/dsp.c
+9-91 files

FreeBSD/src 8ea5c20share/man/man4 snd_dummy.4, sys/dev/sound dummy.c

snd_dummy: Create device alias

Sponsored by:   The FreeBSD Foundation
MFC after:      4 days
Reviewed by:    emaste, ziaee
Differential Revision:  https://reviews.freebsd.org/D53237

(cherry picked from commit 2693d6c7c9cab28967de13233342fcf9281e5636)
DeltaFile
+11-1share/man/man4/snd_dummy.4
+6-0sys/dev/sound/dummy.c
+17-12 files

FreeBSD/src ae45d61share/man/man4 snd_dummy.4

snd_dummy.4: Use sound(4) instead of PCM

Sponsored by:   The FreeBSD Foundation
MFC after:      4 days
Reviewed by:    ziaee
Differential Revision:  https://reviews.freebsd.org/D53257

(cherry picked from commit d6432907f6120ff4993de7352ca62f6986fb910c)
DeltaFile
+3-2share/man/man4/snd_dummy.4
+3-21 files

FreeBSD/src e015e07usr.sbin/sndctl sndctl.c

sndctl(8): Modify vchans only on supported directions

Currently mod_play_vchans() and mod_rec_vchans() run unconditionally,
even if the direction (playback, recording) is not supported by the
device. This results in the "autoconv" (see mod_autoconv()) control
failing when run on simplex devices, because we'll be trying to modify
vchans on an unsupported direction.

Test whether the direction is supported and silently move on if it
isn't.

Sponsored by:   The FreeBSD Foundation
MFC after:      4 days
Differential Revision:  https://reviews.freebsd.org/D53233

(cherry picked from commit 70b34fbdbea13c006a724844caa53f59e0e53bd0)
DeltaFile
+4-0usr.sbin/sndctl/sndctl.c
+4-01 files

FreeBSD/src c10317busr.bin/sockstat main.c

sockstat: add support for UDP-Lite endpoints

With this patch UDP-Lite endpoints are also show per default.

Reviewed by:            Peter Lei, Nick Banks
Relnotes:               yes
Differential Revision:  https://reviews.freebsd.org/D53230

(cherry picked from commit f48c6390dd5a01ab2b33f26ee50f4e8cbe8ae737)
DeltaFile
+7-1usr.bin/sockstat/main.c
+7-11 files

FreeBSD/src 372b604usr.bin/netstat inet.c main.c

netstat: add support for UDP-Lite endpoints

With this patch UDP-Lite endpoints are also shown per default.

Reviewed by:            Nick Banks
Differential Revision:  https://reviews.freebsd.org/D53252

(cherry picked from commit c2b08c13c20d44c3368bcbf738624e5fac461314)
DeltaFile
+26-11usr.bin/netstat/inet.c
+4-0usr.bin/netstat/main.c
+30-112 files

FreeBSD/src da7a90fsys/netinet udp_usrreq.c in_proto.c

UDP-Lite: export pcblist via sysctl interface

Export the list of pcbs for UDP-Lite to be consumed by sockstat and
netstat.

Reviewed by:            Peter Lei, Nick Banks
Differential Revision:  https://reviews.freebsd.org/D53229

(cherry picked from commit be93b27483680c7e741b1627cc96a131bc99436c)
DeltaFile
+5-0sys/netinet/udp_usrreq.c
+2-0sys/netinet/in_proto.c
+1-0sys/netinet/udp_var.h
+8-03 files

FreeBSD/src c566953sys/netinet tcp_subr.c

tcp over udp: don't copy more bytes than avaiable

When copying the data in the first mbuf to get rid of the UDP
header, use the correct length. It was copying too much (8 bytes,
the length of the UDP header).
This only applies to handling TCP over UDP packets. The support for
TCP over UDP is disabled by default.

Reported by:            jtl
Reviewed by:            Peter Lei
Sponsored by:           Netflix, Inc.

(cherry picked from commit bfda98a42027417b2fa74738c63327532013e93b)
DeltaFile
+1-1sys/netinet/tcp_subr.c
+1-11 files

FreeBSD/src fd6330asys/netinet tcp_syncache.c

tcp: fix typo in comment

Reviewed by:    tuexen
Sponsored by:   Netflix, Inc.

(cherry picked from commit daac364e611532c7bfd4bb20f9fea8d365496aa1)
DeltaFile
+1-1sys/netinet/tcp_syncache.c
+1-11 files

FreeBSD/src 72a9bfcshare/man/man4 mac_do.4

mac_do.4: Fix a typo in the manual page

- s/occurences/occurrences/

MFC after:      5 days
DeltaFile
+1-1share/man/man4/mac_do.4
+1-11 files

FreeBSD/src 7c8c5acshare/man/man4 iwlwifi.4

iwlwifi.4: Fix a typo in the manual page

- s/incosistent/inconsistent/

MFC after:      5 days
DeltaFile
+1-1share/man/man4/iwlwifi.4
+1-11 files

FreeBSD/src 5a739b7share/man/man4 p9fs.4

p9fs.4: Fix a typo in the manual page

- s/recommented/recommended/

MFC after:      5 days
DeltaFile
+1-1share/man/man4/p9fs.4
+1-11 files

FreeBSD/src 8c48902share/man/man7 build.7

build.7 Fix a typo in the manual page

- s/envirnoment/environment/

While here fix a .Xr macro.

MFC after:      5 days
DeltaFile
+2-2share/man/man7/build.7
+2-21 files

FreeBSD/src 66923acshare/man/man7 arch.7

arch.7: Fix a typo in the manual page

- s/dereferencable/dereferenceable/

MFC after:      5 days
DeltaFile
+1-1share/man/man7/arch.7
+1-11 files

FreeBSD/src 189cec2share/man/man5 pf.conf.5

pf.conf.5: Fix a typo in the manual page

- s/opion/option/

MFC after:      5 days
DeltaFile
+1-1share/man/man5/pf.conf.5
+1-11 files

FreeBSD/src 1258441share/man/man8 rc.subr.8

rc.subr.8: Fix a typo in the manual page

- s/derrived/derived/

MFC after:      5 days
DeltaFile
+1-1share/man/man8/rc.subr.8
+1-11 files

FreeBSD/src dc9fd0fshare/man/man4 bce.4

bce.4: Fix a typo in the manual page

- s/activitiy/activity/

MFC after:      5 days
DeltaFile
+1-1share/man/man4/bce.4
+1-11 files

FreeBSD/src e47c294share/man/man4 acpi_battery.4

acpi_battery.4: Fix a typo in the manual page

- s/rechargable/rechargeable/

MFC after:      5 days
DeltaFile
+2-2share/man/man4/acpi_battery.4
+2-21 files

FreeBSD/src 76b4418share/man/man4 ahc.4

ahc.4: Fix a typo in the manual page

- s/configued/configured/

MFC after:      5 days
DeltaFile
+1-1share/man/man4/ahc.4
+1-11 files

FreeBSD/src ca7debashare/man/man5 rc.conf.5

rc.conf.5: Fix a typo in the manual page

- s/overriden/overridden/
- s/explicitely/explicitly/

MFC after:      5 days
DeltaFile
+2-2share/man/man5/rc.conf.5
+2-21 files

FreeBSD/src 69fbd06share/man/man8 debug.sh.8

debug.sh.8: Fix a typo in the manual page

- s/noticable/noticeable/
- s/compatability/compatibility/

MFC after:      5 days
DeltaFile
+2-2share/man/man8/debug.sh.8
+2-21 files

FreeBSD/src f5a3d79share/man/man3 queue.3

queue.3: Fix a typo in the manual page

- s/overriden/overridden/

MFC after:      5 days
DeltaFile
+3-3share/man/man3/queue.3
+3-31 files

FreeBSD/src 1447a22share/man/man3 siginfo.3

siginfo.3: Fix a typo in the manual page

- s/Sychronous/Synchronous/

MFC after:      5 days
DeltaFile
+1-1share/man/man3/siginfo.3
+1-11 files

FreeBSD/src ee363e1sys/modules/thunderbolt Makefile

thunderbolt: Fix stale symlink for opt_acpi_wmi.h

Reported by:    wosch
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1sys/modules/thunderbolt/Makefile
+1-11 files

FreeBSD/src f793705usr.sbin/arp arp.c arp_netlink.c

arp: fix adding proxy entries for P2P interfaces

The old rtsock implementation used in-kernel workaround to do so.
When route to specified destination address used P2P interface, the
kernel did the search with ifa_ifwithnet() for most suitable network
and then add proxy entry to this interface.

Use similar approach with netlink implementation. We already have
get_ether_addr() function that does almost the same thing as
ifa_ifwithnet(). Use it when we find that destination route uses
P2P interface and then try to guess suitable interface. This should
fix the use of netlink-based arp(8) in mpd5.

Rename get_ether_addr() to get_ifinfo(), since now it is used to find
only ifindex in case when hwaddr is specified by user.
Also make set_nl() and delete_nl() prototype similar to rtsock.
And allow '-i' to be used with '-S', since we already allow the same
for '-s'.


    [6 lines not shown]
DeltaFile
+20-12usr.sbin/arp/arp.c
+16-4usr.sbin/arp/arp_netlink.c
+4-5usr.sbin/arp/arp.h
+40-213 files

FreeBSD/src 9e829d0usr.sbin/arp arp.c arp_netlink.c

arp: fix adding proxy entries for P2P interfaces

The old rtsock implementation used in-kernel workaround to do so.
When route to specified destination address used P2P interface, the
kernel did the search with ifa_ifwithnet() for most suitable network
and then add proxy entry to this interface.

Use similar approach with netlink implementation. We already have
get_ether_addr() function that does almost the same thing as
ifa_ifwithnet(). Use it when we find that destination route uses
P2P interface and then try to guess suitable interface. This should
fix the use of netlink-based arp(8) in mpd5.

Rename get_ether_addr() to get_ifinfo(), since now it is used to find
only ifindex in case when hwaddr is specified by user.
Also make set_nl() and delete_nl() prototype similar to rtsock.
And allow '-i' to be used with '-S', since we already allow the same
for '-s'.


    [6 lines not shown]
DeltaFile
+20-12usr.sbin/arp/arp.c
+16-4usr.sbin/arp/arp_netlink.c
+4-5usr.sbin/arp/arp.h
+40-213 files

FreeBSD/src 42cf7ealib/libc/tests/net inet_net_test.cc

inet_net_test: Use int to hold expected return values from inet_net_pton

GCC warns about the sign mismatch in comparisons:

lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_inet4::body() const':
lib/libc/tests/net/inet_net_test.cc:86:17: error: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Werror=sign-compare]
   86 |                 ATF_REQUIRE_EQ(bits, addr.bits);
      |                 ^~~~~~~~~~~~~~
lib/libc/tests/net/inet_net_test.cc: In member function 'virtual void {anonymous}::atfu_tc_inet_net_inet6::body() const':
lib/libc/tests/net/inet_net_test.cc:205:17: error: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Werror=sign-compare]
  205 |                 ATF_REQUIRE_EQ(bits, addr.bits);
      |                 ^~~~~~~~~~~~~~

Approved by:    re (cperciva)
Fixes:          8f4a0d2f7b96 ("libc: Import OpenBSD's inet_net_{ntop,pton}")
(cherry picked from commit e1aeb58cbbc3839db93ec38ce491b7b9383d5649)
(cherry picked from commit 7ffd190ae9c82e4359d8a6f6ae2d1b82e8eb6453)
DeltaFile
+2-2lib/libc/tests/net/inet_net_test.cc
+2-21 files