openbsd
7 years agoDo not run the config file in the context of the first client, instead
nicm [Fri, 21 Apr 2017 13:15:43 +0000 (13:15 +0000)]
Do not run the config file in the context of the first client, instead
use no client like we did before. This means commands like new-session
won't try to attach if they are in the config file.

7 years agoFail if vm.conf exists but cannot be opened, ignore if it doesn't exist.
reyk [Fri, 21 Apr 2017 11:02:10 +0000 (11:02 +0000)]
Fail if vm.conf exists but cannot be opened, ignore if it doesn't exist.

This fixes 'vmd -nf /etv/vm.conf' if the file is not readable.

7 years agoUse ether_crc32_le() instead of a custom version.
mpi [Fri, 21 Apr 2017 09:42:53 +0000 (09:42 +0000)]
Use ether_crc32_le() instead of a custom version.

From Hiltjo Posthuma.

7 years agoAdd global configuration option "local prefix" to change prefix for -L.
reyk [Fri, 21 Apr 2017 07:03:26 +0000 (07:03 +0000)]
Add global configuration option "local prefix" to change prefix for -L.

The default prefix is 100.64.0.0/10 from RFC6598.

Requested by sthen@ chris@
OK mlarkin@

7 years agovmd(8) pci emulation fix required for upcoming option rom support.
mlarkin [Fri, 21 Apr 2017 04:18:47 +0000 (04:18 +0000)]
vmd(8) pci emulation fix required for upcoming option rom support.
This will be used in the future to support an sgabios option rom, to
do VGA text mode console redirection.

ok reyk

7 years agocontrol_char() for ASCII needs to include both genuine control
nicm [Thu, 20 Apr 2017 21:23:16 +0000 (21:23 +0000)]
control_char() for ASCII needs to include both genuine control
characters and top-bit-set nonprintable characters (so both iscntrl()
and !isprint()), fixes behaviour broken in r1.15/r1.16, noticed by
deraadt@.

ok deraadt tedu

7 years agoadd previous to NAME;
jmc [Thu, 20 Apr 2017 19:30:42 +0000 (19:30 +0000)]
add previous to NAME;

7 years agosync
deraadt [Thu, 20 Apr 2017 18:30:33 +0000 (18:30 +0000)]
sync

7 years agoUse fdforkpty() instead of our own unwrapped versions.
nicm [Thu, 20 Apr 2017 17:49:26 +0000 (17:49 +0000)]
Use fdforkpty() instead of our own unwrapped versions.

7 years agoAdd getptmfd(), fdopenpty(), fdforkpty() functions. These allow programs
nicm [Thu, 20 Apr 2017 17:48:30 +0000 (17:48 +0000)]
Add getptmfd(), fdopenpty(), fdforkpty() functions. These allow programs
to separate the open(/dev/ptm) from the ioctl(PTMGET) for privilege
separation or pledge().

Based on a diff from reyk@.

ok deraadt millert

7 years agoFix previous.
visa [Thu, 20 Apr 2017 17:16:32 +0000 (17:16 +0000)]
Fix previous.

7 years agosync
deraadt [Thu, 20 Apr 2017 16:30:37 +0000 (16:30 +0000)]
sync

7 years agoGet TCB address using the RDHWR instruction instead of __get_tcb().
visa [Thu, 20 Apr 2017 16:07:52 +0000 (16:07 +0000)]
Get TCB address using the RDHWR instruction instead of __get_tcb().
This gives fast access to the address on systems that implement
the UserLocal register. TCB caching is still used when running
in the single-threaded mode in order not to penalize old systems.

The kernel counterpart of this change must be in place before
using this diff!

With guenther@

7 years agoMake TCB address available to userspace via the UserLocal register.
visa [Thu, 20 Apr 2017 15:42:26 +0000 (15:42 +0000)]
Make TCB address available to userspace via the UserLocal register.
This lets programs get the address without a system call on OCTEON II
and later.

Add UserLocal load emulation for systems that do not implement
the RDHWR instruction or the UserLocal register.

OK guenther@

7 years agoonly 32 bits of the pledgecode were passed up via ktrace
deraadt [Thu, 20 Apr 2017 15:21:51 +0000 (15:21 +0000)]
only 32 bits of the pledgecode were passed up via ktrace
from Anton Lindqvist
ok semarie

7 years agoOnly set up a current target for mouse key bindings. Fixes:
nicm [Thu, 20 Apr 2017 15:16:20 +0000 (15:16 +0000)]
Only set up a current target for mouse key bindings. Fixes:

