openbsd
5 years agoadd missing imsg names
eric [Fri, 16 Nov 2018 20:55:59 +0000 (20:55 +0000)]
add missing imsg names

5 years agowhen using smtps, tls initialisation must occur after FILTER_CONNECTED
eric [Fri, 16 Nov 2018 20:55:23 +0000 (20:55 +0000)]
when using smtps, tls initialisation must occur after FILTER_CONNECTED
has been evaluated.

ok gilles@

5 years ago+wscons
anton [Fri, 16 Nov 2018 20:20:17 +0000 (20:20 +0000)]
+wscons

5 years agoAdd wscons regress tests, currently limited to SIGIO handling.
anton [Fri, 16 Nov 2018 20:19:21 +0000 (20:19 +0000)]
Add wscons regress tests, currently limited to SIGIO handling.

5 years agoAdd support for Allwinner A64's eMMC controller. It is essentially
patrick [Fri, 16 Nov 2018 20:11:52 +0000 (20:11 +0000)]
Add support for Allwinner A64's eMMC controller.  It is essentially
the same as the MMC controller but has the same DMA max length as
the A10 SoC.  This makes the eMMC work on the Pinebook.

ok jsg@

5 years agoDon't fatal if IPV6_LEAVE_GROUP fails.
reyk [Fri, 16 Nov 2018 19:45:40 +0000 (19:45 +0000)]
Don't fatal if IPV6_LEAVE_GROUP fails.

The underlying interface might have been destroyed or detached and
rad(8) will just cope with that.

OK florian@

5 years agoregen
jcs [Fri, 16 Nov 2018 18:21:07 +0000 (18:21 +0000)]
regen

5 years agoadd more intel 100 series devices
jcs [Fri, 16 Nov 2018 18:20:33 +0000 (18:20 +0000)]
add more intel 100 series devices

5 years agopunctuation and macro can go on the same line;
jmc [Fri, 16 Nov 2018 12:27:32 +0000 (12:27 +0000)]
punctuation and macro can go on the same line;

5 years agosort previous;
jmc [Fri, 16 Nov 2018 12:25:29 +0000 (12:25 +0000)]
sort previous;

5 years agofree(9) sizes for interrupt & isochronous arrays.
mpi [Fri, 16 Nov 2018 11:57:29 +0000 (11:57 +0000)]
free(9) sizes for interrupt & isochronous arrays.

ok visa@

5 years agofree(9) sizes for array of interfaces.
mpi [Fri, 16 Nov 2018 11:56:42 +0000 (11:56 +0000)]
free(9) sizes for array of interfaces.

ok visa@

5 years agofree(9) sizes for array of endpoints.
mpi [Fri, 16 Nov 2018 11:55:56 +0000 (11:55 +0000)]
free(9) sizes for array of endpoints.

ok ratchov@

5 years agodocument DUMMY_PACKAGE
espie [Fri, 16 Nov 2018 10:06:11 +0000 (10:06 +0000)]
document DUMMY_PACKAGE

5 years agokill INDEX thoroughly, point users at portslist, sqlports, pkglocatedb
espie [Fri, 16 Nov 2018 09:54:40 +0000 (09:54 +0000)]
kill INDEX thoroughly, point users at portslist, sqlports, pkglocatedb

5 years agomove describe to obsolete targets
espie [Fri, 16 Nov 2018 09:49:15 +0000 (09:49 +0000)]
move describe to obsolete targets

5 years agodocument reprepare
espie [Fri, 16 Nov 2018 09:18:04 +0000 (09:18 +0000)]
document reprepare

5 years agovlan uses txprio too
dlg [Fri, 16 Nov 2018 08:44:28 +0000 (08:44 +0000)]
vlan uses txprio too

5 years agoswitch from link0 and llprio to txprio for forcing dot1p prios
dlg [Fri, 16 Nov 2018 08:43:52 +0000 (08:43 +0000)]
switch from link0 and llprio to txprio for forcing dot1p prios

