openbsd
8 years agoadd ure(4) man page
jmatthew [Mon, 27 Jun 2016 23:50:31 +0000 (23:50 +0000)]
add ure(4) man page

8 years agothe flag is USBD_EXCLUSIVE_USE, not USBD_EXCLUSIVE_ACCESS
jmatthew [Mon, 27 Jun 2016 23:38:01 +0000 (23:38 +0000)]
the flag is USBD_EXCLUSIVE_USE, not USBD_EXCLUSIVE_ACCESS

8 years agoMissing "break;" in switch statement; repairs IP_MINTTL.
jca [Mon, 27 Jun 2016 20:57:41 +0000 (20:57 +0000)]
Missing "break;" in switch statement; repairs IP_MINTTL.

8 years agoRepair kill(2) on zombie processes.
jca [Mon, 27 Jun 2016 19:55:02 +0000 (19:55 +0000)]
Repair kill(2) on zombie processes.

kill(2) is supposed to find zombie processes, this probably got broken
when the process reaper was introduced.  As a temporary(tm) workaround,
walk the list of zombie processes if we can't find the target pid in the
main process list.

Problem with zsh initially reported by Geoff Wozniak on misc@, analysis
done by naddy@.  ok kettenis@ tedu@

8 years agoFix inverted logic in recv_hello().
renato [Mon, 27 Jun 2016 19:18:54 +0000 (19:18 +0000)]
Fix inverted logic in recv_hello().

Bug introduced by rev1.48 two weeks ago. We were not respecting the
advertised transport connection preference (LDPoIPv4 or LDPoIPv6),
the fix is pretty obvious.

8 years agoRemove superfluous call to l2vpn_pw_exit().
renato [Mon, 27 Jun 2016 19:08:39 +0000 (19:08 +0000)]
Remove superfluous call to l2vpn_pw_exit().

8 years agoHandle ibuf_add() errors.
renato [Mon, 27 Jun 2016 19:06:33 +0000 (19:06 +0000)]
Handle ibuf_add() errors.

tweaks from claudio@

8 years agoRevert if_iwm.c r1.166. We are still seeing links dropping upon HT protection
stsp [Mon, 27 Jun 2016 19:01:02 +0000 (19:01 +0000)]
Revert if_iwm.c r1.166. We are still seeing links dropping upon HT protection
updates with some iwn chips, such as the 2200. Reported by mlarkin and krw.

8 years agominor tweaks; ok tedu
jmc [Mon, 27 Jun 2016 17:36:33 +0000 (17:36 +0000)]
minor tweaks; ok tedu

8 years agomake proper use of fstatat, as suggested by guenther@
espie [Mon, 27 Jun 2016 16:52:30 +0000 (16:52 +0000)]
make proper use of fstatat, as suggested by guenther@
okay millert@

8 years agoRegen.
jsing [Mon, 27 Jun 2016 16:52:01 +0000 (16:52 +0000)]
Regen.

8 years agoRestore the sys_o58_kill system call.
jsing [Mon, 27 Jun 2016 16:50:07 +0000 (16:50 +0000)]
Restore the sys_o58_kill system call.

8 years agoRestore the sys_o58_kill system call.
jsing [Mon, 27 Jun 2016 16:49:45 +0000 (16:49 +0000)]
Restore the sys_o58_kill system call.

By keeping both the new (sys_kill/sys_thrkill) and old (sys_o58_kill)
system calls for the OpenBSD 6.0 release, code that uses either of these
mechanisms will work on both of the supported OpenBSD releases. This
provides a clean transition for runtimes that make direct system calls
(namely the Go programming language).

This requires a minimal amount of non-intrusive code and does not block
development progress within OpenBSD.

ok deraadt@ guenther@

8 years agoKill outdated comment. Reading the code is enough.
jca [Mon, 27 Jun 2016 16:36:08 +0000 (16:36 +0000)]
Kill outdated comment.  Reading the code is enough.

ok sthen@ bluhm@

8 years agoImplement IPV6_MINHOPCOUNT support.
jca [Mon, 27 Jun 2016 16:33:48 +0000 (16:33 +0000)]
Implement IPV6_MINHOPCOUNT support.

Useful to implement GTSM support in daemons such as bgpd(8). Diff from
2013 revived by renato@.  Input from bluhm@, ok bluhm@ deraadt@

