openbsd
5 years agofix previous
eric [Tue, 11 Dec 2018 10:31:45 +0000 (10:31 +0000)]
fix previous

ok gilles@

5 years agostyle
espie [Tue, 11 Dec 2018 10:18:37 +0000 (10:18 +0000)]
style

5 years agobgpctl can no long reuse the aspath_match function from bgpd so move the
claudio [Tue, 11 Dec 2018 09:03:36 +0000 (09:03 +0000)]
bgpctl can no long reuse the aspath_match function from bgpd so move the
roughly the same function here called match_aspath().
OK denis@

5 years agoRefactor aspath code a bit. Move cached source_as (for origin validation)
claudio [Tue, 11 Dec 2018 09:02:14 +0000 (09:02 +0000)]
Refactor aspath code a bit. Move cached source_as (for origin validation)
into struct aspath and pass that struct to aspath_match().
OK denis@

5 years agogenerate an event when a helo name identifies a link
gilles [Tue, 11 Dec 2018 08:40:56 +0000 (08:40 +0000)]
generate an event when a helo name identifies a link

5 years agoremove unnecessary calls to getsockname()
eric [Tue, 11 Dec 2018 07:57:31 +0000 (07:57 +0000)]
remove unnecessary calls to getsockname()

ok gilles@

5 years agoExtend vmctl start -B argument to work for disk, cdrom and net.
claudio [Tue, 11 Dec 2018 07:44:25 +0000 (07:44 +0000)]
Extend vmctl start -B argument to work for disk, cdrom and net.
Currently SeaBIOS will respect disk and cdrom and our kernel will
understand net.
OK ccardenas@, reyk@, mlarkin@

5 years agoImprove the cert_*() interface. Use the return value to tell whether
eric [Tue, 11 Dec 2018 07:25:57 +0000 (07:25 +0000)]
Improve the cert_*() interface. Use the return value to tell whether
the request is pending (waiting for an async event) or not.  Success
or failure is always reported through the callback function.

ok gilles@

5 years agoteach libtool to build shared libraries with a soname
semarie [Tue, 11 Dec 2018 05:45:14 +0000 (05:45 +0000)]
teach libtool to build shared libraries with a soname

ok naddy@

5 years agoprovide ifq_is_priq, mostly so things can tell if hfsc is in effect or not.
dlg [Tue, 11 Dec 2018 01:36:42 +0000 (01:36 +0000)]
provide ifq_is_priq, mostly so things can tell if hfsc is in effect or not.

5 years agouse ifq_hdatalen for handling the FIONREAD ioctl
dlg [Tue, 11 Dec 2018 01:34:10 +0000 (01:34 +0000)]
use ifq_hdatalen for handling the FIONREAD ioctl

ok stsp@

5 years agodocument ifq_hdatalen()
dlg [Tue, 11 Dec 2018 01:33:40 +0000 (01:33 +0000)]
document ifq_hdatalen()

ok stsp@

5 years agoadd ifq_hdatalen for getting the size of the packet at the head of an ifq
dlg [Tue, 11 Dec 2018 01:33:05 +0000 (01:33 +0000)]
add ifq_hdatalen for getting the size of the packet at the head of an ifq

this gets the locks right, and returns 0 if there's no packet available.

ok stsp@

5 years agosplit ether_output into resolution, encapsulation, and output functions
dlg [Tue, 11 Dec 2018 01:27:08 +0000 (01:27 +0000)]
split ether_output into resolution, encapsulation, and output functions

if if_output can be overridden on ethernet interfaces, it will allow
things like vlan to do it's packet encapsulation during output
before putting the packet directly on the underlying interface for
output.

this has two benefits. first, it can avoid having ether_output on
pseudo interfaces recurse, which makes profiling of the network
stack a lot clearer. secondly, and more importantly, it allows
pseudo ethernet interface packet encapsulation to by run concurrently
by the stack, rather than having packets unnecessarily serialied
by an ifq.

this diff just splits ether_output up, it doesnt have any interface
take advantage of it yet.

tweaks and ok claudio@

