Commit Graph

286168 Commits

Author SHA1 Message Date
christos
d54a6e0c5d Add blocklist support to libwrap which enables all programs using libwrap
to block access from hosts we deny. (libwrap support from Greg A. Woods)
2021-03-07 15:09:12 +00:00
christos
ee87d87fd0 Amend missed messages:
netinet6: Pick IPv6 fragment ids uniformly at random.

Expected number of packets before collision is ~2^16, about the same
as we get for IPv4 with alternating disjoint random cycles.  Keep it
simple unless we determine we really need something much better for
IPv6 than what IPv4 can achieve anyway.

netinet6: Rip out now-unused IPv6 fragment id logic.

(from riastradh)
2021-03-07 15:03:32 +00:00
christos
4b58b6c56b netinet/netinet6: Add necessary includes to make these standalone.
(from riastradh)
2021-03-07 15:01:00 +00:00
christos
4b9f0c0a91 netinet6: Mark randomid unused.
Will make merging and bisection easier if anything goes wrong with
flow label or fragment id randomization changes.

(from riastradh)
2021-03-07 14:59:36 +00:00
christos
e4aa255bad netinet: Enable RFC 1948 pseudorandom TCP ISS selection by default.
(from riastradh)
2021-03-07 14:58:54 +00:00
christos
5d948faaec netinet: Enable random IP fragment ids by default (from riastradh) 2021-03-07 14:58:27 +00:00
jkoshy
6357c36138 Sync with Elftoolchain [r3916]: update the list of known EM_* values. 2021-03-07 14:53:59 +00:00
rin
9c89647e09 For LP64, remove members of struct cpu_info that exist just for
compatible with booke or ibm4xx. Even if MODULAR || _MODULE,
these members are useless for powerpc64.
2021-03-07 14:42:53 +00:00
rin
a4acd1f73c For _LP64, disable members of struct mdproc just for compatible with
booke and ibm4xx, even if MODULAR or _MODULE is defined.

Fix build failure for evbppc64 due to CTASSERT in COND_SET_STRUCT,
which restricts sizeof(struct mdproc) < 31 for unknown reason...
2021-03-07 14:31:53 +00:00
skrll
7abdb11983 Remove an '#ifndef hp300' and make STI_{EN,DIS}ABLE_ROM simply check the
sc_{en,disable}_rom methdos provide by the bus attachment glue.
2021-03-07 14:31:20 +00:00
nat
b4f84d307a Intoduce "-n" switch.
Running btat2dpd with "-n" especially for use with pad(4) will stop bta2dpd
from exiting upon a read error from pad(4) devices.

This is to compenstate for the behaviour in NetBSD current that pad(4) will
no longer output 0's when its corresponding audio(4) device is not active.

I believe that this new pad(4) behaviour is not present in -9 and -8.

While here I've improved its function as a daemon and it should reconnect to
bluetooth speakers when they are disconnected/reconnected.

Reported and tested by reinoud@ and maya@
2021-03-07 13:09:43 +00:00
mlelstv
0f81aa3085 Stop advertising more openings after limit is reached. 2021-03-07 12:30:03 +00:00
rillig
317f4968ee indent: in debug mode, output detailed token information
The main ingredient for understanding how indent works is the tokenizer
and the 4 buffers in which the text is collected.

Inspecting this debug log for the test comment-line-end makes it obvious
why indent messes up code that contains '//' comments.  The cause is
that indent interprets '//' as an operator, just like '&&' or '||'.  The
sequence '/////' is interpreted as a single operator as well, by the
way.

Since '//' is interpreted as an ordinary operator, any words following
it are plain identifiers, usually several of them in a row, which is a
syntax error.  Depending on the context, the operator '//' is either a
unary operator (no space around) or a binary operator (space around).
This explains why the word 'line-end' is expanded to 'line - end'.

No functional change outside of debug mode.
2021-03-07 11:32:05 +00:00
rillig
bf0defb337 indent: for the token types, use enum instead of #define
This makes it easier to step through the code in a debugger.

No functional change.
2021-03-07 10:56:18 +00:00
rillig
3658a7adc6 indent: use all headers in all files
This is a prerequisite for converting the token types to an enum instead
of a preprocessor define, since the return type of lexi will become
token_type.  Having the enum will make debugging easier.

There was a single naming collision, which forced the variable in
scan_profile to be renamed.  All other token names are used nowhere
else.

No change to the resulting binary.
2021-03-07 10:42:48 +00:00
rin
e31cf72b5a Build Xorg server for evbppc with minimum wsfb(4) support for Explora. 2021-03-07 10:42:26 +00:00
rin
bb6831e6be Add initial support for Xorg server for wsfb(4):
- Fix WSDISPLAYIO_GTYPE ioctl.

- Support WSDISPLAYIO_LINEBYTES, _{GET,PUT}CMAP, and _SMODE ioctl.

As well as tiny improvements related to it:

- Use actual size of framebuffer for bus_space_mmap(9), as well as upper
  bound for mmap(2).

- Use base address obtained from autoconf(9) layer for mmap(2), instead of
  hard-coded one.

- Use rasops_cmap as default color map, instead of our own ANSI color map.

- Show monitor resolution and color depth instead of size as tty.