5 years agouse txprio, not link0 and llprio, to set the dot1p field in the header.
dlg [Fri, 16 Nov 2018 08:43:08 +0000 (08:43 +0000)]
use txprio, not link0 and llprio, to set the dot1p field in the header.

if you're using llprio and link0, you'll need to update your config.

ok claudio@

5 years agoInclude "id" in pledge (for setres[ug]id, setgroups) if the shell is
nicm [Fri, 16 Nov 2018 06:41:58 +0000 (06:41 +0000)]
Include "id" in pledge (for setres[ug]id, setgroups) if the shell is
privileged and remove it when dropping privileges (set +p), setting a
flag to make sure we don't do it again.

ok deraadt millert

5 years agoredirect stderr of ProxyCommands to /dev/null when ssh is started with
djm [Fri, 16 Nov 2018 06:17:38 +0000 (06:17 +0000)]
redirect stderr of ProxyCommands to /dev/null when ssh is started with
ControlPersist; based on patch from Steffen Prohaska

5 years agomake grandparent-parent-child sshbuf chains robust to use-after-free
djm [Fri, 16 Nov 2018 06:10:29 +0000 (06:10 +0000)]
make grandparent-parent-child sshbuf chains robust to use-after-free
faults if the ancestors are freed before the descendents. Nothing in
OpenSSH uses this deallocation pattern. Reported by Jann Horn

5 years agoBorrow an idea from DragonFly BSD: factor out the "does this symbol match what
guenther [Fri, 16 Nov 2018 05:05:44 +0000 (05:05 +0000)]
Borrow an idea from DragonFly BSD: factor out the "does this symbol match what
we're looking up?" logic from _dl_find_symbol_obj() into matched_symbol(), so
that the former is just the "iterate across the hash" logic.

matched_symbol() returns zero on "not found", one on "found strong
symbol", and negative one on "found weak symbol".  The last of those lets
the caller give up on this object after finding a weak symbol, as there's
no point in continuing to search for a strong symbol in the same object.

ok mpi@

5 years agouse path_absolute() for pathname checks; from Manoj Ampalam
djm [Fri, 16 Nov 2018 03:26:01 +0000 (03:26 +0000)]
use path_absolute() for pathname checks; from Manoj Ampalam

5 years agodisallow empty incoming filename or ones that refer to the current
djm [Fri, 16 Nov 2018 03:03:10 +0000 (03:03 +0000)]
disallow empty incoming filename or ones that refer to the current
directory; based on report/patch from Harry Sintonen

5 years agofix bug in client that was keeping a redundant ssh-agent socket around
djm [Fri, 16 Nov 2018 02:46:20 +0000 (02:46 +0000)]
fix bug in client that was keeping a redundant ssh-agent socket around
for the life of the connection; bz#2912; reported by Simon Tatham;
ok dtucker@

5 years agofix bug in HostbasedAcceptedKeyTypes and PubkeyAcceptedKeyTypes options.
djm [Fri, 16 Nov 2018 02:43:56 +0000 (02:43 +0000)]
fix bug in HostbasedAcceptedKeyTypes and PubkeyAcceptedKeyTypes options.
If only RSA-SHA2 siganture types were specified, then authentication would
always fail for RSA keys as the monitor checks only the base key (not the
signature algorithm) type against *AcceptedKeyTypes.
bz#2746; reported by Jakub Jelen; ok dtucker

5 years agoUnbreak legacy ciphers for prior to 1.1 by setting having a legacy
beck [Fri, 16 Nov 2018 02:41:16 +0000 (02:41 +0000)]
Unbreak legacy ciphers for prior to 1.1 by setting having a legacy
sigalg for MD5_SHA1 and using it as the non sigalgs default
ok jsing@

5 years agosupport a prefix of '@' to suppress echo of sftp batch commands;
djm [Fri, 16 Nov 2018 02:30:20 +0000 (02:30 +0000)]
support a prefix of '@' to suppress echo of sftp batch commands;
bz#2926; ok dtucker@

5 years agoHandle signals that get sent to any thread
tedu [Fri, 16 Nov 2018 02:16:17 +0000 (02:16 +0000)]
Handle signals that get sent to any thread
from Rian Hunter