bind q select-pane -U \; resize-pane -Z

(There is still some possible weirdness with the way we do current
targets, it should probably be done in a different way at some point.)

7 years agoDrop unnecessary headers. This fixes kernel build on platforms
visa [Thu, 20 Apr 2017 15:06:47 +0000 (15:06 +0000)]
Drop unnecessary headers. This fixes kernel build on platforms
without <machine/mplock.h>.

7 years agoregen
jsg [Thu, 20 Apr 2017 14:44:51 +0000 (14:44 +0000)]
regen

7 years agoRemove an incorrect Bay Trail I2C entry that masked a valid Bay Trail
jsg [Thu, 20 Apr 2017 14:43:59 +0000 (14:43 +0000)]
Remove an incorrect Bay Trail I2C entry that masked a valid Bay Trail
PCIE entry as it used the same product id.

Add another PLX/Avago/"Broadcom" PCIE bridge seen in the wild while here.

7 years agoAdd option to compile witness(4).
visa [Thu, 20 Apr 2017 14:23:53 +0000 (14:23 +0000)]
Add option to compile witness(4).

7 years agoTweak lock inits to make the system runnable with witness(4)
visa [Thu, 20 Apr 2017 14:13:00 +0000 (14:13 +0000)]
Tweak lock inits to make the system runnable with witness(4)
on amd64 and i386.

7 years agoHook up mutex(9) to witness(4).
visa [Thu, 20 Apr 2017 13:57:29 +0000 (13:57 +0000)]
Hook up mutex(9) to witness(4).

7 years agoHook up rwlock(9) to witness(4).
visa [Thu, 20 Apr 2017 13:33:00 +0000 (13:33 +0000)]
Hook up rwlock(9) to witness(4).

Loosely based on a diff from Christian Ludwig

7 years agoHook up mplock to witness(4) on amd64 and i386.
visa [Thu, 20 Apr 2017 13:20:17 +0000 (13:20 +0000)]
Hook up mplock to witness(4) on amd64 and i386.

7 years agoAdd a port of witness(4) lock validation tool from FreeBSD.
visa [Thu, 20 Apr 2017 12:59:36 +0000 (12:59 +0000)]
Add a port of witness(4) lock validation tool from FreeBSD.

Go-ahead from kettenis@, guenther@, deraadt@

7 years agoAdd routines for saving stack traces and printing saved traces
visa [Thu, 20 Apr 2017 12:41:43 +0000 (12:41 +0000)]
Add routines for saving stack traces and printing saved traces
on amd64 and i386.

With guenther@

7 years agoInstall clflushoptintrin.h and move pkuintrin.h such that the list is
kettenis [Thu, 20 Apr 2017 10:32:23 +0000 (10:32 +0000)]
Install clflushoptintrin.h and move pkuintrin.h such that the list is
properly sorted.

pointed out by espie@

7 years agoUse register names without the % prefix in the global register variable
kettenis [Thu, 20 Apr 2017 10:03:40 +0000 (10:03 +0000)]
Use register names without the % prefix in the global register variable
declarations since clang doesn't register the %-prefixed ones.

7 years agoNow that struct winlink has a session pointer, can remove some arguments.
nicm [Thu, 20 Apr 2017 09:43:45 +0000 (09:43 +0000)]
Now that struct winlink has a session pointer, can remove some arguments.

7 years agoThere is no real need for window_printable_flags to allocate, make it
nicm [Thu, 20 Apr 2017 09:39:07 +0000 (09:39 +0000)]
There is no real need for window_printable_flags to allocate, make it
return a buffer from the stack.

7 years agoIf a #() command doesn't exit, use its most recent line of output (it
nicm [Thu, 20 Apr 2017 09:20:22 +0000 (09:20 +0000)]
If a #() command doesn't exit, use its most recent line of output (it
must be a full line). Don't let it redraw the status line more than once
a second.

Requested by someone about 10 years ago...

7 years agouse strtonum instead of strtoll to parse the argument to -j
dlg [Thu, 20 Apr 2017 03:04:11 +0000 (03:04 +0000)]
use strtonum instead of strtoll to parse the argument to -j

ok deraadt@ benno@

7 years agosync
deraadt [Wed, 19 Apr 2017 22:37:52 +0000 (22:37 +0000)]
sync

7 years agoAdd sizes to free()
dhill [Wed, 19 Apr 2017 17:26:45 +0000 (17:26 +0000)]
Add sizes to free()