8 years agoCopy inp_hops from the listening socket to the accepted one and use
bluhm [Mon, 27 Jun 2016 15:59:51 +0000 (15:59 +0000)]
Copy inp_hops from the listening socket to the accepted one and use
its value for the SYN+ACK packet.  This makes the IPV6_UNICAST_HOPS
socket option usable for incoming TCP connections.
tested by renato@;  OK jca@

8 years agosomehow nopass snuck onto the :wheel example. i think it's better without.
tedu [Mon, 27 Jun 2016 15:47:38 +0000 (15:47 +0000)]
somehow nopass snuck onto the :wheel example. i think it's better without.

8 years agorevise environment handling.
tedu [Mon, 27 Jun 2016 15:41:17 +0000 (15:41 +0000)]
revise environment handling.
Add a setenv keyword for manipulating the environment. keepenv now means
only retain everything. (for one release, the old use of keepenv will still
work.)
Allow setting variables to new or existing values, and also removing vars
when keepenv is used.
ok djm martijn tb

8 years agodefer munmap to after unlocking malloc. this can (unfortunately) be an
tedu [Mon, 27 Jun 2016 15:33:40 +0000 (15:33 +0000)]
defer munmap to after unlocking malloc. this can (unfortunately) be an
expensive syscall, and we don't want to tie up other threads. there's no
need to hold the lock, so defer it to afterwards.
from Michael McConville
ok deraadt

8 years agowhitespace
deraadt [Mon, 27 Jun 2016 14:43:04 +0000 (14:43 +0000)]
whitespace

8 years agosync
deraadt [Mon, 27 Jun 2016 14:26:26 +0000 (14:26 +0000)]
sync

8 years agoFix a memory leak in an error path.
jsg [Mon, 27 Jun 2016 13:06:41 +0000 (13:06 +0000)]
Fix a memory leak in an error path.
ok mikeb@

8 years agoCorrect the order of memset arguments.
jsg [Mon, 27 Jun 2016 12:32:39 +0000 (12:32 +0000)]
Correct the order of memset arguments.
ok mikeb@

8 years agoThe variable swapping between inp, newinp and oldinpcb in syn_cache_get()
bluhm [Mon, 27 Jun 2016 12:25:27 +0000 (12:25 +0000)]
The variable swapping between inp, newinp and oldinpcb in syn_cache_get()
was overly complicated.  Simplify the code without functional change.
OK jca@

8 years agoadd ure(4), a driver for Realtek RTL8152 10/100 USB Ethernet adapters,
jmatthew [Mon, 27 Jun 2016 11:42:47 +0000 (11:42 +0000)]
add ure(4), a driver for Realtek RTL8152 10/100 USB Ethernet adapters,
ported from FreeBSD.

ok dereaadt@

8 years agosurprised nobody noticed before me
espie [Mon, 27 Jun 2016 08:38:15 +0000 (08:38 +0000)]
surprised nobody noticed before me
let scp:// work with PKG_CACHE
basically, we do an extra fork, so we end up cleaning up the connection twice
that's okay for the handles, but not for the commands, since we do a spurious
ABORT BYE BYE on cleanup.