5 years agodocument txprio ioctl support
dlg [Fri, 16 Nov 2018 01:21:12 +0000 (01:21 +0000)]
document txprio ioctl support

5 years agodocument txprio
dlg [Fri, 16 Nov 2018 01:10:51 +0000 (01:10 +0000)]
document txprio

5 years agogre has a few siblings now
dlg [Fri, 16 Nov 2018 00:58:17 +0000 (00:58 +0000)]
gre has a few siblings now

5 years agoadmin that eoip(4) comes from the gre pseudo device driver
dlg [Thu, 15 Nov 2018 23:05:10 +0000 (23:05 +0000)]
admin that eoip(4) comes from the gre pseudo device driver

5 years agospell an ioctl command better.
dlg [Thu, 15 Nov 2018 23:01:18 +0000 (23:01 +0000)]
spell an ioctl command better.

from markus@

5 years agoadd support for txprio configuration
dlg [Thu, 15 Nov 2018 22:22:03 +0000 (22:22 +0000)]
add support for txprio configuration

5 years agoone more typo noticed while pasting miod a reply;
jmc [Thu, 15 Nov 2018 21:27:31 +0000 (21:27 +0000)]
one more typo noticed while pasting miod a reply;

5 years agoPut all the symbol lookup parameters (except the object being searched) and
guenther [Thu, 15 Nov 2018 21:25:44 +0000 (21:25 +0000)]
Put all the symbol lookup parameters (except the object being searched) and
the return pointers into a structure and pass that to _dl_find_symbol_obj().
Set sl->sl_obj_out in _dl_find_symbol_obj() so that the callers don't
need to each record the object.

ok mpi@

5 years agofix typos in comments; from miod
jmc [Thu, 15 Nov 2018 21:24:48 +0000 (21:24 +0000)]
fix typos in comments; from miod

5 years agoin the "pf: key search" debug message, add the direction. interface *and*
henning [Thu, 15 Nov 2018 13:16:37 +0000 (13:16 +0000)]
in the "pf: key search" debug message, add the direction. interface *and*
dir make debugging much easier than the if alone.

5 years agoAdd [template] to display-panes and choose-{buffer,client,tree} usage
kn [Thu, 15 Nov 2018 10:38:53 +0000 (10:38 +0000)]
Add [template] to display-panes and choose-{buffer,client,tree} usage

OK nicm

5 years agoPort OpenSSL commit 99540ec79491f59ed8b46b4edf130e17dc907f52 -- mitigation
tb [Thu, 15 Nov 2018 05:53:31 +0000 (05:53 +0000)]
Port OpenSSL commit 99540ec79491f59ed8b46b4edf130e17dc907f52 -- mitigation
for a timing vullnerability in ECDSA signature generation (CVE-2018-0735).

Note that the blinding that we introduced back in June for ECDSA and DSA
should mitigate this and related issues. This simply adds an additional
layer of protection.

discussed with jsing

5 years agoscrub opts dont set tos, so remove it from the scrub_opts struct
dlg [Thu, 15 Nov 2018 03:22:01 +0000 (03:22 +0000)]
scrub opts dont set tos, so remove it from the scrub_opts struct

ok deraadt@

5 years agoTheodore Wynnychenko discovered the gettytab "lo=path" feature didn't work
deraadt [Thu, 15 Nov 2018 03:04:10 +0000 (03:04 +0000)]
Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't work
anymore with unveil wired to /usr/bin/login.  So let's parse gettytab a bit
earlier to learn which login path to unveil. Later in the loop gettytab is
re-parsed, if the login changes re-exec getty to reach the unveil from the top.
ok millert, also discussed with mestre

5 years agothe variable holding the ip tos should be called tos, not ttl.
dlg [Thu, 15 Nov 2018 00:05:00 +0000 (00:05 +0000)]
the variable holding the ip tos should be called tos, not ttl.

no functional change.

