Commit Graph

12004 Commits

Author SHA1 Message Date
mlelstv
1586b80690 Document options to select alternate GPIO modes. 2019-02-12 21:41:38 +00:00
martin
c3f237b4de Backout previous snprintf nonsense, instead STFU gcc 7's most
useless warning ever.
2019-02-12 18:32:15 +00:00
martin
ccb99dea3b Fix a few off by one (in both directions) in previous, pointed out by mrg.
Avoid open coding snprintf return value checking and introduce a
helper functions that always ensures string termination instead,
suggested by christos.
2019-02-11 20:40:18 +00:00
martin
f9df7d7b5c Remove unconditional truncation - it confuses gcc 2019-02-11 20:03:28 +00:00
martin
997731694f Two more gcc 7 warnings when compiling wiht optimization on, one to go. 2019-02-11 19:58:22 +00:00
mrg
e3dd5b9e43 add parens around defines with expressions that could expand poorly
depending on the usage.
2019-02-11 19:45:54 +00:00
martin
a57c274e80 Make sure we properly truncate snprintf() results when the target buffer
is too small, in a way that appeases gcc 7 warnings.
2019-02-11 19:15:38 +00:00
msaitoh
800ead4e1b Add missing newline. 2019-02-09 16:00:41 +00:00
isaki
df508298eb Rewrite modify_single() to make compilable on gcc7. 2019-02-08 08:55:35 +00:00
isaki
9d27cfd2fe Make compilable even SRAMDEBUG. 2019-02-08 08:41:11 +00:00
mrg
2b1fdb0e5c disable stringop-overflow warning for GCC 7. triggers here and seems
impossible on current netbsd given it's takling about argv > 2GB, and
this is only for x68k anyway.
2019-02-07 06:01:04 +00:00
christos
b24f9b8691 quit is dead 2019-02-06 17:21:51 +00:00
christos
fe07d6d389 done returns if !dontjump 2019-02-06 15:43:13 +00:00
msaitoh
77e25382c8 Add Ice Lake and Tremont from the latest Intel SDM. 2019-02-05 08:07:59 +00:00
msaitoh
091e15265d Remove very old IFF_NOTRAILERS flag. 2019-02-05 06:17:00 +00:00
mrg
5e5bf48e2a use -Wno-error=format-truncation for code that seems particularly annoying
or unlikely to actually fail.  some of the syslogd ones are not too hard
to fix, but most remain.
2019-02-04 10:22:15 +00:00
mrg
597023c44e - don't make -h/-H get around the argument check by setting
'inquiry' in the fallthru case, but instead explicitly
  check for 'display_usage' as well.
2019-02-04 09:53:41 +00:00
mrg
a5ca97c6e5 apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
2019-02-04 09:51:47 +00:00
mrg
82974f2217 check for snprintf() truncation and fail sanely if so, rather than
attempting to use a file that won't exist or isn't secure.
2019-02-04 08:21:11 +00:00
mrg
01d0929d7e - convert 'done' to an unsigned, since it is used as one. 2019-02-04 04:56:35 +00:00
mlelstv
fb95d55af4 Fix handling of pushback operation which isn't using negative lengths
for about 10 years.

Found by gcc7.
2019-02-04 01:07:34 +00:00
mrg
93dc402740 - mark logerr(), quit() and done() as __dead. 2019-02-03 12:13:37 +00:00
mrg
607f1423e0 - mark log_err() and log_errx() as __dead. 2019-02-03 12:03:22 +00:00
mrg
b6d6f9f529 - don't compare pointer with \0. in this case, *pointer is wanted,
not \0 -> NULL, as we just tested pointer, and this is wanting to
  be the standard "is this string NULL or nul?" idiom.
2019-02-03 12:02:22 +00:00
mrg
37649e4074 - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
mrg
fbffadb9f8 - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily
2019-02-03 03:19:25 +00:00
mrg
8dec05958d don't check the return value of execvp() for failure to call err().
assume if it returns at all something has failed.
2019-02-01 09:06:07 +00:00
mrg
684b182f81 compare pointers with NULL not '\0'. 2019-02-01 08:29:03 +00:00
msaitoh
900e7dd5ab Stop continuing /var/shm check when var_shm_symlink is in /etc/rc.conf.
OK'd by martin.
2019-01-31 10:06:32 +00:00
kre
4b0905d49c Fix merge botch. 2019-01-27 05:12:30 +00:00
oster
b402551324 Remove extra #ifdef and duplicated set of #ifdef's. 2019-01-27 04:15:11 +00:00
pgoyette
d91f98a871 Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
christos
a964285a66 - fix wrong size allocation that triggers buffer overflow
- remove unneeded casts and assertions
XXX: pullup-8
2019-01-23 20:46:18 +00:00
skrll
907cdcbbc0 Fix mvfr0.fptrap = 0 description 2019-01-23 07:41:54 +00:00
rmind
3d9a792dd8 Major NPF improvements:
- Convert NPF connection table to thmap.  State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address.  Translation addresses can now be
  selected from a pool of addresses.  There are two selection algorithms,
  "ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
  to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
  translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).
2019-01-19 21:19:31 +00:00
wiz
845dfb2f5e Add missing width argument to Bl. Remove Pp before It. 2019-01-17 08:53:17 +00:00
gutteridge
e5663ad9a9 btpand(8): replace dhclient(8) references with dhcpcd(8)
Addresses part of PR misc/53669.
2019-01-17 05:52:21 +00:00
martin
019c421601 PR 53869: improve polish "noroot" message 2019-01-15 12:55:03 +00:00
christos
0779cbe997 adjust to new expandm. 2019-01-12 19:09:25 +00:00
christos
ea179cc7cf use expandm from libwrap. 2019-01-11 20:41:53 +00:00
martin
fd42ea8ecb Some translation fixes/additions from Kamil 2019-01-11 08:14:50 +00:00
martin
fffc348d77 PR install/53857: make the pkgsrc menu wider, so the first column fits
in various translations. While there shorten some (misleading) text.
2019-01-10 19:00:17 +00:00
uwe
61417cee53 Actually, according to the grammar the square brackets in the "tcp
flags" are not literal, so use .Op to show that /mask is optional.
2019-01-08 11:36:10 +00:00
uwe
94cd499daa Restore macro with effect. Fix the real problem that prevented it to
have the effect.
2019-01-08 11:28:01 +00:00
wiz
65808c7ffa New sentence, new line. Punctuation fixes. Remove macros without effect. 2019-01-08 10:25:26 +00:00
gutteridge
77213afac9 veriexecgen(8): improve example for appending /etc to the signatures
database. From Edgar Pettijohn in PR misc/53839.
2019-01-08 01:31:49 +00:00
gutteridge
a7a743c1a4 npf.conf(5): add a minor clarification about table types that can't
accept masks on IP addresses. Prompted by Rob Hunter in PR bin/51900.
2019-01-08 01:19:16 +00:00
scole
160c07be3d Add GENERIC.MP and GENERIC_601 kernels to sysinst menu 2019-01-07 18:08:28 +00:00
maxv
3426341fca Handle the NVMM signature. 2019-01-06 16:13:51 +00:00
christos
5794a3e6bf check strdup results too
include the function name in out of memory messages
2019-01-03 19:26:50 +00:00