Commit Graph

297336 Commits

Author SHA1 Message Date
charlotte b65d1af69b db(1): Don't lie in the usage message re: `-q` 2022-08-10 00:28:00 +00:00
charlotte f5524c7c97 Add a TNF copyright statement in t_mixerctl.sh 2022-08-10 00:14:22 +00:00
sekiya e40fc052ed Turn off AWIN_GMAC_MAC_CONF_ACS, so that all received packets retain FCS
bytes.

ether_input() can now trust M_HASFCS to accurately represent the packet
contents.

Discussed on tech-net@
2022-08-09 23:58:46 +00:00
pgoyette a52ee8aacd Now that UFS_DIRHASH is default for biuilt-in file system modules, we
need to update the loadable module builds, too.
2022-08-09 20:05:14 +00:00
riastradh af48a25eaf virtio(4): Move comment for virtio_vq_intr.
No functional change intended.
2022-08-09 12:42:05 +00:00
wiz 1bfd10bdd7 Sync usage with man page. 2022-08-09 08:14:03 +00:00
wiz 3ce29a4c09 Sort options, fix macro, add RCS Id. 2022-08-09 08:13:56 +00:00
rin 5ddd3f22f6 Switch from ``(1 << depth) color'' to ``(depth)-bpp color'' in
attach message.

For depth == 32, fix ``0 color'', and prevent ambiguous ``16Mi color''.

I don't know whether there is 24-bpp graphic card for mac68k or not,
although.
2022-08-09 08:09:44 +00:00
knakahara 6fda1d8cb0 Add sysctl entry to improve interconnectivity to some VPN appliances, pointed out by seil-team@IIJ.
If we want to allow different identifier types on IDii and IDir, set
net.key.allow_different_idtype=1.  Default(=0) is the same as before.
2022-08-09 08:03:22 +00:00
charlotte 28f9868e75 PR bin/51878: db(1)'s man page to describe the actual behavior of '-q' 2022-08-09 07:56:19 +00:00
kre 11df5b7f95 Minor alteration to the description of what df -b does (plus tiny reformat) 2022-08-09 07:39:21 +00:00
wiz 03f6c6cc27 CHANGES: update clone entry for later changes 2022-08-09 06:57:30 +00:00
riastradh 9bb32e73c0 rasctl(2): Avoid arithmetic overflow.
Reported-by: syzbot+40b6085d020ae47a6997@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=8fb9b5dee9b056e4f8ad3b937dc5be1296608c5f
2022-08-08 22:31:45 +00:00
nia c787479c8e Capitalize POSIX. 2022-08-08 20:47:00 +00:00
nia a9da9619e3 doc: Recent changes from several developers 2022-08-08 20:43:31 +00:00
rillig 73c462d19e tests/make: document history of bug in parsing unbalanced expressions
The bug was introduced in var.c 1.323, which merged two flags that
sounded as if they had been exact opposites: VAR_NOSUBST (later named
VARE_NOSUBST) and VARE_WANTRES.

Before that commit, the branch where make only counted braces instead of
properly parsing the nested expression was only taken in the modifiers
':@var@body@' and '::=', but not in ':S' and ':C'.

After merging the two flags, the modifier parts of ':S' and ':C' had to
be balanced as well, otherwise parsing would fail in cases where the
expression was only parsed, not evaluated.
2022-08-08 19:53:28 +00:00
rillig e96a2ad4f2 sys/endian.h: fix typo in comment
Came here because lint complained about non-constant case expressions in
sys/arch/xen/xen/xennet_checksum.c, line 111 and 122, which read:

	case htons(ETHERTYPE_IP):
	case htons(ETHERTYPE_IPV6):

POSIX says:

	On some implementations, these functions are defined as macros.

NetBSD implements these functions as macros, and on little-endian platforms,
as well as in lint mode, the macros expand to function calls.
2022-08-08 18:55:18 +00:00
rillig a3bba8b372 make: fix parsing of modifiers containing unbalanced subexpressions 2022-08-08 18:23:30 +00:00
kre 2c3bf36b92 Add 4 new flags:
-b (from FreeBSD) - set blocksize to blocks (512 bytes)
		(overrides a contrary setting in BLOCKSIZE)
	-H (from FreeBSD and Linux): -h using SI units (powers of 10).  Ugh.
	-N suppress the header line (except with -P which requires it).
	-f show only free space (or inodes) in a minimal format (implies -N)
		(that is, with one file[system] specified, print 1 number only)
		With -c, show only the total.
		Intended to be useful for scripting (aka, I needed it.)