5 years agoWhen forwarding IPv6 packets, generated ICMP6 packets used the
bluhm [Mon, 10 Dec 2018 23:00:01 +0000 (23:00 +0000)]
When forwarding IPv6 packets, generated ICMP6 packets used the
interface address of the route as source address.  To avoid using
link-local addresses in ICMP6 packets sent into networks where they
are out of scope, use the regular IPv6 source selection algorithm
also in this icmp6_reflect() case.
reported by sthen@; fix from Arnaud BRAND; OK claudio@

5 years agoImplement the fw_cfg interface basics and use it to set the bootorder
claudio [Mon, 10 Dec 2018 21:30:33 +0000 (21:30 +0000)]
Implement the fw_cfg interface basics and use it to set the bootorder
if a bootdevice was forced. This implements both the pure IO port interface
and also the new DMA interface, a few direct commands are implemented which
are needed but in general the "file" interface should be used. There is no
write support for the guest. Tested against the latest vmm-firmware port.
This requires also a -current kernel to pass the IO ports to vmd(8).
OK mlarkin@ ccardenas@

5 years agoNo need to \n in log_debug. Part of a larger diff.
claudio [Mon, 10 Dec 2018 21:24:22 +0000 (21:24 +0000)]
No need to \n in log_debug. Part of a larger diff.
OK mlarkin@ ccardenas@

5 years agoStart passing the IO ports 0x510, 0x511, 0x514, and 0x518 to vmd(8).
claudio [Mon, 10 Dec 2018 21:13:59 +0000 (21:13 +0000)]
Start passing the IO ports 0x510, 0x511, 0x514, and 0x518 to vmd(8).
These IO ports are used by qemu's fw_cfg interface and vmd(8) will start
using it to pass options to SeaBIOS.
OK mlarkin@

5 years agoadvance the progress meter while skipping remaning files
espie [Mon, 10 Dec 2018 19:19:04 +0000 (19:19 +0000)]
advance the progress meter while skipping remaning files
this gets rid of the "hung" impression on updating texlive, since most
files match, and the packages are so gigantisch the meter appears to stay
at 0% forever.

5 years agocorrect inaccurate and misplaced information in CAVEATS
schwarze [Mon, 10 Dec 2018 17:12:24 +0000 (17:12 +0000)]
correct inaccurate and misplaced information in CAVEATS
and move it in part to the DESCRIPTION, in part to STANDARDS;
triggered by a loosely related bug report from Lars dot Nooden at gmail dot com;
OK jmc@, and no opposition when shown on bugs@

5 years agoEnsure that we close the file descriptor after loading microcode.
jsing [Mon, 10 Dec 2018 16:52:02 +0000 (16:52 +0000)]
Ensure that we close the file descriptor after loading microcode.

Otherwise we end up keeping file descriptor and inode related buffers
around, that are unnecessarily consuming memory.

ok deraadt@ patrick@

5 years agoRemove useless macros
kn [Mon, 10 Dec 2018 16:48:15 +0000 (16:48 +0000)]
Remove useless macros

These are just unhelpful case conversion.

OK sashan henning

5 years agoDo not call free on a non-allocated pointer.
jsing [Mon, 10 Dec 2018 16:48:05 +0000 (16:48 +0000)]
Do not call free on a non-allocated pointer.

ok deraadt@

5 years agoremove qname-minimisation from sample config, this was turned on by
sthen [Mon, 10 Dec 2018 16:46:03 +0000 (16:46 +0000)]
remove qname-minimisation from sample config, this was turned on by
default upstream in 1.7.2 (picked up by us with the update to 1.7.3).

ok florian@

5 years agoUpdate to 4.1.26
florian [Mon, 10 Dec 2018 16:09:11 +0000 (16:09 +0000)]
Update to 4.1.26
OK sthen

5 years agoAdd a velocity sensor type (displayed as m/s)
landry [Mon, 10 Dec 2018 13:35:54 +0000 (13:35 +0000)]
Add a velocity sensor type (displayed as m/s)

Change distance sensor type to be displayed as meters with 3 decimals
instead of millimeters.

ok mpi@ kettenis@