ok deraadt@ visa@

7 years agoAdd size to free()
dhill [Wed, 19 Apr 2017 17:26:13 +0000 (17:26 +0000)]
Add size to free()

ok deraadt@ visa@

7 years agoload_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
nicm [Wed, 19 Apr 2017 16:59:54 +0000 (16:59 +0000)]
load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.

7 years agoSA group has been renamed to bundle. Adapt test.
bluhm [Wed, 19 Apr 2017 16:06:38 +0000 (16:06 +0000)]
SA group has been renamed to bundle.  Adapt test.

7 years agoRename all SA groups to bundles consistently. The first kernel
bluhm [Wed, 19 Apr 2017 15:59:38 +0000 (15:59 +0000)]
Rename all SA groups to bundles consistently.  The first kernel
commit in 2000 that introduced the features already called them SA
bundles.  The word group is taken by Diffie-Hellman, reusing it
causes confusion.
OK hshoexer@

7 years agoicmp6_rip6_input() was mostly duplicated code from rip6_input().
bluhm [Wed, 19 Apr 2017 15:44:45 +0000 (15:44 +0000)]
icmp6_rip6_input() was mostly duplicated code from rip6_input().
Merge these functions together and remove icmp6_rip6_input().
OK mpi@

7 years agoAdd support for dynamic "NAT" interfaces (-L/local interface).
reyk [Wed, 19 Apr 2017 15:38:32 +0000 (15:38 +0000)]
Add support for dynamic "NAT" interfaces (-L/local interface).

When a local interface is configured, vmd configures a /31 address on
the tap(4) interface of the host and provides another IP in the same
subnet via DHCP (BOOTP) to the VM.  vmd runs an internal BOOTP server
that replies with IP, gateway, and DNS addresses to the VM.  The
built-in server only ever responds to the VM on the inside and cannot
leak its DHCP responses to the outside.

Thanks to Uwe Werler, Josh Grosse, and some others for testing!

OK deraadt@

7 years agoUse the rt_rmx defines that hide the struct rt_kmetrics indirection.
bluhm [Wed, 19 Apr 2017 15:21:54 +0000 (15:21 +0000)]
Use the rt_rmx defines that hide the struct rt_kmetrics indirection.
No binary change.
OK mpi@

7 years agoUpdate to terminfo.src 2017-04-01.
nicm [Wed, 19 Apr 2017 15:20:55 +0000 (15:20 +0000)]
Update to terminfo.src 2017-04-01.

7 years agoAdd a suspend helper function, and do not allow detaching or suspending
nicm [Wed, 19 Apr 2017 14:00:28 +0000 (14:00 +0000)]
Add a suspend helper function, and do not allow detaching or suspending
while already doing so.

7 years agoStyle nits and a missing cast.
nicm [Wed, 19 Apr 2017 12:44:29 +0000 (12:44 +0000)]
Style nits and a missing cast.

7 years agoMake the test pass when an obj directory exists.
bluhm [Wed, 19 Apr 2017 12:44:05 +0000 (12:44 +0000)]
Make the test pass when an obj directory exists.

7 years agobetter example; from hiltjo posthuma
jmc [Wed, 19 Apr 2017 10:48:57 +0000 (10:48 +0000)]
better example; from hiltjo posthuma
ok sthen

7 years agospelling fixes from michael w. bombardieri
jmc [Wed, 19 Apr 2017 09:32:46 +0000 (09:32 +0000)]
spelling fixes from michael w. bombardieri

7 years agoWhen the data we have buffered to write to a terminal grows beyond a
nicm [Wed, 19 Apr 2017 06:52:27 +0000 (06:52 +0000)]
When the data we have buffered to write to a terminal grows beyond a
reasonable amount (currently width * height * 8 bytes), discard all
output to the terminal and start trying to redraw periodically
instead. Continue with this until the amount of data we are trying to
write falls to a low level again.

This helps to prevent tmux sitting on a huge buffer of data when there
are processes with fast output running inside tmux but the outside
terminal is slow.

A new client_discarded format holds the amount of data that has been
discarded due to this mechanism.

The three variables (when to start this, when to stop, and how often to
redraw) are basically "works for me" at the moment, this is going in to
see how it goes and if it causes problems for anyone else.

7 years agoSwitch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has been
natano [Wed, 19 Apr 2017 05:36:12 +0000 (05:36 +0000)]
Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has been
around for two releases, it should be safe to do so.

ok bluhm deraadt sthen tb yasuoka

