Commit Graph

11943 Commits

Author SHA1 Message Date
martin
f4ed83519c Revert previous - local merge mishap 2018-11-05 10:27:06 +00:00
wiz
4736bd2c39 Sort options. 2018-11-05 09:22:30 +00:00
martin
4a0babdb00 Make it compilable with gcc 2018-11-05 08:34:20 +00:00
msaitoh
755dd63262 Decode Boot Graghics Resource Table (BGRT). 2018-11-05 07:39:57 +00:00
roy
9adaa956c5 syslogd: allow the reporting of buffer overflows to be disabled.
This generally isn't a good thing, nothing should be discard silently.
However, for systems that don't want big syslogd buffers or are too slow
to log effectively this reporting can now be disabled.
2018-11-04 20:45:21 +00:00
roy
0402a70e1e syslogd: allow the receiving buffer size to be set.
This allows the admin to try and avoid buffer overflow when a log of
logging appears in bursts.
2018-11-04 20:23:08 +00:00
martin
eb0dcb1bc7 Remove "usage" translations - they never could be displayed as we only select
the language later.
Extend usage display a bit and sync with reality.
2018-11-03 18:30:00 +00:00
martin
13376b1dc9 Make the debug version compilable with modern gcc.
Do debugging for system(3) calls only when DEBUG_SYSTEM is defined.
2018-11-02 18:07:33 +00:00
msaitoh
055f8b85fb Decode CSRT (Core System Resources Table). 2018-11-01 03:08:46 +00:00
kre
d4305dc776 sysctl(KERN_BOPOTIME) started returning a struct timespec in 2009.
Update to match....    We're slow but we get there eventually!

NFC for any of these programs, struct timeval and struct timespec
are the same size, and only the tv_sec field of boottime is used,
and that's unchanged.
2018-10-30 21:15:09 +00:00
martin
290d09c518 Add support for MAKEDEV living in /etc instead of /dev, this is one of
the supported options when init(8) creates a union mounted tmpfs on /dev.
2018-10-26 18:06:34 +00:00
christos
d5a790ba35 add __RCSID 2018-10-19 22:51:13 +00:00
msaitoh
43a714dc69 Add GTDT and PPTT. 2018-10-19 05:04:45 +00:00
msaitoh
c26b2779fe Fix output of Cache type in PPTT. 2018-10-18 05:20:05 +00:00
msaitoh
bf819d34f8 Don't print X_PM_TMR_BLK if the address value is 0. 2018-10-18 05:04:44 +00:00
msaitoh
27cdf6cf05 Don't print PM_TMR_BLK if the value is 0 (see also acpi_timer.c rev. 1.23). 2018-10-18 04:52:00 +00:00
msaitoh
aba8816bd6 Decode Generic Timer Description Table(GTDT) and Processor Properties Topology
Table(PPTT). Cosmetic changes and fixes might be required. Testesd by jmcneill.
2018-10-18 04:29:44 +00:00
msaitoh
b04bf7f2c3 Print SPCR's Interface Type and ARMH GIC Interrupt Type. 2018-10-18 04:25:34 +00:00
jmcneill
43db5d20d4 FACS is optional if the HW_REDUCED_ACPI flag is set in the FADT. 2018-10-16 21:44:37 +00:00
jmcneill
d25cdfbd09 Add acpidump, amldb, and iasl to aarch64 build. 2018-10-14 13:36:32 +00:00
jmcneill
8ebf8cb05c getopt returns int, not char 2018-10-14 12:43:58 +00:00
wiz
f244ebf64d Sort options. 2018-10-07 20:30:50 +00:00
mlelstv
803c93c66f Add flag to enforce file I/O even when bmap/strategy would be possible.
This makes it easier to compare both modes, it also allows coherent
operation between vnd device and image file.
2018-10-07 11:51:26 +00:00
martin
0ef20e9266 Support sets in .tar.xz format 2018-10-06 18:45:37 +00:00
msaitoh
8b136ef70d Remove extra newline in SPMI table. 2018-10-05 05:09:31 +00:00
msaitoh
5073389c63 - Decode DMAR's ANDD (ACPI Name Space).
- Add X2APIC_MODE flag of DMAR. Note that Intel's VT-d's document says the
  flag's name is DMA_CTRL_PLATFORM_OPT_IN but actbl1.h says it's
  DMAR_X2APIC_MODE.