5 years agoImprove speed for the multi-threaded case by reducing lock contention.
otto [Mon, 10 Dec 2018 07:57:49 +0000 (07:57 +0000)]
Improve speed for the multi-threaded case by reducing lock contention.
tested by many; ok florian@

5 years agoClean up the mec(4) MII read/write routines a bit.
visa [Mon, 10 Dec 2018 05:42:34 +0000 (05:42 +0000)]
Clean up the mec(4) MII read/write routines a bit.

The PHY register offsets are adjusted because the registers are accessed
using 64-bit loads and stores.

From miod@

5 years agoFix phy discovery on O2 systems.
visa [Mon, 10 Dec 2018 05:40:34 +0000 (05:40 +0000)]
Fix phy discovery on O2 systems.

After a cold boot, the mii bus appears to take some time to initialize;
the phy does not answer to address 8 but to a larger address (10 or 11),
then, after being reset, to its correct address of 8.

So the kernel would discover the phy at a wrong address, attach it, and
after it gets reset, reading from the phy at the wrong address would
return either all bits clear or all bits set, confusing the link speed
logic without any way to recover.

Work around the issue by resetting all phys found when the interface is
reset for the first time. Thus, by the time mii_attach() runs and walks
the bus again, the phy will answer at the right address.

From miod@

5 years agono need to pass rdns and fcrdns info to helo/ehlo proc filter lines
gilles [Sun, 9 Dec 2018 21:43:46 +0000 (21:43 +0000)]
no need to pass rdns and fcrdns info to helo/ehlo proc filter lines

5 years agoZap duplicate signatures
kn [Sun, 9 Dec 2018 19:38:40 +0000 (19:38 +0000)]
Zap duplicate signatures

Redundant under _KERNEL since introduction in r1.260 from 2006.

OK jca

5 years agoKeep usage in sync with logic if OPENSSL_NO_DES is set.
tobias [Sun, 9 Dec 2018 19:30:34 +0000 (19:30 +0000)]
Keep usage in sync with logic if OPENSSL_NO_DES is set.

ok jmc@, jsing@

5 years agoallow check-rdns and check-fcrdns in connect, helo/ehlo, mail-from, rcpt-to
gilles [Sun, 9 Dec 2018 18:24:15 +0000 (18:24 +0000)]
allow check-rdns and check-fcrdns in connect, helo/ehlo, mail-from, rcpt-to
hooks

ok eric@

5 years agoadd check-fcrdns builtin filter
gilles [Sun, 9 Dec 2018 18:05:20 +0000 (18:05 +0000)]
add check-fcrdns builtin filter

ok eric@

5 years agono longer pass rdns in all filtering requests, they can be retrieved from
gilles [Sun, 9 Dec 2018 17:37:15 +0000 (17:37 +0000)]
no longer pass rdns in all filtering requests, they can be retrieved from
the filter session.

5 years agoreverse bultin filters matching logic, to make it easier for human brains
gilles [Sun, 9 Dec 2018 17:20:19 +0000 (17:20 +0000)]
reverse bultin filters matching logic, to make it easier for human brains
to understand

discussed with eric@

5 years agounbreak builtin filters after last simplification in smtp_session
gilles [Sun, 9 Dec 2018 17:08:52 +0000 (17:08 +0000)]
unbreak builtin filters after last simplification in smtp_session

5 years agoadd client and listener address, as well as client rDNS and FCrDNS lookup
gilles [Sun, 9 Dec 2018 16:37:51 +0000 (16:37 +0000)]
add client and listener address, as well as client rDNS and FCrDNS lookup
result to the filter_session structure upon filter session allocation. it
will allow me to simplify all filter hooks.

5 years agowhen doing the rDNS lookup, require getnameinfo to return a hostname not an
gilles [Sun, 9 Dec 2018 15:26:03 +0000 (15:26 +0000)]
when doing the rDNS lookup, require getnameinfo to return a hostname not an
address by passing the NI_NAMREQD flag

ok eric@

5 years agoadd basic MPLS filtering support
denis [Sun, 9 Dec 2018 15:07:06 +0000 (15:07 +0000)]
add basic MPLS filtering support