While here, improve the usage message (group options where they apply,
there is no reason, for example, that -g should be shown differently
to -k -m ..., and those options aren't at all useful with -G)

Update the man page to match.
2022-08-08 16:50:35 +00:00
msaitoh 3bc64ac116 To avoid releasing mutex temporally, use new wm_set_mdio_slow_mode_hv_locked(). 2022-08-08 08:55:42 +00:00
msaitoh 745be0b4ea Consistency use -1 instead of 1 for some error code. Advised by knakahara. 2022-08-08 08:52:36 +00:00
msaitoh b863452eb4 Pass an error code correctly if phy.acquire() failed.
This is not a real bug because the return value is not used.
2022-08-08 07:49:18 +00:00
msaitoh 202df6e5ad Pass an error code to the upper layer instead of -1. Advised by knakahara. 2022-08-08 07:44:40 +00:00
msaitoh 425938c452 Modify debug messages so that we can determine where it happened. 2022-08-08 05:45:29 +00:00
riastradh 86af3c87c3 proplib: Allocate sizeof(*ctx), not sizeof(struct ...).
No functional change intended.
2022-08-07 23:49:46 +00:00
riastradh 552e8ffbc0 usbnet(9): Simplify assertions now that urndis(4) is less sketchy. 2022-08-07 23:49:30 +00:00
riastradh dead83d64a bsd.kmodule.mk: Build modules with KDTRACE_HOOKS if MKDTRACE=yes. 2022-08-07 23:42:09 +00:00
riastradh 24b57760ba Revert "module(9): Disable module autounload by default."
Needs more discussion.  Maybe better with an opt-in mechanism to
replace the opt-out mechanism than by disabling it altogether by
default.
2022-08-07 23:03:59 +00:00
ast 83eeb4a5de Update what has been released by the BSD family during the last
two years; that is, since May 2020 after NetBSD 8.2 was registered
in this file.

Merge some additional information from the FreeBSD and DragonFly
versions that had several updates during this time. Added OpenBSD
and macos release dates for the same interval.

Where some release dates don't match exactly (release vs. announce
date) in the various bsd-family-tree files, assume the respective
flavor to be authoritive for its dates in this file.

Reviewed by: Sergey A. Osokin <osa@NetBSD.org>
2022-08-07 22:43:28 +00:00
riastradh 91e1a37650 module(9): Disable module autounload by default.
I don't know why this was ever enabled by default; many modules are
still not safe to unload, let alone autounload.  If any autounload is
to happen by default, it should only be for modules that have opted
into it in some way after audit.
2022-08-07 21:17:18 +00:00
riastradh 81efaf9e90 dtrace_sdt: Register sdt providers and probes in loaded modules too. 2022-08-07 20:47:05 +00:00
riastradh 0109673287 module(9): Call callbacks in topological order on load.
They are called in reverse topological order on unload.

dtrace_sdt will rely on this soon to ensure provider definitions are
processed before their uses.

ok chs@
2022-08-07 20:44:39 +00:00
tsutsui 12c45423e9 Remove extra whitespaces added by an ancient stupid script. 2022-08-07 20:14:00 +00:00
jnemeth d416cacf63 note the release NetBSD 9.3 2022-08-07 19:37:15 +00:00
riastradh 3884380750 uirda(4): Unconditionally initializes mutexes and selq on attach.
We're going to unconditionally destroy them on detach.

Reported-by: syzbot+6b8aea3a51d8b1e5ab61@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=ec5ed628986cba5aab5705691596a2d27b0301fc
2022-08-07 11:25:32 +00:00
andvar 5a58ccfbec fix various typos in comments, documentation and messages.
mainly s/paramater/parameter/ and s/reduntant/redundant/.
2022-08-07 11:06:18 +00:00
andvar b117086304 fix some typos and grammar in comments. 2022-08-07 10:12:19 +00:00
andvar caf9551417 s/networkproccesor/network processor/ 2022-08-07 09:51:00 +00:00
andvar 7d2aa3077d fix typos in comments. 2022-08-07 09:37:46 +00:00
andvar ec52c87343 kill(1): s/proceses/processes/ 2022-08-07 09:36:55 +00:00
skrll 288cf70d48 Provide and use (when appropriate) a bge_free_jumbo_mem. 2022-08-07 08:37:48 +00:00
skrll f51d91299f Misc tidyup. NFC. 2022-08-07 08:26:18 +00:00
skrll bd61629612 Unwrap a long line and remove unecessary brackets. NFC. 2022-08-07 08:24:23 +00:00
skrll 17b9e4cecd Fix the KNF. oops. 2022-08-07 08:19:38 +00:00
skrll 21fc0c5d3a whitespace 2022-08-07 08:12:47 +00:00
skrll f7d71627fb KNF 2022-08-07 07:48:19 +00:00
rin eec9572cb1 Consistently use ntohs() instead of htons() when converting from
network to host byte order.

No binary changes both for big and little endian.
2022-08-07 05:51:55 +00:00
rin f9b4da04a6 Enable UFS_DIRHASH; this machine has 256MB RAM :) 2022-08-07 03:08:40 +00:00
simonb f59d02141e Regen. 2022-08-07 02:53:42 +00:00
simonb c7ae7f02a8 UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
  file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
  and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
2022-08-07 02:52:23 +00:00