Commit Graph

12019 Commits

Author SHA1 Message Date
christos 7f6ee53058 remove unneeded header. 2019-03-11 00:31:36 +00:00
christos 059d37ece9 adjust to the new mandoc api 2019-03-11 00:14:44 +00:00
mrg f05065bf5d remove 30-urw-aliases.conf and add 45-generic.conf and 60-generic.conf.
should fix build issues reported on current-users.
2019-03-09 23:46:34 +00:00
martin 0a2b4fff53 XDM Xresources has been extended and the new values are important for proper
working of newer XDM. Check for the missing values and ask the user to
fix manually.
2019-03-08 08:19:56 +00:00
christos e6b2ce53d6 fix memory allocation problems detected by jemalloc... 2019-03-07 22:08:59 +00:00
nonaka 2f7c8d4b83 arp(8): one more to close socket. 2019-02-28 01:20:25 +00:00
dholland 2cc9171b5c Teach arp that it's okay to close sockets after using them.
(this requires adding a close op to the rump turds)

Fixes PR 53974 reporting too many open files.
2019-02-27 23:29:50 +00:00
martin 1f77ea3786 Simplify previous even further by using hline() instead of a hand coded
version.
2019-02-27 12:59:35 +00:00
martin b0876b5075 Simplify previous, suggested by simonb. 2019-02-27 11:35:35 +00:00
joerg 222ae4e52b Avoid string + int warning. 2019-02-26 13:09:35 +00:00
gutteridge 38c10b539d ifwatchd(8): remove lingering references to dhclient(8). In this case,
its replacement handles carrier detection itself. Addresses part of
PR misc/53669.
2019-02-17 20:50:25 +00:00
gutteridge 03f48fcb5b pf.boot.conf: remove lingering references to dhclient(8), and while
here, capitalize acronyms. Addresses part of PR misc/53669.
2019-02-17 20:45:47 +00:00
christos 88b70b62ed add breaks for done() since it might not be __dead. 2019-02-14 20:19:51 +00:00
christos df2505e193 done is not always done (it returns, it is not dead) 2019-02-14 17:08:54 +00:00
wiz aa6b736126 Bump date for previous. 2019-02-13 11:40:41 +00:00
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