OK claudio@ jca@

5 years agoMake sure that the prefixlen returned by mask2prefixlen is never bigger
remi [Sun, 9 Dec 2018 14:56:24 +0000 (14:56 +0000)]
Make sure that the prefixlen returned by mask2prefixlen is never bigger
than 128. Initially proposed by claudio@ for bgpd.

ok claudio@

5 years agoWhen -B is used to specify a specific boot device also change the reboot
claudio [Sun, 9 Dec 2018 12:26:38 +0000 (12:26 +0000)]
When -B is used to specify a specific boot device also change the reboot
behaviour of vmd to stop / exit at guest reboot.
OK ccardenas@

5 years agostyle; OK otto
florian [Sun, 9 Dec 2018 11:32:02 +0000 (11:32 +0000)]
style; OK otto

5 years agorevert previous, it breaks regress and the llvm, gtk+2, and gtk+3 ports
schwarze [Sat, 8 Dec 2018 23:11:24 +0000 (23:11 +0000)]
revert previous, it breaks regress and the llvm, gtk+2, and gtk+3 ports
because it changes the behaviour for empty input files;
revert requested by naddy@ and sthen@

5 years agossize_t and unsigned int may be different sizes. Use ssize_t instead
krw [Sat, 8 Dec 2018 23:06:41 +0000 (23:06 +0000)]
ssize_t and unsigned int may be different sizes. Use ssize_t instead
of unsigned int for value being compared to the results of writev()
and sendmsg() calls.

Noticed by naddy@ on i386 compile.

5 years agoFix kill [-SIGNAME | -s SIGNAME] and simplify
jca [Sat, 8 Dec 2018 21:03:51 +0000 (21:03 +0000)]
Fix kill [-SIGNAME | -s SIGNAME] and simplify

While the code intended to support both -s NAME and -s SIGNAME, the
tests performed were wrong.  Replace convoluted code with less cryptic
conditionals.  ok anton@

5 years agoBasic regress test for kill -s SIG[NAME] (now failing)
jca [Sat, 8 Dec 2018 12:12:45 +0000 (12:12 +0000)]
Basic regress test for kill -s SIG[NAME] (now failing)

Prodded by anton@

5 years agoUse correct RFC 3464 specified values for Action field in a DSN.
sunil [Sat, 8 Dec 2018 08:01:15 +0000 (08:01 +0000)]
Use correct RFC 3464 specified values for Action field in a DSN.
error -> failed
success -> delivered

This fixes DSN parsing for Mailman. Issue reported by Cristiano
Costa on misc@opensmtpd.org.

While here, rename enums to reflect the intent and properly handle
envelope ascii load/dump to understand change in the values.

Suggestions and ok gilles@

5 years agoformat a pair of dashes as "\(em" rather than "--",
schwarze [Fri, 7 Dec 2018 23:21:31 +0000 (23:21 +0000)]
format a pair of dashes as "\(em" rather than "--",
and a normal hyphen as "-" rather than "\-"

5 years agozap trailing whitespace
anton [Fri, 7 Dec 2018 21:59:57 +0000 (21:59 +0000)]
zap trailing whitespace

5 years agoFor shared interrupts we need to make sure that we register
patrick [Fri, 7 Dec 2018 21:33:28 +0000 (21:33 +0000)]
For shared interrupts we need to make sure that we register
with the lowest IPL.  Once we actually run the IRQ handler
we raise to the highest IPL.  Fixes a crash seen when having
a network card in the PCIe slot of the MacchiatoBin.

ok ccardenas@

5 years ago"every" is in seconds; from ross l richardson
jmc [Fri, 7 Dec 2018 19:29:38 +0000 (19:29 +0000)]
"every" is in seconds; from ross l richardson

5 years agoReordering
danj [Fri, 7 Dec 2018 18:07:55 +0000 (18:07 +0000)]
Reordering

- Uppercase options come before lowercase ones
- Sort alphabetically some parameters

From Matthew Martin
"if it's just reordering, you don't need my okay, go ahead" -- espie@