7 years agoBump numbers for /usr/obj allocation with *big* compilers.
tb [Wed, 19 Apr 2017 05:33:53 +0000 (05:33 +0000)]
Bump numbers for /usr/obj allocation with *big* compilers.

ok otto

7 years agoenlarge obj to satisfy new world order that has *big* compilers and
otto [Wed, 19 Apr 2017 05:27:00 +0000 (05:27 +0000)]
enlarge obj to satisfy new world order that has *big* compilers and
remove condition for static linking; ok tb@

7 years agoMore thoroughly reject direct access to unintended files, such that
schwarze [Wed, 19 Apr 2017 00:59:32 +0000 (00:59 +0000)]
More thoroughly reject direct access to unintended files, such that
URIs like http://man.openbsd.org/OpenBSD-current/mandoc.db and
http://man.openbsd.org/OpenBSD-current/man1/ do not cause display
of garbage.

7 years agoSimplify patching of motd(5), also making it agree better with the
schwarze [Tue, 18 Apr 2017 23:06:50 +0000 (23:06 +0000)]
Simplify patching of motd(5), also making it agree better with the
documentation if the first line of the file is blank.
Quirk reported by Anthony Coulter <bsd at anthonycoulter dot name>.
OK rpe@

7 years agoRevert use of DECSLRM on iTerm2, it doesn't help as much as we throught,
nicm [Tue, 18 Apr 2017 21:41:42 +0000 (21:41 +0000)]
Revert use of DECSLRM on iTerm2, it doesn't help as much as we throught,
and there are some question marks about it's support.

7 years agoOn terminals without DECSLRM, when a pane that is less than the full
nicm [Tue, 18 Apr 2017 20:37:49 +0000 (20:37 +0000)]
On terminals without DECSLRM, when a pane that is less than the full
with of the terminal scrolls, tmux needs to redraw the entire pane. This
results in a large amount of output data which can cause slow terminals
to struggle, particularly when many lines are scrolled together quickly.

This can be reduced by only redrawing when tmux doesn't hold any
buffered data for the terminal. If a redraw is required and data is
buffered, the redraw is deferred until all that data is consumed (it is
checked after every event loop, a timer is used to ensure this happens
at some point). While a redraw is pending, no additional data will be
written to the terminal.

The redraw still happens, now it is just pushed back if it is possible
it would just add more data on top of a terminal that is already
behind. This both gives the terminal a chance to catch up, and allows
tmux to process more scrolling (that would require additional redraws)
in the meantime.

Helps with a problem reported by Greg Hurrell.

7 years agoDetect iTerm2 and use DECSLRM for it as well.
nicm [Tue, 18 Apr 2017 18:21:37 +0000 (18:21 +0000)]
Detect iTerm2 and use DECSLRM for it as well.

7 years agospelling fix;
jmc [Tue, 18 Apr 2017 16:21:06 +0000 (16:21 +0000)]
spelling fix;

7 years agoNow that global -i is gone, pass -i through to the apropos(1)
schwarze [Tue, 18 Apr 2017 15:59:56 +0000 (15:59 +0000)]
Now that global -i is gone, pass -i through to the apropos(1)
expression parser, such that "apropos -i 'Nm~dump\>'"
finds kdump(1) and WCOREDUMP(2) and you don't need
to type the counter-intuitive "apropos -- -i 'Nm~dump\>'".

7 years agodon't forget to fill in canary bytes for posix_memalign(3); reported by
otto [Tue, 18 Apr 2017 15:46:44 +0000 (15:46 +0000)]
don't forget to fill in canary bytes for posix_memalign(3); reported by
and ok jeremy@

7 years agoAdd a format for number of bytes writtent to client, useful for debugging.
nicm [Tue, 18 Apr 2017 15:44:17 +0000 (15:44 +0000)]
Add a format for number of bytes writtent to client, useful for debugging.

7 years agoAdd sparc64 support.
kettenis [Tue, 18 Apr 2017 15:35:24 +0000 (15:35 +0000)]
Add sparc64 support.

7 years agoDo not check for BCE for a background colour that isn't needed, use
nicm [Tue, 18 Apr 2017 15:27:47 +0000 (15:27 +0000)]
Do not check for BCE for a background colour that isn't needed, use
colour 8 instead.

