openbsd
6 years agoAdd support for version 2.0 of the mdstore protocol.
kettenis [Sat, 15 Sep 2018 13:20:16 +0000 (13:20 +0000)]
Add support for version 2.0 of the mdstore protocol.

6 years agostrsave() is hard-fail strdup() so simplify and rename to xstrdup().
miko [Sat, 15 Sep 2018 12:15:32 +0000 (12:15 +0000)]
strsave() is hard-fail strdup() so simplify and rename to xstrdup().
with help from martijn@.

ok millert@ martijn@

6 years agoFix fortune underlines and use the right number of underscores in Notes.
bentley [Sat, 15 Sep 2018 09:44:19 +0000 (09:44 +0000)]
Fix fortune underlines and use the right number of underscores in Notes.

ok sthen@

6 years agoInitialize the TDB to NULL in ipsec_common_input() and
mestre [Fri, 14 Sep 2018 23:40:10 +0000 (23:40 +0000)]
Initialize the TDB to NULL in ipsec_common_input() and
ipsec_{input,output}_cb() so that in the case of sending or receiving a bogus
mbuf (NULL) we don't end up trying to dereference the TDB, while being an
uninitialized pointer, to increase the drops.

Coverity IDs 14733121473313 and 1473317.

OK mpi@ visa@

6 years agoDo not leak a file descriptor when opening nohup.out. Make sure
bluhm [Fri, 14 Sep 2018 18:17:46 +0000 (18:17 +0000)]
Do not leak a file descriptor when opening nohup.out.  Make sure
that stdout and stderr are not closed.
from Nan Xiao

6 years agoUnify and bump some of the NMBCLUSTERS defines. Some archs had it set to
claudio [Fri, 14 Sep 2018 13:58:20 +0000 (13:58 +0000)]
Unify and bump some of the NMBCLUSTERS defines. Some archs had it set to
4MB which is far too low especially when the platform is able to run MP.
New limits are, amd64 = 256M; arm64, mips64, sparc64 = 64M; alpha, arm,
hppa, i386, powerpc = 32M; m88k, sh = 8M
Still rather conservative numbers but much better than before. At least
some hangs of arm64 build boxes was caused by this.
OK kettenis@, visa@

6 years agoAdd interoperability test mode for regress appstest.sh
inoguchi [Fri, 14 Sep 2018 13:54:57 +0000 (13:54 +0000)]
Add interoperability test mode for regress appstest.sh

- test s_server and s_client between different version by option -i
- indicate other version by defining OTHER_OPENSSL environment variable
- fix "SSL/TLS" to "TLS/SSL", since TLS is correct as technical term
- s/SKIPPNG/SKIPPING/

6 years agoadd gapdummy.c to the "clean" target like other generated files
naddy [Fri, 14 Sep 2018 13:49:01 +0000 (13:49 +0000)]
add gapdummy.c to the "clean" target like other generated files
ok visa@ jsg@ phessler@

6 years agoPass -L/usr/lib to the linker in preparation for switching to lld, which
naddy [Fri, 14 Sep 2018 13:44:18 +0000 (13:44 +0000)]
Pass -L/usr/lib to the linker in preparation for switching to lld, which
does not have a default search path.  ok kettenis@ jsg@

6 years agoPass CC/CFLAGS/LDFLAGS to the configure script. ok millert@
naddy [Fri, 14 Sep 2018 13:37:52 +0000 (13:37 +0000)]
Pass CC/CFLAGS/LDFLAGS to the configure script.  ok millert@

6 years agoIn general it is a bad idea to use one random secret for two things.
bluhm [Fri, 14 Sep 2018 12:55:17 +0000 (12:55 +0000)]
In general it is a bad idea to use one random secret for two things.
The inet PCB uses one hash with local and foreign addresses, and
one with local port numbers.  Give both hashes separate keys.  Also
document the struct fields.
OK visa@

6 years agoNo longer needed since the ping/ping6 unification.
florian [Fri, 14 Sep 2018 10:28:55 +0000 (10:28 +0000)]
No longer needed since the ping/ping6 unification.
Pointed out by Clemens Goessnitzer (clemens AT goessnitzer.info), thanks!

6 years agoAdjust and extend unit test for as_set after last bgpd commit
claudio [Fri, 14 Sep 2018 10:23:42 +0000 (10:23 +0000)]
Adjust and extend unit test for as_set after last bgpd commit
OK benno@