I've confirmed that mlterm-fb from pkgsrc/x11/mlterm also works fine.
2021-03-07 10:33:07 +00:00
rillig
66c859742f tests/indent: add tests for the remaining command line options 2021-03-07 10:12:18 +00:00
skrll
6db047e95d Use bus_space_mmap in sti_mmap. This makes X on sti for my B160L nearly
work (the colour map is somewhat wrong), but at least the machine doesn't
wedge.
2021-03-07 10:02:33 +00:00
skrll
5620f23cf3 Provide a bus_space_mmap that always fails. Nothing uses it yet, but it
will be very soon.

OK tsutsui@
2021-03-07 10:01:08 +00:00
rin
27efb13426 Misc cleanup for clarity. No functional changes.
- Group function declarations, and reorder function bodies accordingly.
- Misc KNF.
2021-03-07 10:01:03 +00:00
rin
4f3f7d1954 No need to clear framebuffer here; rasops(4) takes care of it. 2021-03-07 09:48:33 +00:00
rin
ebd20e00aa Reduce ifdef. No functional changes. 2021-03-07 09:47:00 +00:00
rin
94ebc17bb2 Revert this commit:
http://www.nerv.org/netbsd/?q=id:20210305T064016Z.410b0e33273c3a62110d09e8bb27939f6a8bab38

> Map framebuffer to virtual space when fb(4) is present,
> even if it is not console.

Direct mapping for framebuffer is required only if fb(4) is console.

XXX
It would be nice if we can remove reserved TLB entries after
fb(4) is properly attached.
2021-03-07 09:43:56 +00:00
rillig
39a9a45a21 tests/indent: allow for comments in either the input or output files 2021-03-07 08:57:38 +00:00
nia
0425cc10a5 BER 2021-03-07 08:48:36 +00:00
skrll
baa71a1609 <tab> consistency 2021-03-07 08:16:58 +00:00
rin
d4ac66a3c1 Build modules for PPC_OEA64 on evbppc64. 2021-03-07 07:37:35 +00:00
rin
6a710fbbfe whitespace --> tab. No functional changes. 2021-03-07 07:30:15 +00:00
dbj
787ef1221e distrib/amd64/cdroms: honor CDBOOTOPTIONS when installing EFI bootloader 2021-03-07 03:55:47 +00:00
simonb
c428ef838c Remove unused/unreferenced legacy intrcnt/intrnames. 2021-03-07 02:54:06 +00:00
christos
0449daef3f TODO and ipfilter improvements from Greg A. Woods 2021-03-07 00:46:39 +00:00
christos
f525b84e77 - Enable WARMSTART
- Pass fd to libwrap
- Add blocklist
From Greg A. Woods

- Tidy up debugging
2021-03-07 00:23:06 +00:00
rillig
eb45e52c0e tests/indent: add tests for negative options
Since most of these options are of the form "don't do anything", the
input and output of these tests is very similar.
2021-03-06 23:09:17 +00:00
rillig
634ae6266a tests/indent: add more tests, discover more bugs 2021-03-06 22:10:40 +00:00
rillig
c9cd1c3aa6 tests/indent: add 17 more tests, found only a single new bug
Discovering one bug in 17 command line options is acceptable.  This
compensates the bad first impression I got in the previous batch of
tests, which consisted of 11 tests and found 8 bugs.
2021-03-06 21:27:39 +00:00
rillig
280e2f10d4 indent.1: sort options alphabetically 2021-03-06 21:08:08 +00:00
rillig
ff2507050a indent: fix space-tab alignment in indent's own code
These parts are not fixed automatically by indent since they are in box
comments.

No functional change.
2021-03-06 20:30:06 +00:00
christos
0f1e1628dd Don't or the got object in, just assign it. Fixes cc -mabi=64 hello.c -lcrypto
Now all 64 bit binaries work, and I tested that we did not break the 32 bit
ones
XXX: That 0x80000000 seems wrong for 64 bit stuff.
2021-03-06 20:11:08 +00:00
christos
d42a77727b pretend we know about %# and %j... 2021-03-06 20:09:39 +00:00
rillig
0bf3fecc64 tests/indent: fix unintended trailing whitespace and space-tab 2021-03-06 19:51:24 +00:00
rillig
f4551e581c tests/indent: add 11 test cases, demonstrate 8 bugs 2021-03-06 19:30:44 +00:00
bouyer
adaf54dac0 return early from identify_hypervisor() if we already know we're running
Xen PV or PVH, as this was before 1.119.
Trying to read the BIOS faults (as expected, as there's no BIOS in this case).
Problem pointed out and fix tested by Brian Marcotte
2021-03-06 19:16:45 +00:00
rillig
1a656e3597 tests/indent: add templates for options tests
Given that indent "has even more switches than ls(1)", there are far too
few tests.  To make it easier to add meaningful tests for each of the
options, add the templates for the tests right now, ready to be filled
in.
2021-03-06 17:56:33 +00:00
rillig
51d591549d tests/indent: extend test for '//' comments with more examples 2021-03-06 15:02:38 +00:00
rin
f111f7ed2a Fix trivial typo. No need to bump date. 2021-03-06 14:44:02 +00:00
martin
45141001ea Minimal (but hackish) change to make a DEBUG kernel compilable. 2021-03-06 13:32:56 +00:00
skrll
c901baed96 Improve fdt_isprint so that it returns false if there are consecutive
zeroes.
2021-03-06 13:21:26 +00:00
rin
b3185c1480 For ibm4xx and booke, restore saved PSL_EE bit as done for oea,
instead of forcibly enabling interrupts.
2021-03-06 08:34:58 +00:00
rin
521ca5bfd2 Convert to KASSERTMSG(9) to display wrong IPL. 2021-03-06 08:32:17 +00:00