5 years agoprovide ip_tos_patch() for setting ip_tos and patching the ipv4 cksum.
dlg [Wed, 14 Nov 2018 23:55:04 +0000 (23:55 +0000)]
provide ip_tos_patch() for setting ip_tos and patching the ipv4 cksum.

previously the gif code would patch the tos field and not recalc
the cksum, which would cause ip input code to drop the packet due
to a cksum failure. the ipip code patched ip_tos and unconditionally
recalculated the cksum, making it correct, but also wiping out any
errors that may have been present before the recalculation. updating
the cksum rather than replacing it lets cksum failures still fire.

ip_tos_patch() is provided in the ecn code since it's because of ecn
propagation that we need to update the tos field. internally it
works like pf_patch_8 and pf_cksum_fixup, but since pf is optional
it rolls its own code. procter may fix that in the future...

ok claudio@

5 years agoWarn on deprecated 'vlan' and 'vlandev' option usage
kn [Wed, 14 Nov 2018 21:25:04 +0000 (21:25 +0000)]
Warn on deprecated 'vlan' and 'vlandev' option usage

These were superseeded by 'vnetid' and 'parent' in june 2017 and will be
removed in the future.

"Looks right" deraadt, OK benno

5 years agoRecord an inter-library dependency on libcurses in libedit and libreadline,
sthen [Wed, 14 Nov 2018 20:43:48 +0000 (20:43 +0000)]
Record an inter-library dependency on libcurses in libedit and libreadline,
avoiding runtime failures on architectures using ld.lld. Also add a note to
libcurses shlib_version reminding about bumps (as done with libcrypto/libssl).

Thanks guenther@ for suggestions of tests involving library bumps and jca@
for doing these tests and hint about DPADD.

Looks good kettenis@, ok jca@

6 years agoRevert previous, it breaks regress.
mpi [Wed, 14 Nov 2018 17:52:48 +0000 (17:52 +0000)]
Revert previous, it breaks regress.

6 years agoUserland malloc(3) & free(3) take only one argument.
mpi [Wed, 14 Nov 2018 17:48:52 +0000 (17:48 +0000)]
Userland malloc(3) & free(3) take only one argument.

6 years agoFix wrong sizeof argument by using 'uint16_t *', with minor nit from tb@,
mestre [Wed, 14 Nov 2018 17:24:14 +0000 (17:24 +0000)]
Fix wrong sizeof argument by using 'uint16_t *', with minor nit from tb@,
instead of 'uint16_t'

Found with llvm's static analyzer, noticed that it was also already reported in
Coverity CID 155890 and to ensure this was correct also inspected OpenSSL's
equivalent code.

OK tb@ and jsing@

6 years agoPlug memory leak in host()'s error code path
mestre [Wed, 14 Nov 2018 17:24:01 +0000 (17:24 +0000)]
Plug memory leak in host()'s error code path

OK claudio@

6 years agofree(9) sizes for configuration descriptors, missed in previous.
mpi [Wed, 14 Nov 2018 17:18:18 +0000 (17:18 +0000)]
free(9) sizes for configuration descriptors, missed in previous.

6 years agoBatch copyout(9)s in preparation for finer locking.
mpi [Wed, 14 Nov 2018 17:07:44 +0000 (17:07 +0000)]
Batch copyout(9)s in preparation for finer locking.

Tested by Hrvoje Popovski, inputs and ok visa@

6 years agofree(9) sizes for configuration descriptors.
mpi [Wed, 14 Nov 2018 17:00:33 +0000 (17:00 +0000)]
free(9) sizes for configuration descriptors.

ok tedu@, visa@

6 years agomv imitates, but no longer uses, cp and rm to cross filesystems.
tedu [Wed, 14 Nov 2018 15:53:31 +0000 (15:53 +0000)]
mv imitates, but no longer uses, cp and rm to cross filesystems.

6 years agoRemove slurpit definition. Leftover from earlier cleanup by otto@.
martijn [Wed, 14 Nov 2018 15:16:09 +0000 (15:16 +0000)]
Remove slurpit definition. Leftover from earlier cleanup by otto@.