6 years agoAdjust the dummy as_set_match function to new prototype after last bgpd commit
claudio [Fri, 14 Sep 2018 10:22:55 +0000 (10:22 +0000)]
Adjust the dummy as_set_match function to new prototype after last bgpd commit
OK benno@

6 years agoExtend as_set to allow for different sized objects to be added. The only
claudio [Fri, 14 Sep 2018 10:22:11 +0000 (10:22 +0000)]
Extend as_set to allow for different sized objects to be added. The only
requirement is that the first value of the struct is a 32bit ID which is
used in the bsearch. This allows to add more than just as numbers to a
set. as_set_match now returns a pointer to this data or NULL if not found.
OK benno@

6 years agoansify auich_trigger_input() and remove #ifdef around DPRINTF(); ok ratchov@
miko [Fri, 14 Sep 2018 08:45:46 +0000 (08:45 +0000)]
ansify auich_trigger_input() and remove #ifdef around DPRINTF(); ok ratchov@

6 years agomark some suspend/resume functions always returning zero as void; ok ratchov@
miko [Fri, 14 Sep 2018 08:37:34 +0000 (08:37 +0000)]
mark some suspend/resume functions always returning zero as void; ok ratchov@

6 years agounbreak userland uses of in_pcb.h by including sys/refcnt.h
jsg [Fri, 14 Sep 2018 07:25:02 +0000 (07:25 +0000)]
unbreak userland uses of in_pcb.h by including sys/refcnt.h
ok visa@

6 years agosecond try, deals properly with missing and private-only keys:
djm [Fri, 14 Sep 2018 05:26:27 +0000 (05:26 +0000)]
second try, deals properly with missing and private-only keys:

Use consistent format in debug log for keys readied, offered and
received during public key authentication.

This makes it a little easier to see what is going on, as each message
now contains (where available) the key filename, its type and fingerprint,
and whether the key is hosted in an agent or a token.

6 years agorevert following; deals badly with agent keys
djm [Fri, 14 Sep 2018 04:44:04 +0000 (04:44 +0000)]
revert following; deals badly with agent keys

revision 1.285
date: 2018/09/14 04:17:12;  author: djm;  state: Exp;  lines: +47 -26;  commitid: lflGFcNb2X2HebaK;
Use consistent format in debug log for keys readied, offered and
received during public key authentication.

This makes it a little easier to see what is going on, as each message
now contains the key filename, its type and fingerprint, and whether
the key is hosted in an agent or a token.

6 years agogarbage-collect moribund ssh_new_private() API.
djm [Fri, 14 Sep 2018 04:17:44 +0000 (04:17 +0000)]
garbage-collect moribund ssh_new_private() API.

6 years agoUse consistent format in debug log for keys readied, offered and
djm [Fri, 14 Sep 2018 04:17:12 +0000 (04:17 +0000)]
Use consistent format in debug log for keys readied, offered and
received during public key authentication.

This makes it a little easier to see what is going on, as each message
now contains the key filename, its type and fingerprint, and whether
the key is hosted in an agent or a token.

6 years agoAdd reference counting for inet pcb, this will be needed when we
bluhm [Thu, 13 Sep 2018 19:53:58 +0000 (19:53 +0000)]
Add reference counting for inet pcb, this will be needed when we
start locking the socket.  An inp can be referenced by the PCB queue
and hashes, by a pf mbuf header, or by a pf state key.
OK visa@

6 years agomissing comma in previous;
jmc [Thu, 13 Sep 2018 16:50:54 +0000 (16:50 +0000)]
missing comma in previous;

6 years agoUnbreak ramdisks by catching up with the change to use the new libc
sthen [Thu, 13 Sep 2018 16:34:33 +0000 (16:34 +0000)]
Unbreak ramdisks by catching up with the change to use the new libc
uid_from_user() and gid_from_group() instead of the pax-specific
functions in cache.c.

6 years agooops, missed the libc.so.XX.a relink file
sthen [Thu, 13 Sep 2018 16:19:26 +0000 (16:19 +0000)]
oops, missed the libc.so.XX.a relink file