5 years agoMake sure the TAP extension is only added to the vector when needed.
mpi [Fri, 7 Dec 2018 16:23:57 +0000 (16:23 +0000)]
Make sure the TAP extension is only added to the vector when needed.

Fix a problem reported by Mark Patruck and dhill@

ok markus@, dhill@

5 years agofree(9) sizes for netcred.
mpi [Fri, 7 Dec 2018 16:21:19 +0000 (16:21 +0000)]
free(9) sizes for netcred.

ok visa@

5 years agoStop passing `sc' when it isn't needed and use `ifp' where it's good
mpi [Fri, 7 Dec 2018 16:19:40 +0000 (16:19 +0000)]
Stop passing `sc' when it isn't needed and use `ifp' where it's good
enough.

ok sthen@, visa@

5 years agoRemove useless spl protection.
mpi [Fri, 7 Dec 2018 16:17:51 +0000 (16:17 +0000)]
Remove useless spl protection.

ok visa@

5 years agoTest that "b" and "t" (branch) commands can be followed by a semicolon
schwarze [Fri, 7 Dec 2018 15:30:31 +0000 (15:30 +0000)]
Test that "b" and "t" (branch) commands can be followed by a semicolon
and another command.  Related to compile.c rev. 1.50.

millert@ OK'ed this diff without seeing it before it even occurred to me
that i might write it - but i guess below regress/, that's fair enough.

5 years agoAs an extension to POSIX, for consistency with our behaviour for
schwarze [Fri, 7 Dec 2018 14:45:40 +0000 (14:45 +0000)]
As an extension to POSIX, for consistency with our behaviour for
the "b" and "t" commands with a label, and for compatibility with
GNU sed, also accept ";" followed by another command after "b"
and "t" commands without a label: branch to the end of the script
instead of erroring out.  Parsing is unchanged.

Missing feature reported by Lars dot Nooden at gmail dot com on bugs@.
OK martijn@ millert@

5 years agoproperly handle EAI_NODATA and EAI_NONAME in fc-rdns lookups
gilles [Fri, 7 Dec 2018 14:18:17 +0000 (14:18 +0000)]
properly handle EAI_NODATA and EAI_NONAME in fc-rdns lookups

ok eric@

5 years agoI noticed the "pf table handler" process not going away on dhcpd restart,
henning [Fri, 7 Dec 2018 12:52:47 +0000 (12:52 +0000)]
I noticed the "pf table handler" process not going away on dhcpd restart,
looked at the error handling here, and.... oh my.
If opening /dev/pf on startup fails, don't just warn and move on, but bail.
If chroot (or the chdir after) fail, don't just warn and move on, bail.
If dropping privileges fails, the last thing we want to do is to just move
on with root privs, having warned or not.
If the pipe to the parent process is closed, that almost certainly means
that the parent process went away, and it absolutely certainly means that
the table handler process has no meaningful reason to exist any more, thus
bail.
ok florian ccardenas krw

5 years agoRemove public resolver IP addresses, just provide a neutral "documentation
sthen [Fri, 7 Dec 2018 11:54:04 +0000 (11:54 +0000)]
Remove public resolver IP addresses, just provide a neutral "documentation
prefix" address instead - there are so many available with varying
policies that this isn't a good place to list them (and might imply
some kind of recommendation which is not intended).

Particularly prompted by several on the previous list (he.net and opendns)
strip RRSIG from results which cause DNSSEC failures now that validation
is enabled in the example config as noticed by solene@.

While there, shrink qname-minimisation comment to match other nearby
comments, and drop dns64 example which is quite a specialist use case
and not really needed in this basic example.

5 years agoWe are not going to send a neighbor advertisement from a non-master
florian [Fri, 7 Dec 2018 10:01:06 +0000 (10:01 +0000)]
We are not going to send a neighbor advertisement from a non-master
carp interface. Move the check to the beginning of the function to
make it clear that there are no other side effects happening.
OK claudio