7 years agoDelete the undocumented and unimplemented man(1) -i (interactive
schwarze [Tue, 18 Apr 2017 15:26:33 +0000 (15:26 +0000)]
Delete the undocumented and unimplemented man(1) -i (interactive
apropos) option.  It will not be implemented.  Featurism isn't the
plan for the future; simplicity is.

7 years agoinstallation of the compiler creates include/g++ if needed; mtree does not
deraadt [Tue, 18 Apr 2017 15:15:09 +0000 (15:15 +0000)]
installation of the compiler creates include/g++ if needed; mtree does not
need to do this.

7 years agorecent perl have signal names we don't have, protect against that.
espie [Tue, 18 Apr 2017 15:12:00 +0000 (15:12 +0000)]
recent perl have signal names we don't have, protect against that.
also, allow child_error to take a parameter so that this can be used to decode
an arbitrary wait() result.

7 years agoThe apropos(1) manual still documents the unary -i operator for
schwarze [Tue, 18 Apr 2017 15:04:35 +0000 (15:04 +0000)]
The apropos(1) manual still documents the unary -i operator for
regular expression search terms, but it appears that somewhere
along the way, the implementation got lost, so restore it.
Bug found while investigating other reports from Gonzalo Tornaria.

7 years agoStyle nits; no binary change.
nicm [Tue, 18 Apr 2017 14:16:48 +0000 (14:16 +0000)]
Style nits; no binary change.

7 years agoship clang with i386 and amd64. It does not become the main compiler YET.
deraadt [Tue, 18 Apr 2017 14:03:08 +0000 (14:03 +0000)]
ship clang with i386 and amd64.  It does not become the main compiler YET.
ok kettenis

7 years agoTweak parameters to decode_*, add a check or two, and thus gain most of the
krw [Tue, 18 Apr 2017 13:59:09 +0000 (13:59 +0000)]
Tweak parameters to decode_*, add a check or two, and thus gain most of the
sanity improvements reyk@ recently put into dhcrelay to ensure no more than
the captured packet is processed.

7 years agoFix previous: i forgot explicit NUL termination;
schwarze [Tue, 18 Apr 2017 13:57:12 +0000 (13:57 +0000)]
Fix previous: i forgot explicit NUL termination;
noticed by Gonzalo <Tornaria at cmat dot edu dot uy>, thanks!

7 years agoAfter 11 years of pondering about it I think that brookdavis@freebsd.org
krw [Tue, 18 Apr 2017 13:44:03 +0000 (13:44 +0000)]
After 11 years of pondering about it I think that brookdavis@freebsd.org
had it correct. Don't BPF_WORDALIGN() the value for the number of
bytes read() into the buffer. This could theoretically cause the
processing of 1 - 3 more bytes than were read.

7 years agoensure the buffer cache backs off all the way with the correct type
beck [Tue, 18 Apr 2017 13:41:32 +0000 (13:41 +0000)]
ensure the buffer cache backs off all the way with the correct type
of memory, handling the fact that both queues are actually in dma
space when not flipping buffers high

7 years agoInclude client name in key logging.
nicm [Tue, 18 Apr 2017 13:34:04 +0000 (13:34 +0000)]
Include client name in key logging.

7 years agoSupport packet aggregation for umb(4) on tx.
gerhard [Tue, 18 Apr 2017 13:27:55 +0000 (13:27 +0000)]
Support packet aggregation for umb(4) on tx.

tested by bluhm@, ststp@ and Bryan Vyhmeister.
ok bluhm@ ststp@

7 years agoCleaning out /usr/obj is necessary the first time due to permission issues.
tb [Tue, 18 Apr 2017 13:21:36 +0000 (13:21 +0000)]
Cleaning out /usr/obj is necessary the first time due to permission issues.
Make this more clearly visible and also state explicitly that this is no
longer necessary after completing a full release build.

ok deraadt

7 years agowipe some more macros that do not belong in C++ forwarding headers.
espie [Tue, 18 Apr 2017 12:42:29 +0000 (12:42 +0000)]
wipe some more macros that do not belong in C++ forwarding headers.
(breaks lincity-ng)
okay kettenis@

7 years agosame hack logic as maketars. noticed by landry@/semarie@
espie [Tue, 18 Apr 2017 07:13:39 +0000 (07:13 +0000)]
same hack logic as maketars. noticed by landry@/semarie@

7 years agoadd a clang comp list for arm64
jsg [Tue, 18 Apr 2017 05:24:46 +0000 (05:24 +0000)]
add a clang comp list for arm64

7 years agouse freezero() instead of explicit_bzero+free
deraadt [Tue, 18 Apr 2017 04:06:21 +0000 (04:06 +0000)]
use freezero() instead of explicit_bzero+free

7 years agoremoved unused function; from Edgar Pettijohn
deraadt [Tue, 18 Apr 2017 03:54:27 +0000 (03:54 +0000)]
removed unused function; from Edgar Pettijohn

7 years agoWarn if pipex(4) is disabled but the configuration uses it.
yasuoka [Tue, 18 Apr 2017 03:28:04 +0000 (03:28 +0000)]
Warn if pipex(4) is disabled but the configuration uses it.

7 years agoDelete #include lines which are unnecessary.
yasuoka [Tue, 18 Apr 2017 03:25:22 +0000 (03:25 +0000)]
Delete #include lines which are unnecessary.

7 years agoIncluding sys/types.h and net/if.h are needed to use pipex(4).
yasuoka [Tue, 18 Apr 2017 03:21:48 +0000 (03:21 +0000)]
Including sys/types.h and net/if.h are needed to use pipex(4).

7 years agosort
deraadt [Tue, 18 Apr 2017 03:09:57 +0000 (03:09 +0000)]
sort

7 years agouse freezero()
deraadt [Tue, 18 Apr 2017 02:29:56 +0000 (02:29 +0000)]
use freezero()

7 years agouse freezero() instead of explicit_bzero + free
deraadt [Tue, 18 Apr 2017 02:20:50 +0000 (02:20 +0000)]
use freezero() instead of explicit_bzero + free

7 years agoput clang binaries into clang set
deraadt [Tue, 18 Apr 2017 02:16:48 +0000 (02:16 +0000)]
put clang binaries into clang set

7 years agouse freezero() instead of 4-line conditional explicit_bzero + free
deraadt [Tue, 18 Apr 2017 02:15:50 +0000 (02:15 +0000)]
use freezero() instead of 4-line conditional explicit_bzero + free

7 years agofree(NULL) is ok so use it; from Michael W. Bombardieri
deraadt [Tue, 18 Apr 2017 01:45:33 +0000 (01:45 +0000)]
free(NULL) is ok so use it; from Michael W. Bombardieri

7 years agoFix pipex(4) not to cause panics on strict alignment architectures.
yasuoka [Tue, 18 Apr 2017 01:24:47 +0000 (01:24 +0000)]
Fix pipex(4) not to cause panics on strict alignment architectures.

ok claudio

7 years agoRearrange ure_iff to resemble other drivers a bit more.
jmatthew [Tue, 18 Apr 2017 00:18:51 +0000 (00:18 +0000)]
Rearrange ure_iff to resemble other drivers a bit more.
from Brad

7 years ago/dev/rmt* is no longer relevant; from miod
jmc [Mon, 17 Apr 2017 22:42:57 +0000 (22:42 +0000)]
/dev/rmt* is no longer relevant; from miod

7 years agosome freezero() calls
deraadt [Mon, 17 Apr 2017 21:58:27 +0000 (21:58 +0000)]
some freezero() calls

7 years agouse freezero()
deraadt [Mon, 17 Apr 2017 21:55:20 +0000 (21:55 +0000)]
use freezero()

7 years agomemset() of password field should be explicit_bzero().
deraadt [Mon, 17 Apr 2017 21:49:01 +0000 (21:49 +0000)]
memset() of password field should be explicit_bzero().
[Not using freezero() in yacc files yet]

7 years agofreezero() can be used here
deraadt [Mon, 17 Apr 2017 21:48:26 +0000 (21:48 +0000)]
freezero() can be used here

7 years agoskip mtree creation of two include dirs. gcc3 may still use them, but
deraadt [Mon, 17 Apr 2017 21:45:34 +0000 (21:45 +0000)]
skip mtree creation of two include dirs.  gcc3 may still use them, but
if so gcc3 should create them itself.

7 years agoThe raw ip input functions are called from several places. Use the
bluhm [Mon, 17 Apr 2017 21:10:03 +0000 (21:10 +0000)]
The raw ip input functions are called from several places.  Use the
address family passed down with pr_input to check that the correct
one is used.
OK florian@

7 years agoUse the address family passed down with pr_input to simplify
bluhm [Mon, 17 Apr 2017 20:59:35 +0000 (20:59 +0000)]
Use the address family passed down with pr_input to simplify
tcp_input().
OK florian@

7 years agoUse the address family passed down with pr_input to simplify
bluhm [Mon, 17 Apr 2017 20:48:21 +0000 (20:48 +0000)]
Use the address family passed down with pr_input to simplify
udp_input().
OK florian@