6 years agoFix warnings caused by user_from_uid() and group_from_gid() now
millert [Thu, 13 Sep 2018 15:23:32 +0000 (15:23 +0000)]
Fix warnings caused by user_from_uid() and group_from_gid() now
returning const char *.

6 years agosync
sthen [Thu, 13 Sep 2018 13:59:49 +0000 (13:59 +0000)]
sync

6 years agoUse the new libc uid_from_user() and gid_from_group() instead of
millert [Thu, 13 Sep 2018 12:33:43 +0000 (12:33 +0000)]
Use the new libc uid_from_user() and gid_from_group() instead of
the pax-specific functions in cache.c.  OK guenther@

6 years agoAdd uid_from_user() and gid_from_group(), derived from pax's cache.c.
millert [Thu, 13 Sep 2018 12:31:15 +0000 (12:31 +0000)]
Add uid_from_user() and gid_from_group(), derived from pax's cache.c.
It replaces the existing pwcache.c functions user_from_uid(3) and
group_from_gid(3) with the pax equivalents.  Adapted from NetBSD
(mycroft) changes from our own pax's cache.c.  OK guenther@

6 years agoInclude the size of IPCOMP header when checking for compression.
mpi [Thu, 13 Sep 2018 12:29:43 +0000 (12:29 +0000)]
Include the size of IPCOMP header when checking for compression.

Problem found and anaylyzed by Romain Gabet, ok markus@

6 years agoNoticed that the equal case is a bit wrong while adjusting the regress tests.
claudio [Thu, 13 Sep 2018 11:25:41 +0000 (11:25 +0000)]
Noticed that the equal case is a bit wrong while adjusting the regress tests.
This is better. There is no need to check for the prefix length p->len.

6 years agoAdjust after introduction of maxlen
claudio [Thu, 13 Sep 2018 11:24:30 +0000 (11:24 +0000)]
Adjust after introduction of maxlen

6 years agoSimilar to as-set factor out the code to create a prefix-set into a function.
claudio [Thu, 13 Sep 2018 11:18:18 +0000 (11:18 +0000)]
Similar to as-set factor out the code to create a prefix-set into a function.
Makes all a bit nicer and as an added bonus fixes a memory leak.
OK phessler@

6 years agoROA entires are allowing to define a prefix with a maxlen.
claudio [Thu, 13 Sep 2018 11:16:21 +0000 (11:16 +0000)]
ROA entires are allowing to define a prefix with a maxlen.
In the end this is just another way to specify a prefixlen range
and kind of an or-longer case with an upper limit.
So these two prefix statements are equivalent:
       prefix 10.0.0.0/8 prefixlen 8 - 24
       prefix 10.0.0.0/8 maxlen 24
While there also make 'prefixlen = 17' a OP_RANGE and because of that also
usable in prefix-set tables. Finally adjust printconf.c for those to
changes to print them nicely.
OK phessler@

6 years agoIn drm_wait_one_vblank() add a delay when we're "cold". Interrupts aren't
kettenis [Thu, 13 Sep 2018 09:32:27 +0000 (09:32 +0000)]
In drm_wait_one_vblank() add a delay when we're "cold".  Interrupts aren't
enabled at that point, so we cannot wait for one to happen.  But having no
delay at all breaks detection of some output connectors.

Thanks to Philippe Meunier for tracking down the issue.

ok millert@, jsg@

6 years ago- There's no need to set R92C_HSSI_PARAM2_READ_EDGE for R92C_HSSI_PARAM2(0)
kevlo [Thu, 13 Sep 2018 09:28:07 +0000 (09:28 +0000)]
- There's no need to set R92C_HSSI_PARAM2_READ_EDGE for R92C_HSSI_PARAM2(0)
  for rtl8188eu
- Fix typo in structure r92c_rom in comment: s/0x8192/0x8129/
- Add id member to struct r88e_rom which identifies eeprom
- Replace magic numbers with something more readable
- Cosmetic tweaking

ok stsp@

6 years agomissed a bit of openssl-1.0.x API in this unittest
djm [Thu, 13 Sep 2018 09:03:20 +0000 (09:03 +0000)]
missed a bit of openssl-1.0.x API in this unittest

6 years agoWhen unveil(2) was introduced one break from SYS_access case was removed
mestre [Thu, 13 Sep 2018 07:49:33 +0000 (07:49 +0000)]
When unveil(2) was introduced one break from SYS_access case was removed
here, this adds it back. Noticed by Coverity 1471854.