2018-10-03 09:52:59 +00:00
msaitoh
3de33cabd4 Add ACPI LPIT (Low Power Idle Table) from FreeBSD r336185. 2018-10-03 09:46:11 +00:00
rmind
39013e66c1 NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@ for extra testing.
2018-09-29 14:41:35 +00:00
wiz
1e55f34803 New sentence, new line. Use An/Mt. 2018-09-25 09:53:40 +00:00
maxv
6049b090a1 Remove the userland part of ISDN. The kernel part is untouched for now.
ipppctl was actually an exact copy of pppoectl; there is no functional
change in pppoectl in this commit.
2018-09-23 07:24:19 +00:00
kre
40b03336a1 Switch from getopt to getopts - and as part of that, update the usage,
and the man page, to reflect modern usage rather than some ancient style
that getopt[s] does not support (options, and their args when they exist)
always come before non-option agrs.

While here, update uses of test(1) to avoid obsolescent forms (and
even when still defined, prefer sh structures over test when possible).
2018-09-23 02:15:25 +00:00
uwe
97e384e7bd According to the grammar and examples the static table is defined with
"file" keyword, not "static".
2018-09-21 10:59:11 +00:00
uwe
6da1ab24a9 Improve markup. 2018-09-21 09:42:18 +00:00
maxv
62994698cf Wrap long lines, so that nothing overflows. 2018-09-21 07:22:26 +00:00
rin
c484ae3b93 Enable NOPARTMAN for install media. 2018-09-20 12:28:33 +00:00
rin
d1110cca13 Add NOPARTMAN compile-time option, which drops extended partitioning
support provided by partman.c. It reduces, e.g., about 30KB for
crunched binary in atari install floppy.

OK christos
2018-09-20 12:27:42 +00:00
maxv
657923ce43 Switch back to tabs, it was nicer this way. 2018-09-19 15:36:12 +00:00
maxv
9d7954dab6 Remove daic(4), it has never been functional.
ok martin@
2018-09-19 13:58:26 +00:00
tsutsui
53233017b7 Make sure to install a bootloader even on upgrade installation.
Fixes another part of port-sgimips/53583.
Should be pulled up (with rev 1.5) to netbsd-7 and netbsd-8.
2018-09-17 15:19:29 +00:00
martin
ad83f34c87 Now that the build cluster creates stable "latest" links, use them
as default for downloading sets.
2018-09-16 09:15:12 +00:00
jakllsch
bb72cd05aa make kernel-groveling crash(8) work on aarch64 2018-09-15 19:47:48 +00:00
martin
c42e76eb3d When not using the serial console while installing with sysinst,
switch all ports in /etc/ttys over to wsvt25.

For mixed setups that sometims do serial console and otherwise
frambuffer console, it would be better to leave console and constty as
vt100, but switch console to off and ttyE0 to on, but we do not want
to bother the user with tricky questions here and everyone switching
console types should have no problem changing this setup later,
or even deal with a serial console and TERM=wsvt25.
2018-09-15 18:04:21 +00:00
martin
ea884bbd6a Fix merge mishap in rev 1.9/1.10 - remove accidently duplicated
code. No functional change.
2018-09-15 17:42:38 +00:00
martin
56c59c7a28 Try to properly guess a path on the ftp server for pkg binaries
and use that as default.