6 years agoRemove an unneeded union wrapping the skipsteps pointer.
claudio [Wed, 14 Nov 2018 14:03:36 +0000 (14:03 +0000)]
Remove an unneeded union wrapping the skipsteps pointer.
OK phessler@

6 years agoAdjust comment.
claudio [Wed, 14 Nov 2018 12:14:41 +0000 (12:14 +0000)]
Adjust comment.

6 years agoMake sed's -i flag more compatible with what gsed does.
martijn [Wed, 14 Nov 2018 10:59:33 +0000 (10:59 +0000)]
Make sed's -i flag more compatible with what gsed does.
- Reset the hold-space in between files
- quit the editor as soon as a 'q' command is found
- Make sure the temp-file is written back to the original file if we quit
  the editor

temp-file not written back issue found by Time Chase.
Lots of feedback from millert@ and schwarze@
OK millert@

6 years agoAdd back part of the changes to takeover the firmware framebuffer on
jsg [Wed, 14 Nov 2018 06:37:36 +0000 (06:37 +0000)]
Add back part of the changes to takeover the firmware framebuffer on
sparc64 lost in the update to linux 4.4.  Compile tested only.

6 years agodidn't found -> didn't find.
tb [Wed, 14 Nov 2018 06:24:21 +0000 (06:24 +0000)]
didn't found -> didn't find.

From Edgar Pettijohn III

6 years agoSetup radeondrm burner task. Missed when updating to linux 4.4.
jsg [Wed, 14 Nov 2018 04:36:02 +0000 (04:36 +0000)]
Setup radeondrm burner task.  Missed when updating to linux 4.4.
Fixes wsconsctl display.screen_off panic reported by Dmitry Murti.

6 years agoremove the encapsulation headers before looking at the inner headers
dlg [Wed, 14 Nov 2018 03:20:03 +0000 (03:20 +0000)]
remove the encapsulation headers before looking at the inner headers

it works less well when you look before the adj

6 years agorevert 1.121. i got confused between ecn on ingress and egress
dlg [Wed, 14 Nov 2018 02:49:15 +0000 (02:49 +0000)]
revert 1.121. i got confused between ecn on ingress and egress

6 years agoIn TLS1.2 we use evp_sha1 if we fall back this far, not evp_md5_sha1 as in 1.1
beck [Wed, 14 Nov 2018 02:27:15 +0000 (02:27 +0000)]
In TLS1.2 we use evp_sha1 if we fall back this far, not evp_md5_sha1 as in 1.1
Makes connections to outlook.office365.com work

6 years agoget ecn ingress args the right way round. again.
dlg [Wed, 14 Nov 2018 01:30:38 +0000 (01:30 +0000)]
get ecn ingress args the right way round. again.

6 years agouse the txprio setting to populate the tos in keepalive packets.
dlg [Wed, 14 Nov 2018 01:27:00 +0000 (01:27 +0000)]
use the txprio setting to populate the tos in keepalive packets.

the mbuf prio will still be set according to the llprio value, but the
tos on the packet may be forced to a specific number by txprio

6 years agoaccording to ip_ipip.c, rfc1853 says not to copy the ttl on decapsulation
dlg [Wed, 14 Nov 2018 01:06:06 +0000 (01:06 +0000)]
according to ip_ipip.c, rfc1853 says not to copy the ttl on decapsulation

rfc1853 is about IP in IP Tunneling. rfc2003 about IP Encapsulation
within IP agrees.

6 years agocheck various community combinations
claudio [Tue, 13 Nov 2018 16:54:30 +0000 (16:54 +0000)]
check various community combinations

6 years agoAdd some coverage for the ioctl() interface.
visa [Tue, 13 Nov 2018 16:27:22 +0000 (16:27 +0000)]
Add some coverage for the ioctl() interface.

6 years agoTemporary workaround for breakage seen in www.videolan.org with curve mismatch
beck [Tue, 13 Nov 2018 15:50:54 +0000 (15:50 +0000)]
Temporary workaround for breakage seen in videolan.org with curve mismatch