feedback from semarie@ OK deraadt@

6 years agoAvoid unneeded variable in gen_dynnode()
kn [Thu, 13 Sep 2018 06:03:27 +0000 (06:03 +0000)]
Avoid unneeded variable in gen_dynnode()

OK bluhm

6 years agouse only openssl-1.1.x API here too
djm [Thu, 13 Sep 2018 05:06:51 +0000 (05:06 +0000)]
use only openssl-1.1.x API here too

6 years agovmd: set irq and vm_id in virtio dev structs on restore
pd [Thu, 13 Sep 2018 04:23:36 +0000 (04:23 +0000)]
vmd: set irq and vm_id in virtio dev structs on restore

This unbreaks vmctl receive.

ok ccardenas@

6 years agoclarify that config_activate_children() is called unconditionally in *activate().
miko [Thu, 13 Sep 2018 04:07:20 +0000 (04:07 +0000)]
clarify that config_activate_children() is called unconditionally in *activate().

ok ratchov@

6 years agodrm/drivers: add support for using the arch wc mapping API.
jsg [Thu, 13 Sep 2018 03:55:17 +0000 (03:55 +0000)]
drm/drivers: add support for using the arch wc mapping API.

From Dave Airlie
c59fdc4cfbda52ce081c59540762185d765c3369 in linux 4.4.y/4.4.155
7cf321d118a825c1541b43ca45294126fd474efa in mainline linux

6 years agoAdd initial set of unveil's to vmctl.
ccardenas [Thu, 13 Sep 2018 03:53:33 +0000 (03:53 +0000)]
Add initial set of unveil's to vmctl.

Was in snaps for a while.

Ok mlarkin@ and reyk@

6 years agodrm/i915/userptr: reject zero user_size
jsg [Thu, 13 Sep 2018 03:45:08 +0000 (03:45 +0000)]
drm/i915/userptr: reject zero user_size

From Matthew Auld
182e963432d867384f2e55487ec60ca7a9f99cd1 in linux 4.4.y/4.4.155
c11c7bfd213495784b22ef82a69b6489f8d0092f in mainline linux

6 years agoavoid sequence-point warning with gcc 4.9
jsg [Thu, 13 Sep 2018 03:38:15 +0000 (03:38 +0000)]
avoid sequence-point warning with gcc 4.9
ok kettenis@

6 years agohold our collective noses and use the openssl-1.1.x API in OpenSSH;
djm [Thu, 13 Sep 2018 02:08:33 +0000 (02:08 +0000)]
hold our collective noses and use the openssl-1.1.x API in OpenSSH;
feedback and ok tb@ jsing@ markus@