Assume for $N.99 (current) we can use $N.0. Otherwise strip all
RC*/STABLE* annotations and just use the plain numbers.
2018-09-12 13:44:05 +00:00
martin
9ce05eeee9 Split the host name used for ftp transfers from the one used for http
transfers. This is slightly inconsistent, as directories are still
shared - but this allows us to default to cdn/nycdn for http (which don't
support ftp).
2018-09-11 08:05:18 +00:00
martin
df9944f85a Fix editor accident in previous 2018-09-08 20:01:19 +00:00
martin
a6c219b7c4 PR port-sgimips/53583: fetch kernel name always before using it.
Make the struct utsname local to avoid future similar issues.
2018-09-08 18:10:35 +00:00
martin
3575766bab Fix previous in case when BUILDID is passed - the subdirectory has the
same name as the BUILDID (which already includes the trailing "Z", no need
to append it again)
2018-09-06 07:56:40 +00:00
maxv
f922b0f6bd Remove the network ATM code. 2018-09-06 06:41:59 +00:00
martin
7141f3ff1f For local builds, at least use the right prefix on nyftp 2018-09-05 12:49:55 +00:00
martin
b99992c095 Try to guess the proper directory on ftp or nyftp where the binary
sets for the current build will end up.
2018-09-05 12:01:52 +00:00
maxv
bc58a324f2 Fix the "Interfaces" section, I understood wrong. Talk about inference,
because it was not mentioned before, and it plays an important role.
Discussed with rmind. Probably not the last pass.
2018-09-04 15:36:01 +00:00
riastradh
d1579b2d70 Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)
2018-09-03 16:29:22 +00:00
wiz
0394df431b New sentence, new line. Use Fn for functions. 2018-09-02 18:03:23 +00:00
maxv
c09ea90fc6 Be clearer about the difference between static vs dynamic interface list,
and slightly improve wording.

My understanding is that when none of inet4/inet6/ifaddrs is passed, NPF
assumes ifaddrs.
2018-09-02 17:45:18 +00:00
wiz
25be4c69af Remove superfluous Pp. 2018-09-01 19:26:46 +00:00
rmind
b5635267ab npf.conf(5): fix some of the previous incorrect or inaccurate changes.
The TCP flags option is not only for the stateful tracking.  Dynamic NAT
implies NAPT; algorithms, at least for now, are for static NAT mappings.
Mention that ALG ICMP is also for traceroute behind NAT; also mention
"MSS clamping" (some users might search for this term, so keeping the
terminology is helpful).
2018-09-01 16:28:57 +00:00
maxv
e3e075e240 rename net-seg -> map-seg, and document it 2018-08-31 11:18:35 +00:00
maxv
e6e69c66e8 "interface" already contains "var-name", so don't mention it in "filt-addr",
that's redundant
2018-08-31 11:11:21 +00:00
maxv
7af2b2f68b should be port-opts 2018-08-31 11:01:09 +00:00
maxv
20048da297 Clarify the "Groups" section. 2018-08-31 10:52:30 +00:00
maxv
918cd75c72 remove commented reference to pflog 2018-08-31 10:38:17 +00:00
wiz
367a79e6ff Add missing -width; remove unnecessary .Pp. 2018-08-27 13:20:47 +00:00
maxv
6cf056e7fd Improve the "Map" section. 2018-08-27 13:09:16 +00:00
maxv
c4abcc5a94 Document ALGs. 2018-08-27 12:46:03 +00:00
martin
1ebe46fcad Remove userland part of ndis 2018-08-25 11:06:00 +00:00
abhinav
50d4d47f30 Adjust makemandb for the latest mandoc
ok christos@
2018-08-24 16:01:57 +00:00
maxv
5458b5faf0 Add the values of "algo" in the grammar, and use # as comment marker for
man-k.org (and others) not to highlight things in an incorrect way.
2018-08-17 12:20:49 +00:00
maxv
143312eb5c Add missing quote in static-rule, it causes man-k.org (and other tools)
to wrongly highlight the grammar.
2018-08-17 12:04:20 +00:00
maxv
1dbf263b8b Replace "rproc"->"proc" in the grammar (spotted by he@), and slightly
reword.
2018-08-17 10:24:19 +00:00
maxv
f8cd5f425f Replace () by [] in tcp-flags.
Fix proc-opts, the value is optional, noted by he@.
2018-08-17 10:16:24 +00:00
maxv
29f7e3440d Improve wording. 2018-08-16 09:58:00 +00:00
maxv
ded4e9d920 Improve the "Map" section a little. 2018-08-16 09:50:37 +00:00
maxv
16b11b4076 Document the "flags" keyword. 2018-08-16 09:46:18 +00:00
maxv
b8e06d89f6 Improve the "Rules" section: better explain the "final" keyword (it is
the same as PF's "quick", so use the same wording), and document the
"return" options.

While here simplify the man code, suggested by wiz.
2018-08-16 09:21:00 +00:00
maxv
65ac579f46 Add quotes around the option names, to match the actual npf conf. 2018-08-16 08:51:53 +00:00
maxv
0a9ee16931 Enlighten the "Procedures" section. In particular document the "no-df"
option. Also replace "normalisation" -> "normalization", to match the
name of the rule.
2018-08-16 08:37:51 +00:00
kre
6a7c82e6b2 In the latest mandoc (mdocml) the signature (prototype) of
mparse_alloc() altered - update the call here to compensate.

This fixes the build (of makemandb), but I am not sure that
the changed version is what is desired - someone who knows
something about all of this should validate ... I just copied
the invocation from mandoc's demandoc.c (which seems likely
to be at least a similar kind of usage).
2018-08-16 05:07:22 +00:00
wiz
444a305543 Add missing El. Remove trailing whitespace. 2018-08-13 06:06:13 +00:00
christos
61bf19f212 i386 does not have a variable min address (yet) 2018-08-12 16:00:41 +00:00
christos
5ceff8e2e0 reorder 2018-08-12 15:55:26 +00:00
christos
5b4ae9b813 make things link again. 2018-08-12 15:05:13 +00:00
sevan
eb0a9b17da Simplify the description of npfd, default npflog interface & pcap file are
covered later.
Move advise regarding offline analysis to the CAVEATS section.
2018-08-07 22:55:47 +00:00
sevan
1d6667cee9 Escape ellipsis to stop it being interpreted as a macro.
Drop commented out manual which doesn't exist.
2018-08-07 22:02:08 +00:00
sevan
eaf2f5a246 First pass at editing this manual.
Add a link to the NPF documentation website and refer to it.
Switch the multiple structural elements to a list to make it easier to read and
extend.
Clarify tables, re-order so all terms are before the example.
Clarify obtaining addresses per family
Move the minimum requirement for a default group to the group section.
2018-08-07 00:22:13 +00:00
sevan
059f47e275 Use Nm macro
Move history details to the HISTORY section
Spelling
Be less meta & clarify the website should be consulted.
2018-08-02 16:42:12 +00:00
nonaka
b62b80c748 arp(8): Fix the host output when arp -dav. 2018-07-31 09:45:52 +00:00
wiz
10fabe8c03 Fix mandoc warnings. 2018-07-29 21:17:43 +00:00
sevan
0a9053f0f4 Document "in" field in CPU section
Fix ps(1) Xr raised by mandoc -Tlint
2018-07-29 17:03:02 +00:00
kamil
a9b2b066a2 Avoid potential undefined behavior in bta2dpd(8)
The operator >> causes implicit promotion to int.