5 years agoEnable DNSSEC validation.
florian [Fri, 7 Dec 2018 09:21:08 +0000 (09:21 +0000)]
Enable DNSSEC validation.
Requested by & OK claudio
Input & OK sthen
OK job, solene
Various commenting that they run with validation since a long time
without issues.

5 years agoMake sure that the prefixlen returned by mask2prefixlen6 is never bigger
claudio [Fri, 7 Dec 2018 08:42:13 +0000 (08:42 +0000)]
Make sure that the prefixlen returned by mask2prefixlen6 is never bigger
than 128 also fail hard when the mask is non contiguous.
OK remi@

5 years agoBe more strict in converting a netmask into a prefixlen. Make sure
claudio [Fri, 7 Dec 2018 08:40:54 +0000 (08:40 +0000)]
Be more strict in converting a netmask into a prefixlen. Make sure
the prefixlen is never bigger than 128 for inet6.
OK remi@

5 years agoAll the references to the M_ALIGN and MH_ALIGN macros are gone.
claudio [Fri, 7 Dec 2018 08:37:24 +0000 (08:37 +0000)]
All the references to the M_ALIGN and MH_ALIGN macros are gone.
Time to bring them behind the shed and free them. Use m_align() instead.
OK mpi@ henning@ florian@ kn@

5 years agoRefactor certificate initialization and verification.
eric [Fri, 7 Dec 2018 08:05:59 +0000 (08:05 +0000)]
Refactor certificate initialization and verification.
Factorize code duplicated in smtp_session.c and mta_session.c
Implement a simple callback interface, with proper request management
and simplified imsg protocol.

Only add the necessary parts for now.
Exisiting code path will be adapted later.

input from gilles@ sunil@
ok gilles@

5 years agoRemove an ugly hack in the client certificate verification code that works
tb [Fri, 7 Dec 2018 07:22:09 +0000 (07:22 +0000)]
Remove an ugly hack in the client certificate verification code that works
around broken GOST implementations.  It looks like client certificates with
GOST have been completely broken since reimport of the GOST code, so no-one
is using LibreSSL this way.  The client side was fixed only last week for
TLSv1.0 and TLSv1.1.  This workaround is now in the way of much needed
simplifcation and cleanup, so it is time for it to go.

suggested by and ok jsing

5 years agoFix calculation of initial bandwidth limits.
dtucker [Fri, 7 Dec 2018 04:36:09 +0000 (04:36 +0000)]
Fix calculation of initial bandwidth limits.
Account for written bytes before the initial timer check so that the first
buffer written is accounted.  Set the threshold after which the timer is
checked such that the limit starts being computed as soon as possible, ie
after the second buffer is written.  This prevents an initial burst of
traffic and provides a more accurate bandwidth limit.  bz#2927, ok djm.

5 years agoonly consider the ext-info-c extension during the initial KEX. It shouldn't
djm [Fri, 7 Dec 2018 03:39:40 +0000 (03:39 +0000)]
only consider the ext-info-c extension during the initial KEX. It shouldn't
be sent in subsequent ones, but if it is present we should ignore it.

This prevents sshd from sending a SSH_MSG_EXT_INFO for REKEX for buggy
these clients. Reported by Jakub Jelen via bz2929; ok dtucker@

5 years agofix option letter pasto in previous
djm [Fri, 7 Dec 2018 03:33:18 +0000 (03:33 +0000)]
fix option letter pasto in previous

5 years agomention that the ssh-keygen -F (find host in authorized_keys) and -R
djm [Fri, 7 Dec 2018 03:32:26 +0000 (03:32 +0000)]
mention that the ssh-keygen -F (find host in authorized_keys) and -R
(remove host from authorized_keys) options may accept either a bare
hostname or a [hostname]:port combo. bz#2935

5 years agono need to allocate channels_pre/channels_post in channel_init_channels()
djm [Fri, 7 Dec 2018 02:31:20 +0000 (02:31 +0000)]
no need to allocate channels_pre/channels_post in channel_init_channels()
as we do it anyway in channel_handler_init() that we call at the end of
the function. Fix from Markus Schmidt via bz#2938