6 years agocommit again the cleanup part that didn't break anything
espie [Tue, 13 Nov 2018 14:51:35 +0000 (14:51 +0000)]
commit again the cleanup part that didn't break anything
and was ok'd millert@

6 years agoit's expected for pkg_add to exit 1 now, since it's missing one dependent
espie [Tue, 13 Nov 2018 14:37:34 +0000 (14:37 +0000)]
it's expected for pkg_add to exit 1 now, since it's missing one dependent
package it wants to update.
what matters is the list of installed files.

6 years agoknock out a useless sentence, and reword another to make it read more nicely;
jmc [Tue, 13 Nov 2018 14:34:47 +0000 (14:34 +0000)]
knock out a useless sentence, and reword another to make it read more nicely;
ok otto

6 years agoFix previous, which broke ping -T.
dhill [Tue, 13 Nov 2018 14:30:36 +0000 (14:30 +0000)]
Fix previous, which broke ping -T.

ok dlg@

6 years agoAdd regress tests for pipe fcntl(fd, F_GETOWN).
visa [Tue, 13 Nov 2018 13:05:42 +0000 (13:05 +0000)]
Add regress tests for pipe fcntl(fd, F_GETOWN).

6 years agoFix fcntl(fd, F_GETOWN) with pipes. As a regression
visa [Tue, 13 Nov 2018 13:02:20 +0000 (13:02 +0000)]
Fix fcntl(fd, F_GETOWN) with pipes. As a regression
of kern_descrip.c r1.177 and sys_pipe.c r1.82, the call always
returned an error.

OK jca@ anton@ mpi@

6 years agoFix a slip in previous. FFSSZ should reflect the "pa" disktab field,
visa [Tue, 13 Nov 2018 12:48:23 +0000 (12:48 +0000)]
Fix a slip in previous. FFSSZ should reflect the "pa" disktab field,
not "pc", as is documented in the file. However, the value of FFSSZ
is not used anywhere so remove the variable.

Pointed out by miod@

6 years agoInitialize context property in alignment test handler function.
nicm [Tue, 13 Nov 2018 11:36:37 +0000 (11:36 +0000)]
Initialize context property in alignment test handler function.

6 years agoRemove #if'ed 0 code around a broken pledge. Due to some ioctls and sysctls
mestre [Tue, 13 Nov 2018 07:29:07 +0000 (07:29 +0000)]
Remove #if'ed 0 code around a broken pledge. Due to some ioctls and sysctls
pledge cannot be used, nevertheless since we now have unveil available we can
use it to guarantee that in this particular case the snmpe process cannot
access the filesystem at all, therefore close a big attack vector and achieve
a great level of protection even without being able to use pledge.

prodded by deraadt@

6 years agofix markup error (missing blank before delimiter);
schwarze [Tue, 13 Nov 2018 07:22:45 +0000 (07:22 +0000)]
fix markup error (missing blank before delimiter);
from Mike Frysinger <vapier at gentoo dot org>

6 years agoGrow sgi iso to make room for clang.
visa [Tue, 13 Nov 2018 06:24:36 +0000 (06:24 +0000)]
Grow sgi iso to make room for clang.

Cluebat and OK deraadt@

6 years agoAdd GNU_HASH #defines; improve readelf output for SHT_GNU_HASH
guenther [Tue, 13 Nov 2018 04:47:36 +0000 (04:47 +0000)]
Add GNU_HASH #defines; improve readelf output for SHT_GNU_HASH

ok naddy@ jca@

6 years agoJust err if we can't create secrets
beck [Tue, 13 Nov 2018 01:32:33 +0000 (01:32 +0000)]
Just err if we can't create secrets

6 years agoNULL out mdctx to prevent possible double free introduced in version 1.4
beck [Tue, 13 Nov 2018 01:25:13 +0000 (01:25 +0000)]
NULL out mdctx to prevent possible double free introduced in version 1.4
Spotted by maestre@, ok tb@

6 years agoFix pkey_ok to be less strange, and add cuve checks required for the EC ones
beck [Tue, 13 Nov 2018 01:19:48 +0000 (01:19 +0000)]
Fix pkey_ok to be less strange, and add cuve checks required for the EC ones
ok tb@