There is need to cast the result back to uint8_t in order to save the
return value to a data undef a pointe of type uint8_t.

Requested by GCC when building with Undefined Behavior Sanitizer.
2018-07-25 19:03:50 +00:00
maxv
1b2a6113eb Add a "support" section. 2018-07-24 10:05:36 +00:00
maxv
8c9dd8d036 Use errx, there is no errno. 2018-07-24 09:50:37 +00:00
kre
3ef826f570 PR bin/53458
Bring this script a little up to date - make it work with modern /bin/sh
(avoid HOSTNAME as a random variable) clean up trailing spaces on lines,
use $( ) instead of `` ...
2018-07-20 13:11:01 +00:00
wiz
b15bdb80e1 Various improvements to man page. Sync usage. 2018-07-18 16:50:05 +00:00
christos
413e9419ec cast through intptr_t 2018-07-16 01:04:47 +00:00
jmcneill
091e75868b Add ARMv7 support. 2018-07-15 23:50:53 +00:00
jmcneill
0b7c38e1ef Add ARMv8 support. 2018-07-15 16:25:31 +00:00
jmcneill
de53e8aea9 Fix a crash when running tprof with no arguments; check argc before accessing argv[0] 2018-07-14 16:34:15 +00:00
jmcneill
4ab6de2316 Mark tprof_event_init, tprof_event_list, tprof_event_lookup as dead 2018-07-14 15:38:59 +00:00
maxv
8addf8a6b5 specialreg.h is x86-specific, don't include it 2018-07-14 07:54:37 +00:00