5 years agoHandle 2 Tx chains in the computation of transmit power for the RTL8192EU.
kevlo [Fri, 7 Dec 2018 01:53:20 +0000 (01:53 +0000)]
Handle 2 Tx chains in the computation of transmit power for the RTL8192EU.
While here sort vendors.

Tested by jmatthew@

ok stsp@, jmatthew@

5 years agoAdd support for "-" as an input file for stdin as per POSIX.
martijn [Thu, 6 Dec 2018 20:16:04 +0000 (20:16 +0000)]
Add support for "-" as an input file for stdin as per POSIX.
Simplify the code by allowing usage of stdin with the -i flag by pushing
the result to stdout, so filters and in place editing can be combined.

OK millert@

5 years agoCore files with >65535 sections have to use PN_XNUM and a section header
guenther [Thu, 6 Dec 2018 18:59:31 +0000 (18:59 +0000)]
Core files with >65535 sections have to use PN_XNUM and a section header
to pass the real count, with a minimal .shstrtab segment for consistency.
Also, add support for PN_XNUM to readelf.

problem reported and testing by claudio@
ok kettenis@

5 years agoadd -not as a sh friendly alias for !.
tedu [Thu, 6 Dec 2018 17:45:14 +0000 (17:45 +0000)]
add -not as a sh friendly alias for !.
ok millert

5 years agolog more info about errors
tedu [Thu, 6 Dec 2018 17:43:30 +0000 (17:43 +0000)]
log more info about errors

5 years agoadd very experimental support for dns over https. (RFC 8484)
tedu [Thu, 6 Dec 2018 16:51:19 +0000 (16:51 +0000)]
add very experimental support for dns over https. (RFC 8484)
performance may be less than great.
ok anton

5 years agolink-connect event report had an empty fcrdns field, but now that eric@ has
gilles [Thu, 6 Dec 2018 16:05:04 +0000 (16:05 +0000)]
link-connect event report had an empty fcrdns field, but now that eric@ has
plugged fcrdns in the smtp_session we can fill the field with a value

5 years agointroduce tx-mail and tx-rcpt report events
gilles [Thu, 6 Dec 2018 15:32:06 +0000 (15:32 +0000)]
introduce tx-mail and tx-rcpt report events

5 years agoallow passing data lines to proc filters
gilles [Thu, 6 Dec 2018 13:57:06 +0000 (13:57 +0000)]
allow passing data lines to proc filters

ok eric@

5 years agoBe more strict when converting a netmask to prefixlen in mask2prefixlen6.
claudio [Thu, 6 Dec 2018 13:04:40 +0000 (13:04 +0000)]
Be more strict when converting a netmask to prefixlen in mask2prefixlen6.
Make sure we never return a value bigger than 128.
OK remi@

5 years agoImplement a simple ruleset optimizer. All it does is merge filter rules that
claudio [Thu, 6 Dec 2018 12:38:00 +0000 (12:38 +0000)]
Implement a simple ruleset optimizer. All it does is merge filter rules that
only differ in the filter sets. Since this is still rather common it is able
to reduce the number of rules by 5% on an autogenerated config.
OK job@

5 years agoin mda variables expansions, do not consider empty strings as errors since
gilles [Thu, 6 Dec 2018 12:32:11 +0000 (12:32 +0000)]
in mda variables expansions, do not consider empty strings as errors since
an empty %{sender} is really a mailer-daemon and not an error

reported and initial diff by Lauri Tirkkonen <lotheac@iki.fi>
commit is a revised version of the diff based on a discussion with eric@

5 years agobring the first bits of DATA filtering plumbing but bypass it for now
gilles [Thu, 6 Dec 2018 12:09:50 +0000 (12:09 +0000)]
bring the first bits of DATA filtering plumbing but bypass it for now

ok eric@

5 years agoAdd a new argument -B device to vmctl start. It allows to set the boot device.
claudio [Thu, 6 Dec 2018 09:23:15 +0000 (09:23 +0000)]
Add a new argument -B device to vmctl start. It allows to set the boot device.
At the moment only 'net' is supported and all other values are silently ignored.
This allows to kick of an OpenBSD autoinstall by using:
vmctl start "installer" -Lc -B net -b bsd.rd -d disk.img
OK ccardenas@