8 years agomake the fallback code more accurate (in particular, it should return names
espie [Mon, 27 Jun 2016 06:10:04 +0000 (06:10 +0000)]
make the fallback code more accurate (in particular, it should return names
based on the actual device, not any kind of inode equality which won't hold
for duplicates of the dev tree in a chroot)

no bump as it doesn't change any API.

okay and improvements guenther@

8 years agodovutimens: call vrele(9) before returning EINVAL
semarie [Mon, 27 Jun 2016 04:26:41 +0000 (04:26 +0000)]
dovutimens: call vrele(9) before returning EINVAL

ok guenther@

8 years agosys_revoke: call vrele() before returning ENOTTY
semarie [Mon, 27 Jun 2016 04:14:38 +0000 (04:14 +0000)]
sys_revoke: call vrele() before returning ENOTTY

ok guenther@

8 years agoincrease the minimum for auto rounds to 6. that was the previous low bound
tedu [Sun, 26 Jun 2016 21:04:08 +0000 (21:04 +0000)]
increase the minimum for auto rounds to 6. that was the previous low bound
for login.conf, and we don't want to go lower.

8 years agoupgrade selected login.conf to use auto rounds for bcrypt. the installer
tedu [Sun, 26 Jun 2016 20:32:31 +0000 (20:32 +0000)]
upgrade selected login.conf to use auto rounds for bcrypt. the installer
already does this, so we don't want to go backwards on password changes.
ok krw

8 years agosomebody forgot to look at format string warnings
tedu [Sun, 26 Jun 2016 19:53:40 +0000 (19:53 +0000)]
somebody forgot to look at format string warnings

8 years agoDocument how to create full boot and installation images containing
tb [Sun, 26 Jun 2016 15:17:43 +0000 (15:17 +0000)]
Document how to create full boot and installation images containing
release tarballs and ports, suitable for installs without network.

Idea and patch from Bryan Everly, thanks!
With input from deraadt, jmc and myself.

ok jmc

8 years agouse error code path instead of return early without calling VOP_ABORTOP() and
semarie [Sun, 26 Jun 2016 14:27:14 +0000 (14:27 +0000)]
use error code path instead of return early without calling VOP_ABORTOP() and
vrele()/vput().

ok deraadt@

8 years agosxie(4) is only for integrated 'EMAC' 10/100 Ethernet. Make this a bit
jsg [Sun, 26 Jun 2016 10:12:29 +0000 (10:12 +0000)]
sxie(4) is only for integrated 'EMAC' 10/100 Ethernet.  Make this a bit
more obvious.  The Gigabit 'GMAC' controller used by some A20 systems
is not supported.

8 years agoremove devices from soc abstraction device lists that now attach to fdt
jsg [Sun, 26 Jun 2016 10:04:18 +0000 (10:04 +0000)]
remove devices from soc abstraction device lists that now attach to fdt

8 years agoDynamically attach cpsw(4) with the FDT.
jsg [Sun, 26 Jun 2016 09:06:35 +0000 (09:06 +0000)]
Dynamically attach cpsw(4) with the FDT.

8 years agoDynamically attach tiiic using the FDT.
jsg [Sun, 26 Jun 2016 07:25:05 +0000 (07:25 +0000)]
Dynamically attach tiiic using the FDT.

Only match on omap4 compatible controllers such as the one in the
am335x on bbb.  omap3 has different register offsets and a different
compatible string.

This reuses kettenis' fdt i2c scan function from imxiic(4).

8 years agoOups, remove '#define I2S_DEBUG' again.
mglocker [Sun, 26 Jun 2016 06:50:26 +0000 (06:50 +0000)]
Oups, remove '#define I2S_DEBUG' again.

8 years agoMake i2s compile with I2S_DEBUG; %x -> %p.
mglocker [Sun, 26 Jun 2016 06:48:39 +0000 (06:48 +0000)]
Make i2s compile with I2S_DEBUG; %x -> %p.

8 years agoadd a missing argument specified in format string so this builds again
jsg [Sun, 26 Jun 2016 05:30:21 +0000 (05:30 +0000)]
add a missing argument specified in format string so this builds again

8 years agodestatic
jsg [Sun, 26 Jun 2016 05:27:44 +0000 (05:27 +0000)]
destatic

8 years agoDynamically attach omdog(4) using the FDT.
jsg [Sun, 26 Jun 2016 05:16:33 +0000 (05:16 +0000)]
Dynamically attach omdog(4) using the FDT.

8 years agoDon't list cubieboard2, pmap can't handle allwinner a20.
jsg [Sun, 26 Jun 2016 01:56:07 +0000 (01:56 +0000)]
Don't list cubieboard2, pmap can't handle allwinner a20.

8 years agorecognize @option is-branch
espie [Sat, 25 Jun 2016 18:02:59 +0000 (18:02 +0000)]
recognize @option is-branch
so that it trickles to snapshots and then can be used in ports

8 years agoMove pledge after opendev and DIOCGPDINFO. Fixes e.g. fdisk /dev/tty.
tb [Sat, 25 Jun 2016 17:03:22 +0000 (17:03 +0000)]
Move pledge after opendev and DIOCGPDINFO. Fixes e.g. fdisk /dev/tty.
This diff by deraadt was overlooked far too many times, mostly by me.
It's the original fix of the pledge disklabel breakage found by espie.

diff by deraadt; ok semarie, tb.

8 years agoFix from kinichiro.inoguchi@gmail.com to ensure that OCSP uses
beck [Sat, 25 Jun 2016 16:10:26 +0000 (16:10 +0000)]
Fix from kinichiro.inoguchi@gmail.com to ensure that OCSP uses
Generalized Time on requests as per RFC6960

8 years agoFix the ocsp code to actually check for errors when comparing time values
beck [Sat, 25 Jun 2016 15:38:44 +0000 (15:38 +0000)]
Fix the ocsp code to actually check for errors when comparing time values
which was not being done due to a lack of checking of the return code for
X509_cmp_time.  Ensure that we only compare GERNERALIZEDTIME values because
this is what is specified by RFC6960.

Issue reported, and fix provided by Kazuki Yamaguchi <k@rhe.jp>
ok bcook@

8 years agoAdd Medion Mobile S4222
feinerer [Sat, 25 Jun 2016 05:31:08 +0000 (05:31 +0000)]
Add Medion Mobile S4222

Remove deprecated Tn at the same time.

OK jmc@

8 years agomove a space to the correct spot
tedu [Fri, 24 Jun 2016 20:49:56 +0000 (20:49 +0000)]
move a space to the correct spot

8 years agouse crypt_checkpass to simplify password checking logic.
tedu [Fri, 24 Jun 2016 17:22:56 +0000 (17:22 +0000)]
use crypt_checkpass to simplify password checking logic.

8 years agomake use of former changes. If list is higher than display go thru more.
espie [Fri, 24 Jun 2016 14:20:49 +0000 (14:20 +0000)]
make use of former changes. If list is higher than display go thru more.

8 years agoThe function pf_get_sport() did work for out rules only. Make it
bluhm [Fri, 24 Jun 2016 13:55:57 +0000 (13:55 +0000)]
The function pf_get_sport() did work for out rules only.  Make it
aware of the direction of the packet.  Now nat-to can be used by
in rules and together with divert-to.  Collisions with existing
states are found and produce a "NAT proxy port allocation failed"
message.
OK henning@ mikeb@

8 years agosimplify the logic. no need for a separate hook when we can just specialize
espie [Fri, 24 Jun 2016 11:42:30 +0000 (11:42 +0000)]
simplify the logic. no need for a separate hook when we can just specialize
find_window_size.
fix a bug: integrate SIG{CONT} for re-checking window size.

the way it's currently written, first call to compute_playfield will
call itself once. But it makes for less code.

8 years agoregen
florian [Fri, 24 Jun 2016 08:34:33 +0000 (08:34 +0000)]
regen

8 years agoUpdate to 4.1.10
florian [Fri, 24 Jun 2016 08:34:02 +0000 (08:34 +0000)]
Update to 4.1.10
Testing by millert@, sthen@ and me.
came up with the same diff & OK sthen@

8 years agoAvoid multiple evaluation of macro arguments in softclock()
stefan [Thu, 23 Jun 2016 18:41:44 +0000 (18:41 +0000)]
Avoid multiple evaluation of macro arguments in softclock()

ok mikeb@ tedu@

8 years agothere's no reason for window size computation to be linked to the
espie [Thu, 23 Jun 2016 16:11:23 +0000 (16:11 +0000)]
there's no reason for window size computation to be linked to the
ProgressMeter, so make it available from state.
- computation is lazy, so no runtime difference;
- don't bother setting a SIG{WINCH} on non-tty;
- progressmeter already has access to state;
- do an empty window_size_changed in base state, override it for
addcreatedelete to inform the progressmeter.

to be reused in dpb...

8 years agoAs klog dropped message has no ifdef small kernel, sendsyslog
bluhm [Thu, 23 Jun 2016 15:41:42 +0000 (15:41 +0000)]
As klog dropped message has no ifdef small kernel, sendsyslog
should not have it either.  While there bring some variables in
sync between both functions.
OK deraadt@

8 years agoIt is annoying that the dmesg buffer can overflow and loose messages
bluhm [Thu, 23 Jun 2016 13:15:21 +0000 (13:15 +0000)]
It is annoying that the dmesg buffer can overflow and loose messages
undetected during debugging.  To make clear what happens, count the
dropped bytes and write message buffer full to syslogd.  This also
helps to have a reliable log system.
OK deraadt@ millert@ tedu@

8 years agoadd fh variation of printing code. Systematically use it with STDOUT/STDERR
espie [Thu, 23 Jun 2016 12:44:10 +0000 (12:44 +0000)]
add fh variation of printing code. Systematically use it with STDOUT/STDERR
for classical functions.

8 years agoUse SYMBOL_CALLS_LOCAL() to determine whether we can drop relocations for a
kettenis [Thu, 23 Jun 2016 12:02:18 +0000 (12:02 +0000)]
Use SYMBOL_CALLS_LOCAL() to determine whether we can drop relocations for a
symbol such that hidden symbols get handled properly.  Gets rid of the
spurious DT_TEXTREL entries seen with (typically) C++ code.

ok deraadt@, guenther@

8 years agomove transaction-specific states from struct smtp_session to struct smtp_tx
eric [Thu, 23 Jun 2016 11:56:19 +0000 (11:56 +0000)]
move transaction-specific states from struct smtp_session to struct smtp_tx

ok gilles@

8 years agowhen pf_test returns something but PF_PASS, set error to EACCES
henning [Thu, 23 Jun 2016 09:08:56 +0000 (09:08 +0000)]
when pf_test returns something but PF_PASS, set error to EACCES
instead of EHOSTUNREACH. On the latter, ip_forward can generate undesired
icmp errors - either pf generates those itself (block return), or there
shouldn't be any.
Bizarrely enough, ip_forward has EACCES handling with a comment specifically
pointing to packets blocked by pf, but the code in ip_output used EHOSTUNREACH
from day #1 on.
found & analyzed by Kristof Provost <kp at FreeBSD>, discussed at BSDcan
ok mpi millert

8 years agoallow creation of devices or fifo without -p (as it is already allowed with -p)
semarie [Thu, 23 Jun 2016 06:37:36 +0000 (06:37 +0000)]
allow creation of devices or fifo without -p (as it is already allowed with -p)

diff from trondd at kagu-tsuchi com, enhanced by me for reordering promises

ok deraadt@

8 years agofix AuthenticationMethods during configuration re-parse;
djm [Thu, 23 Jun 2016 05:17:51 +0000 (05:17 +0000)]
fix AuthenticationMethods during configuration re-parse;
reported by Juan Francisco Cantero Hurtado

8 years agoFetch MAC address from FDT.
kettenis [Wed, 22 Jun 2016 20:15:31 +0000 (20:15 +0000)]
Fetch MAC address from FDT.

ok jsg@, patrick@

8 years agobackport r3782, fixing qname-minimisation with various broken DNS servers,
sthen [Wed, 22 Jun 2016 20:11:09 +0000 (20:11 +0000)]
backport r3782, fixing qname-minimisation with various broken DNS servers,
often found at CDNs.

- Use QTYPE=A for QNAME minimisation.
- Keep track of number of time-outs when performing QNAME minimisation.
  Stop minimising when number of time-outs for a QNAME/QTYPE pair is
  more than three.

8 years agobackport r3781, fix segfault in -h
sthen [Wed, 22 Jun 2016 20:09:55 +0000 (20:09 +0000)]
backport r3781, fix segfault in -h

8 years agoupdate to unbound-1.5.9. (there will be a follow-up commit to cherrypick a
sthen [Wed, 22 Jun 2016 20:05:40 +0000 (20:05 +0000)]
update to unbound-1.5.9. (there will be a follow-up commit to cherrypick a
couple of post-1.5.9 patches).

tests from Mark Patruck, danj, matthieu, millert. reads ok to jung, ok florian.

8 years agoNo modules thus no need for extra space for additional ppp compressions.
jca [Wed, 22 Jun 2016 19:44:26 +0000 (19:44 +0000)]
No modules thus no need for extra space for additional ppp compressions.

ok deraadt@ mikeb@

8 years agoSyslogd can send messages to a user, test what happens if the
bluhm [Wed, 22 Jun 2016 19:29:29 +0000 (19:29 +0000)]
Syslogd can send messages to a user, test what happens if the
terminal is blocking to receive messages.  Stop the fake user
terminal and look for a delayed write debug message from syslogd.
This makes the test more reliable.

8 years agoDon't make the DT_TEXTREL warning fatal. Hopefully this will be temporary,
kettenis [Wed, 22 Jun 2016 13:29:14 +0000 (13:29 +0000)]
Don't make the DT_TEXTREL warning fatal.  Hopefully this will be temporary,
but we first have to make sure that our tree is clean.

ok deraadt@

8 years agoAdd support for the second GMX interface on Octeon II. This enables
visa [Wed, 22 Jun 2016 13:09:35 +0000 (13:09 +0000)]
Add support for the second GMX interface on Octeon II. This enables
ports eth[0-3] on 8-port EdgeRouters. Currently, port eth0 maps to
network interface cnmac4, eth1 to cnmac5 etc.

ok dlg@, tested by martijn@

8 years agohave a consistent exit code when looking for stuff
espie [Wed, 22 Jun 2016 12:18:21 +0000 (12:18 +0000)]
have a consistent exit code when looking for stuff

8 years agoIn iwm(4), clear the in_assoc flag when going down. This flag affects behaviour
stsp [Wed, 22 Jun 2016 11:32:12 +0000 (11:32 +0000)]
In iwm(4), clear the in_assoc flag when going down. This flag affects behaviour
early during startup, e.g. where the BSSID for the MAC context is copied from.
Pointed out by Imre Vadasz.

8 years agoRemove code from iwm(4) which sends DTIM and TSF information to the
stsp [Wed, 22 Jun 2016 11:30:00 +0000 (11:30 +0000)]
Remove code from iwm(4) which sends DTIM and TSF information to the
firmware based on information from the wireless stack. Letting the
firmware deal with these details by itself seems to work better.
Fixes association issues with 8260 hardware for me and Bryan Vyhmeister.
Also tested by jcs@.

8 years agoMake iwm(4) explicitly send multicast frames at the lowest rate, instead of
stsp [Wed, 22 Jun 2016 11:28:27 +0000 (11:28 +0000)]
Make iwm(4) explicitly send multicast frames at the lowest rate, instead of
picking a rate from the firmware RS table. This matches what other drivers do.
Also, pass the correct Tx rate to BPF (tcpdump) for 5GHz, and don't loop over
CCK rates when building the Link-Quality command's RS table for 5GHz.
tested by myself and jcs@

8 years agoAdd curly braces that were missed in rev 1.651. Add parenthesis to make the
kettenis [Wed, 22 Jun 2016 10:13:14 +0000 (10:13 +0000)]
Add curly braces that were missed in rev 1.651.  Add parenthesis to make the
condition in the if statement more readable while I'm there.

ok phessler@, benno@, florian@

8 years agoIdentify UMIP feature, if available.
mlarkin [Wed, 22 Jun 2016 07:22:00 +0000 (07:22 +0000)]
Identify UMIP feature, if available.

ok millert, kettenis, deraadt

8 years agodont need a traliing \ on a line in c code, it's not a macro definition.
dlg [Wed, 22 Jun 2016 06:34:35 +0000 (06:34 +0000)]
dont need a traliing \ on a line in c code, it's not a macro definition.

from patrick keshishian

8 years agorework art_walk so it will behave in an mpsafe world.
dlg [Wed, 22 Jun 2016 06:32:32 +0000 (06:32 +0000)]
rework art_walk so it will behave in an mpsafe world.

art_walk now explicitly takes the same lock used to serialise change
made via rtable_insert and _delete, so it can safely adjust the
refcnts on tables while it recurses into them. they need to still
exist when returning out of the recursion.

it uses srps to access nodes and drops the lock before calling the
callback function. this is because some callbacks sleep (eg, copyout
in the sysctl code that dumps an rtable to userland), which you
shouldnt hold a lock accross. other callbacks attempt to modify
the rtable (eg, marking routes as down when then interface theyre
on goes down), which tries to take the lock again, which probably
wont work in the future.

ok jmatthew@ mpi@

8 years agosync
deraadt [Wed, 22 Jun 2016 03:48:23 +0000 (03:48 +0000)]
sync

8 years agoMain Hyper-V nexus driver, work in progress.
mikeb [Wed, 22 Jun 2016 01:13:07 +0000 (01:13 +0000)]
Main Hyper-V nexus driver, work in progress.

ok mlarkin, deraadt

8 years agoSetup Hyper-V hypercall page and an IDT vector.
mikeb [Wed, 22 Jun 2016 01:12:38 +0000 (01:12 +0000)]
Setup Hyper-V hypercall page and an IDT vector.

ok mlarkin, kettenis, deraadt

8 years agouse the same argument name for -f in usage() as in SYNOPSIS;
jmc [Tue, 21 Jun 2016 22:35:39 +0000 (22:35 +0000)]
use the same argument name for -f in usage() as in SYNOPSIS;

8 years agodo not allow whitespace in macro names, i.e. "this is" = "a variable".
benno [Tue, 21 Jun 2016 21:35:24 +0000 (21:35 +0000)]
do not allow whitespace in macro names, i.e. "this is" = "a variable".
change this in all config parsers in our tree that support macros.
problem reported by sven falempin.

feedback from henning@, stsp@, deraadt@
ok florian@ mikeb@

8 years agoMake usage string match the man page.
ratchov [Tue, 21 Jun 2016 21:16:42 +0000 (21:16 +0000)]
Make usage string match the man page.

suggested by jmc@

8 years agoTo assist debugging TCP connection reuse with NAT, expand the
bluhm [Tue, 21 Jun 2016 16:45:37 +0000 (16:45 +0000)]
To assist debugging TCP connection reuse with NAT, expand the
existing log in pf_state_key_attach() from the failed to the reuse
case.
OK mikeb@

8 years agoRemove code to generate uboot tags. It hardcoded information for a single
kettenis [Tue, 21 Jun 2016 15:39:51 +0000 (15:39 +0000)]
Remove code to generate uboot tags.  It hardcoded information for a single
board and a device tree is required by our kernel now.

ok patrick@, jsg@

8 years agoWhen handling DT_TEXTREL only set the mapping to READ+WRITE, ignore
deraadt [Tue, 21 Jun 2016 15:25:36 +0000 (15:25 +0000)]
When handling DT_TEXTREL only set the mapping to READ+WRITE, ignore
possible EXEC permission for the section, because the proper permission
is set late, and there are no thread concerns here.  Avoids W^X issues
in oddball cases.
ok guenther kettenis

8 years agoadd support to efifb for drawing a console on a coreboot framebuffer
jcs [Tue, 21 Jun 2016 15:24:55 +0000 (15:24 +0000)]
add support to efifb for drawing a console on a coreboot framebuffer
if coreboot's memory table is found, it has a framebuffer entry, and
there is no previously attached efi, vga, or serial console.

useful on chromebooks that have no legacy vga device to get an early
console before inteldrm(4) attaches or, for newer chipsets, a full
console and X with wsfb(4).

ok kettenis

8 years agoHandle textrels like other architectures do.
deraadt [Tue, 21 Jun 2016 15:21:42 +0000 (15:21 +0000)]
Handle textrels like other architectures do.
ok kettenis guenther

8 years agothe manpage documents that af-to does not work on pass out rules, but
benno [Tue, 21 Jun 2016 13:40:43 +0000 (13:40 +0000)]
the manpage documents that af-to does not work on pass out rules, but
the pf.conf parser allows it, which leads a non working configuration
being loaded.
this changes the parser to make pass out .. af-to an error.

ok henning@ mikeb@

8 years agoAdd sc_cookie in sigcontext, as same as other ports.
aoyama [Tue, 21 Jun 2016 12:31:19 +0000 (12:31 +0000)]
Add sc_cookie in sigcontext, as same as other ports.
From Miod Vallat, tested by him and me.

ok deraadt@

8 years agopass file name thru to Subst for better error messages.
espie [Tue, 21 Jun 2016 10:40:37 +0000 (10:40 +0000)]
pass file name thru to Subst for better error messages.
reported by Adam Wolk

8 years agosome formatting and comma tweaks; ok ratchov
jmc [Tue, 21 Jun 2016 07:55:21 +0000 (07:55 +0000)]
some formatting and comma tweaks; ok ratchov

8 years agofix typos in comments and spacing
ratchov [Tue, 21 Jun 2016 06:38:28 +0000 (06:38 +0000)]
fix typos in comments and spacing

8 years agoUpdate manual to "new" audioctl:
ratchov [Tue, 21 Jun 2016 06:32:00 +0000 (06:32 +0000)]
Update manual to "new" audioctl:
- stress that its purpose is to set and get variables, it isn't
  a configuration tool (there's nothing to configure anymore)
- document all audio driver variables
- document the difference between /dev/audioctl0 and /dev/audio0
- give an example of how to test hardware capabilities with
  audioctl

ok semarie@, with help from jmc@, fix from Michael W. Bombardieri

8 years agoReimplement audioctl using new api in a simper way.
ratchov [Tue, 21 Jun 2016 06:26:50 +0000 (06:26 +0000)]
Reimplement audioctl using new api in a simper way.

- group all encoding parameters in a signle string, ex.  "s16le",
  this way we use the same naming scheme as aucat, sndiod and many
  ports.
- remove "properties" as they are not used any longer
- remove the list of encodings as there's no benefit in having it.
  We don't have lists for other parameters (sample rates, channel
  numbers) either.
- add -q option, to look like sysctl
- remove unused -a option
- stop using symlinks in /dev, most other software doesn't use
  them.

ok semarie@