6 years agoget the inner and outer tos values right for passing to ip_ecn_ingress
dlg [Tue, 13 Nov 2018 01:16:31 +0000 (01:16 +0000)]
get the inner and outer tos values right for passing to ip_ecn_ingress

6 years agoadd txprio support to gre, mgre, egre, nvgre, and eoip
dlg [Tue, 13 Nov 2018 00:03:18 +0000 (00:03 +0000)]
add txprio support to gre, mgre, egre, nvgre, and eoip

for l3 interfaces (gre and mgre), allow txprio from the payload,
the mbuf, or a hardcoded value. for l2 interfaces (egre, ngre, and
eoip), get txprio from the mbuf or a hardcoded value.

ok claudio@

6 years agoadd txprio setting support
dlg [Tue, 13 Nov 2018 00:00:43 +0000 (00:00 +0000)]
add txprio setting support

gif encaps l3, so it can get a prio from the payload, as well as
from the mbuf itself, or a hardcoded value.

ok claudio@

6 years agoadd txprio support
dlg [Mon, 12 Nov 2018 23:57:06 +0000 (23:57 +0000)]
add txprio support

etherip puts the prio in the encapsulating ip header, and supports
using hardcoded prio values or the prio from the mbuf. it encapsulates
ethernet, which doesnt have a prio field unelss you parse the ether
payload, which is not worth it.

ok claudio@

6 years agoonly let root configure the txprio setting on an interface
dlg [Mon, 12 Nov 2018 23:41:22 +0000 (23:41 +0000)]
only let root configure the txprio setting on an interface

ok claudio@

6 years agoadd support for txprio settings on interfaces
dlg [Mon, 12 Nov 2018 23:40:37 +0000 (23:40 +0000)]
add support for txprio settings on interfaces

display of the currently configured txprio setting is added to the
encap line, since it's configuring something that affects the
population of an encapsulation header.

it also adds a txprio argument to ifconfig so the setting can be
changed to "payload", "packet", or a number between 0 and 7.

ok claudio@

6 years agoadd ifreq bits for the tx header prio field ioctls
dlg [Mon, 12 Nov 2018 23:34:48 +0000 (23:34 +0000)]
add ifreq bits for the tx header prio field ioctls

a tx header prio can set to a fixed value from 0 to 7, or magic
values to represent populating the prio field from the encapsulated
packet, or from the mbuf prio value.

ok claudio@

6 years agoadd ioctl commands for the setting of prio fields in tx headers
dlg [Mon, 12 Nov 2018 23:32:42 +0000 (23:32 +0000)]
add ioctl commands for the setting of prio fields in tx headers

this will be used by encap interfaces where their headers have
fields to store a priority, eg, the dot1p bit of vlan/svlan headers,
or the ip tos or tclass field int the outer ip header in gre, gif,
etherip, and vxlan.

ok claudio@

6 years agotweak previous;
jmc [Mon, 12 Nov 2018 18:27:31 +0000 (18:27 +0000)]
tweak previous;

6 years agoMissing initialization for pub_key. CID 184303.
tb [Mon, 12 Nov 2018 17:39:17 +0000 (17:39 +0000)]
Missing initialization for pub_key. CID 184303.

ok bcook

6 years agoAdd initial regress tests for sigio.
visa [Mon, 12 Nov 2018 16:50:28 +0000 (16:50 +0000)]
Add initial regress tests for sigio.

6 years agoRestart when SSID change is noted in RTM_80211INFO. Thus ensuring
krw [Mon, 12 Nov 2018 16:46:02 +0000 (16:46 +0000)]
Restart when SSID change is noted in RTM_80211INFO. Thus ensuring
correct lease is discovered/renewed and lease file is properly
updated.

Improves co-existance with new 'join' feature. Issues first noted and
many tests by anton@.

Many suggestions and tweaks from claudio@, stsp@, anton@.

ok claudio@ stsp@ anton@ phessler@