5 years agoMake it possible to define the bootdevice in vmd. This information is used
claudio [Thu, 6 Dec 2018 09:20:06 +0000 (09:20 +0000)]
Make it possible to define the bootdevice in vmd. This information is used
currently only when booting a OpenBSD kernel. If VMBOOTDEV_NET is used the
internal dhcp server will pass "auto_install" as boot file to the client and
the boot loader passes the MAC of the first interface to the kernel to indicate
PXE booting. Adding boot order support to SeaBIOS is not yet implemented.
Ok ccardenas@

5 years agoWhen building ND packets use m_align() to pack the mbuf as optimal as
claudio [Thu, 6 Dec 2018 08:11:52 +0000 (08:11 +0000)]
When building ND packets use m_align() to pack the mbuf as optimal as
possible. Because of an optional payload maxlen bytes are used on the
m_align so that there is always enough space.
OK florian@

5 years agoAvoid unnecessary dynamic memory allocation in athn_usb_newauth().
stsp [Thu, 6 Dec 2018 07:50:38 +0000 (07:50 +0000)]
Avoid unnecessary dynamic memory allocation in athn_usb_newauth().
Patch by Benjamin Baier
ok ratchov@ mpi@

5 years agoUse a time-based method for tracking motion states of touches.
bru [Wed, 5 Dec 2018 19:49:47 +0000 (19:49 +0000)]
Use a time-based method for tracking motion states of touches.

ok mpi@

5 years agoCorrectly disable pvclock(4) on old hardware that lack a stable clock
reyk [Wed, 5 Dec 2018 18:02:51 +0000 (18:02 +0000)]
Correctly disable pvclock(4) on old hardware that lack a stable clock

I falsely assumed that the KVM_FEATURE_CLOCKSOURCE_STABLE_BIT
indicates that the actual clock values are stable, but it turned out
that this isn't always the case.  To detect if the clock value is
stable, we now read it once in pvclock_attach() and check for the
PVCLOCK_FLAG_TSC_STABLE flag.  This needs further investigation.

Reported and fix tested by johnw.mail at gmail.com

OK chris@ phessler@

5 years agousb_block_allocmem() won't sleep.
gerhard [Wed, 5 Dec 2018 17:41:23 +0000 (17:41 +0000)]
usb_block_allocmem() won't sleep.

ok mpi@

5 years agoremove a stray line accidentally left behind in rev. 1.120;
schwarze [Wed, 5 Dec 2018 17:11:59 +0000 (17:11 +0000)]
remove a stray line accidentally left behind in rev. 1.120;
patch from Hiltjo Posthuma <hiltjo at codemadness dot org>

5 years agoDo not call usbd_delay_ms() from interrupt context.
mpi [Wed, 5 Dec 2018 15:54:58 +0000 (15:54 +0000)]
Do not call usbd_delay_ms() from interrupt context.

From Nils Frohberg.

5 years agofree(9) sizes for softcs.
mpi [Wed, 5 Dec 2018 15:44:22 +0000 (15:44 +0000)]
free(9) sizes for softcs.

ok tedu@

5 years agofree(9) size for temporary buffer.
mpi [Wed, 5 Dec 2018 15:42:45 +0000 (15:42 +0000)]
free(9) size for temporary buffer.

ok ratchov@

5 years agofix incorrect usage of the .Bx macro;
schwarze [Wed, 5 Dec 2018 15:34:52 +0000 (15:34 +0000)]
fix incorrect usage of the .Bx macro;
one case reported by Fabio Scotoni <fabio at esse dot ch>,
the rest found with regress/usr.bin/mandoc/db/dbm_dump

5 years agoInclude srp.h where struct cpu_info uses srp to avoid erroring out when
jsg [Wed, 5 Dec 2018 10:28:21 +0000 (10:28 +0000)]
Include srp.h where struct cpu_info uses srp to avoid erroring out when
including cpu.h machine/intr.h etc without first including param.h when
MULTIPROCESSOR is defined.

ok visa@