6 years agosync with mozilla-release (one removal, TURKTRUST, more details at
sthen [Wed, 12 Sep 2018 22:17:08 +0000 (22:17 +0000)]
sync with mozilla-release (one removal, TURKTRUST, more details at
https://bugzilla.mozilla.org/show_bug.cgi?id=1439127)

ok danj guenther millert

6 years agotweak previous;
jmc [Wed, 12 Sep 2018 15:09:22 +0000 (15:09 +0000)]
tweak previous;

6 years agoMake this work on arm64.
kettenis [Wed, 12 Sep 2018 11:59:40 +0000 (11:59 +0000)]
Make this work on arm64.

6 years agoMake pmap_protect(9) actually remove exec permission if the new permissions
kettenis [Wed, 12 Sep 2018 11:58:28 +0000 (11:58 +0000)]
Make pmap_protect(9) actually remove exec permission if the new permissions
include PROT_READ but not PROT_EXEC.

ok patrick@

6 years agoStop exporting TDB counters to userland, this change introduced a
mpi [Wed, 12 Sep 2018 11:24:38 +0000 (11:24 +0000)]
Stop exporting TDB counters to userland, this change introduced a
regression with iked(8).

Reported by Mark Patruck.

6 years agoFix obvious cut&pasto in comment (ifa_msghdr -> if_announcemsghdr).
krw [Wed, 12 Sep 2018 09:20:34 +0000 (09:20 +0000)]
Fix obvious cut&pasto in comment (ifa_msghdr -> if_announcemsghdr).

ok claudio@

6 years agoWhitespace fixes
guenther [Wed, 12 Sep 2018 07:00:51 +0000 (07:00 +0000)]
Whitespace fixes

6 years agosync for libcrypto/libssl/libtls minor bumps; from tb@
djm [Wed, 12 Sep 2018 06:37:23 +0000 (06:37 +0000)]
sync for libcrypto/libssl/libtls minor bumps; from tb@

6 years agocrank to follow minor crank in libcrypto; ok tb@ jsing@
djm [Wed, 12 Sep 2018 06:36:15 +0000 (06:36 +0000)]
crank to follow minor crank in libcrypto; ok tb@ jsing@

6 years agoAdd some accessor functions:
djm [Wed, 12 Sep 2018 06:35:38 +0000 (06:35 +0000)]
Add some accessor functions:

RSA_meth_get_finish() RSA_meth_set1_name() EVP_CIPHER_CTX_(get|set)_iv()

feedback and ok jsing@ tb@

6 years agofix edit mistake; spotted by jmc@
djm [Wed, 12 Sep 2018 06:18:59 +0000 (06:18 +0000)]
fix edit mistake; spotted by jmc@

6 years agoNow that the pmap is more paranoid about some shootdowns (pmap.c rev 1.119),
guenther [Wed, 12 Sep 2018 06:12:59 +0000 (06:12 +0000)]
Now that the pmap is more paranoid about some shootdowns (pmap.c rev 1.119),
avoid some TLB flushes by not reloading %cr3 when the value isn't changing.

original diff by and ok mlarkin@

6 years agoWhen shooting pages in the KVA range, all pmaps have the page mapped,
guenther [Wed, 12 Sep 2018 06:09:39 +0000 (06:09 +0000)]
When shooting pages in the KVA range, all pmaps have the page mapped,
not just pmap_kernel() and this CPUs pmap.  Meanwhile, when mapping
another pmap's tables, order the locking so that we don't need IPIs
specific to the temp pmap.

tested in snaps for a bit
ok mlarkin@

6 years agoMove -Wno-address-of-packed-member to the clang block as well and sync
jsg [Wed, 12 Sep 2018 04:34:59 +0000 (04:34 +0000)]
Move -Wno-address-of-packed-member to the clang block as well and sync
armv7 and i386 with amd64.

ok guenther@

6 years agoInclude certs with multiple RSA signature variants in test data
djm [Wed, 12 Sep 2018 01:36:45 +0000 (01:36 +0000)]
Include certs with multiple RSA signature variants in test data
Ensure that cert->signature_key is populated correctly

6 years agoadd SSH_ALLOWED_CA_SIGALGS - the default list of signature algorithms
djm [Wed, 12 Sep 2018 01:34:02 +0000 (01:34 +0000)]
add SSH_ALLOWED_CA_SIGALGS - the default list of signature algorithms
that are allowed for CA signatures. Notably excludes ssh-dsa.

ok markus@

6 years agoadd sshkey_check_cert_sigtype() that checks a cert->signature_type
djm [Wed, 12 Sep 2018 01:32:54 +0000 (01:32 +0000)]
add sshkey_check_cert_sigtype() that checks a cert->signature_type
against a supplied whitelist; ok markus

6 years agoadd cert->signature_type field and keep it in sync with certificate
djm [Wed, 12 Sep 2018 01:31:30 +0000 (01:31 +0000)]
add cert->signature_type field and keep it in sync with certificate
signature wrt loading and certification operations; ok markus@

6 years agoAdd "ssh -Q sig" to allow listing supported signature algorithms
djm [Wed, 12 Sep 2018 01:30:10 +0000 (01:30 +0000)]
Add "ssh -Q sig" to allow listing supported signature algorithms
ok markus@

6 years agotest revocation by explicit hash and by fingerprint
djm [Wed, 12 Sep 2018 01:23:48 +0000 (01:23 +0000)]
test revocation by explicit hash and by fingerprint

6 years agos/sshkey_demote/sshkey_from_private/g
djm [Wed, 12 Sep 2018 01:22:43 +0000 (01:22 +0000)]
s/sshkey_demote/sshkey_from_private/g

6 years agoallow key revocation by SHA256 hash and allow ssh-keygen to create KRLs
djm [Wed, 12 Sep 2018 01:21:34 +0000 (01:21 +0000)]
allow key revocation by SHA256 hash and allow ssh-keygen to create KRLs
using SHA256/base64 key fingerprints; ok markus@

6 years agolog certificate fingerprint in authentication success/failure message
djm [Wed, 12 Sep 2018 01:19:12 +0000 (01:19 +0000)]
log certificate fingerprint in authentication success/failure message
(previously we logged only key ID and CA key fingerprint).

ok markus@

6 years agoConvert inetctlerrmap to u_char like inet6ctlerrmap. That is also
bluhm [Tue, 11 Sep 2018 21:04:03 +0000 (21:04 +0000)]
Convert inetctlerrmap to u_char like inet6ctlerrmap.  That is also
what FreeBSD does.  Remove old #if 0 version of inet6ctlerrmap.
OK mpi@

6 years agoOnly look for acpi tables if acpi(4) attached. Fixes radeondrm(4) crash
kettenis [Tue, 11 Sep 2018 20:25:58 +0000 (20:25 +0000)]
Only look for acpi tables if acpi(4) attached.  Fixes radeondrm(4) crash
on arm64 when using a device tree.

6 years agosync (libc++/libc++abi update)
sthen [Tue, 11 Sep 2018 19:43:15 +0000 (19:43 +0000)]
sync (libc++/libc++abi update)

6 years agoues the format string for signed ints, for signed ints
phessler [Tue, 11 Sep 2018 19:25:54 +0000 (19:25 +0000)]
ues the format string for signed ints, for signed ints

reminded by stsp@

6 years agodefine _LIBCXXABI_BUILDING_LIBRARY to avoid the same issues as in libcxx
robert [Tue, 11 Sep 2018 18:36:58 +0000 (18:36 +0000)]
define _LIBCXXABI_BUILDING_LIBRARY to avoid the same issues as in libcxx

6 years agoadd -Wall to CFLAGS
robert [Tue, 11 Sep 2018 18:32:56 +0000 (18:32 +0000)]
add -Wall to CFLAGS

6 years agoinstead of defining _LIBCPP_DEBUG in debug.cpp which enables some debug
robert [Tue, 11 Sep 2018 18:31:58 +0000 (18:31 +0000)]
instead of defining _LIBCPP_DEBUG in debug.cpp which enables some debug
code which breaks quiet a few things, define _LIBCPP_BUILDING_LIBRARY
for the complete build to get the needed definitions in debug.cpp without
enabling debug code

6 years agomerge libc++ 6.0.0 (bump lib major); ok patrick@, kettenis@
robert [Tue, 11 Sep 2018 18:29:53 +0000 (18:29 +0000)]
merge libc++ 6.0.0 (bump lib major); ok patrick@, kettenis@

6 years agoimport of libc++ 6.0.0
robert [Tue, 11 Sep 2018 18:18:58 +0000 (18:18 +0000)]
import of libc++ 6.0.0

6 years agoNuke unused LIST() ieee80211com_head.
krw [Tue, 11 Sep 2018 18:16:26 +0000 (18:16 +0000)]
Nuke unused LIST() ieee80211com_head.

ok stsp@

6 years agomerge libc++abi 6.0.0 and bump lib minor; ok patrick@, kettenis@
robert [Tue, 11 Sep 2018 18:12:06 +0000 (18:12 +0000)]
merge libc++abi 6.0.0 and bump lib minor; ok patrick@, kettenis@

6 years agoimport of libc++abi 6.0.0
robert [Tue, 11 Sep 2018 18:06:31 +0000 (18:06 +0000)]
import of libc++abi 6.0.0

6 years agomerge libunwind 6.0.0; ok patrick@, kettenis@
robert [Tue, 11 Sep 2018 18:03:05 +0000 (18:03 +0000)]
merge libunwind 6.0.0; ok patrick@, kettenis@

6 years agoimport of libunwind 6.0.0
robert [Tue, 11 Sep 2018 17:41:23 +0000 (17:41 +0000)]
import of libunwind 6.0.0

6 years agoThe cursor position is limited to the margins for CUF and CUB, so turn
nicm [Tue, 11 Sep 2018 17:31:01 +0000 (17:31 +0000)]
The cursor position is limited to the margins for CUF and CUB, so turn
margins off for printing cells (like most everything else already
does). Problem reported by Thomas Sattler.

6 years agoPut clang-specific options behind conditionals to reduce meta-warnings
guenther [Tue, 11 Sep 2018 15:52:00 +0000 (15:52 +0000)]
Put clang-specific options behind conditionals to reduce meta-warnings

ok mpi@

6 years agoMake the distribution of in_ and in6_ functions in in_pcb.c and
bluhm [Tue, 11 Sep 2018 14:34:49 +0000 (14:34 +0000)]
Make the distribution of in_ and in6_ functions in in_pcb.c and
in6_pcb.c consistent, to ease comparing the code.  Move all inet6
functions to in6_.  Bring functions in both source files in same
order.  Cleanup the include section.  Now in_pcb.c is a superset
of in6_pcb.c.  The latter contains all the special implementations.
Just moving arround, no code change intended.
OK mpi@

6 years agoInclude bnxt in arm64.
ccardenas [Tue, 11 Sep 2018 13:54:28 +0000 (13:54 +0000)]
Include bnxt in arm64.

Tested on mcbin with Broadcom BCM57404 (Dell variant).

Ok jmatthew@ and kettenis@

6 years agoBe consistent in logging messages.
ccardenas [Tue, 11 Sep 2018 13:45:29 +0000 (13:45 +0000)]
Be consistent in logging messages.

Change "fmt" to "format".

Ok kn@

6 years agoWe actually support 39-bit VA's in userland.
kettenis [Tue, 11 Sep 2018 12:41:30 +0000 (12:41 +0000)]
We actually support 39-bit VA's in userland.

ok patrick@, jsg@

6 years agoFix netmask regression in get_dynnode()
kn [Tue, 11 Sep 2018 10:42:10 +0000 (10:42 +0000)]
Fix netmask regression in get_dynnode()

I introduced this error with r1.330 while removing the af parameter from
unmask().

`pass inet from (lo0)/24' would result in `pass inet from (lo0)', sorry.

6 years agoNuke some trailing spaces that wandered into the
krw [Tue, 11 Sep 2018 10:23:40 +0000 (10:23 +0000)]
Nuke some trailing spaces that wandered into the
crosshairs.

6 years agoWith the interface debug flag enabled, print a "score" for each AP we
phessler [Tue, 11 Sep 2018 10:21:29 +0000 (10:21 +0000)]
With the interface debug flag enabled, print a "score" for each AP we
consider during auto-join.  This can help users determine why a specific
network was chosen.

OK stsp@

6 years agoadd the conflict info to what's stored in pkglocatedb, as it's meta-info
espie [Tue, 11 Sep 2018 09:43:08 +0000 (09:43 +0000)]
add the conflict info to what's stored in pkglocatedb, as it's meta-info
that's not readily available otherwise.

6 years agoFix --exclude-libs option. Based on code already committed upstream.
kettenis [Tue, 11 Sep 2018 09:25:56 +0000 (09:25 +0000)]
Fix --exclude-libs option.  Based on code already committed upstream.

tested by naddy@

6 years agoTighten validation tests on an obscure corner case of
krw [Tue, 11 Sep 2018 09:13:19 +0000 (09:13 +0000)]
Tighten validation tests on an obscure corner case of
trying to align partitions to size <= 0 or past the
end of the disk. Emit error message in this case as
in other align errors.

Looks good to otto@.

6 years agoRemove unused buffer from host()
kn [Tue, 11 Sep 2018 09:02:27 +0000 (09:02 +0000)]
Remove unused buffer from host()

Left-over from pre-host_ip() times. While here, use __func__.

OK henning benno

6 years agoadd files for test 4
benno [Tue, 11 Sep 2018 08:55:49 +0000 (08:55 +0000)]
add files for test 4

6 years ago- moving state look up outside of PF_LOCK()
sashan [Tue, 11 Sep 2018 07:53:38 +0000 (07:53 +0000)]
- moving state look up outside of PF_LOCK()

this change adds a pf_state_lock rw-lock, which protects consistency
of state table in PF. The code delivered in this change is guarded
by 'WITH_PF_LOCK', which is still undefined. People, who are willing
to experiment and want to run it must do two things:

- compile kernel with -DWITH_PF_LOCK
- bump NET_TASKQ from 1 to ... sky is the limit,
  (just select some sensible value for number of tasks your
  system is able to handle)

OK bluhm@