openbsd
8 years agoRemove cpu_cpwait() calls; they are no-ops on armv7.
kettenis [Fri, 26 Aug 2016 16:02:33 +0000 (16:02 +0000)]
Remove cpu_cpwait() calls; they are no-ops on armv7.

ok tom@

8 years agoRepeated occurances of the idiom buf[5][BUFSIZ] -- ridiculous. Give each
deraadt [Fri, 26 Aug 2016 15:04:15 +0000 (15:04 +0000)]
Repeated occurances of the idiom buf[5][BUFSIZ] -- ridiculous.  Give each
buf a special name, recognize that most are PATH_MAX, and remove a few that
are not needed at all.
ok jsing beck

8 years agoMake regress Makefile consistent with other tests, use bsd.regress.mk.
bluhm [Fri, 26 Aug 2016 13:10:30 +0000 (13:10 +0000)]
Make regress Makefile consistent with other tests, use bsd.regress.mk.
OK otto@

8 years agoKill the ps_ninstances from proc.c.
rzalamena [Fri, 26 Aug 2016 12:24:21 +0000 (12:24 +0000)]
Kill the ps_ninstances from proc.c.

We got the same information in ps_instances[proc] (more accurate) and
we avoid allocating unnecessary memory for pipe storage.

ok reyk@

8 years agoRemove the code that switches around MMU domains on armv7. MMU domains are
kettenis [Fri, 26 Aug 2016 11:59:04 +0000 (11:59 +0000)]
Remove the code that switches around MMU domains on armv7.  MMU domains are
basically a relic from the past.  Using them doesn't make a lot of sense
the way our pmaps work.  Support for MMU domains isn't present in
long-descriptor translation table format, so it is clearly on its way out.

Based on a diff from Artituri Alm.

ok patrick@

8 years agoReplace the static env variables with a single global variable.
rzalamena [Fri, 26 Aug 2016 10:46:39 +0000 (10:46 +0000)]
Replace the static env variables with a single global variable.

ok reyk@

8 years agoPull in <time.h> for time()
guenther [Fri, 26 Aug 2016 09:10:11 +0000 (09:10 +0000)]
Pull in <time.h> for time()

ok deraadt@

8 years agoPull in <time.h> for struct tm, used in rcs.h
guenther [Fri, 26 Aug 2016 09:02:54 +0000 (09:02 +0000)]
Pull in <time.h> for struct tm, used in rcs.h

ok deraadt@

8 years agoPull in <sys/select.h> for fd_set
guenther [Fri, 26 Aug 2016 08:52:19 +0000 (08:52 +0000)]
Pull in <sys/select.h> for fd_set

ok deraadt@

8 years agoPull in <time.h> for ctime_r, gmtime, etc
guenther [Fri, 26 Aug 2016 08:50:31 +0000 (08:50 +0000)]
Pull in <time.h> for ctime_r, gmtime, etc

ok deraadt@

8 years agoPull in <sys/time.h> for gettimeofday()
guenther [Fri, 26 Aug 2016 08:44:04 +0000 (08:44 +0000)]
Pull in <sys/time.h> for gettimeofday()

ok deraadt@

8 years agoRemove unused prototype for sxiccmu_enablemodule().
mglocker [Fri, 26 Aug 2016 08:30:24 +0000 (08:30 +0000)]
Remove unused prototype for sxiccmu_enablemodule().

ok kettenis

8 years agoPull in <time.h> for clock_gettime()
guenther [Fri, 26 Aug 2016 08:25:02 +0000 (08:25 +0000)]
Pull in <time.h> for clock_gettime()

ok deraadt@

8 years agoThe *_HEAD_INITIALIZER() macros are documented as taking the struct,
guenther [Fri, 26 Aug 2016 07:12:30 +0000 (07:12 +0000)]
The *_HEAD_INITIALIZER() macros are documented as taking the struct,
not a pointer to it

8 years agoPull in <sys/time.h> for clock_ymdhms bits
guenther [Fri, 26 Aug 2016 07:09:56 +0000 (07:09 +0000)]
Pull in <sys/time.h> for clock_ymdhms bits

ok deraadt@

8 years agotrim down some NBBY references. 8 bits ought to be enough for anyone.
tedu [Fri, 26 Aug 2016 06:32:10 +0000 (06:32 +0000)]
trim down some NBBY references. 8 bits ought to be enough for anyone.

8 years agoPull in <sys/select.h> for fd_set
guenther [Fri, 26 Aug 2016 06:18:01 +0000 (06:18 +0000)]
Pull in <sys/select.h> for fd_set

ok deraadt@

8 years agoAdd <time.h> for time(); sort <*.h> includes
guenther [Fri, 26 Aug 2016 06:06:58 +0000 (06:06 +0000)]
Add <time.h> for time(); sort <*.h> includes

ok deraadt@

8 years agoAdd <time.h> for time() and ctime(); sort <net*/*.h>
guenther [Fri, 26 Aug 2016 06:04:10 +0000 (06:04 +0000)]
Add <time.h> for time() and ctime(); sort <net*/*.h>

ok deraadt@

8 years agoPull in <sys/time.h> for gettimeofday()
guenther [Fri, 26 Aug 2016 05:50:29 +0000 (05:50 +0000)]
Pull in <sys/time.h> for gettimeofday()

8 years agoNeed <time.h> for time() and others. Pulled in by coincidence previously
guenther [Fri, 26 Aug 2016 05:06:14 +0000 (05:06 +0000)]
Need <time.h> for time() and others.  Pulled in by coincidence previously

noted by tb@

8 years ago-E NONE has *never* worked; it was always -E none. It's a dubious option
guenther [Fri, 26 Aug 2016 04:40:27 +0000 (04:40 +0000)]
-E NONE has *never* worked; it was always -E none.  It's a dubious option
value that merits a warning in the manpage and using 2 billion will get
you practically the same effect, so delete the -E none support

8 years agooptions.h is only used by options.c; merge it into the .c file
guenther [Fri, 26 Aug 2016 04:33:11 +0000 (04:33 +0000)]
options.h is only used by options.c; merge it into the .c file
reduce and sort #includes

8 years agoreduce and sort #includes
guenther [Fri, 26 Aug 2016 04:31:35 +0000 (04:31 +0000)]
reduce and sort #includes

8 years agotables.h is only used by tables.c; merge it into the .c file
guenther [Fri, 26 Aug 2016 04:23:44 +0000 (04:23 +0000)]
tables.h is only used by tables.c; merge it into the .c file
<sys/time.h> is unnecessary; sort the #includes

8 years ago<sys/time.h>, <errno.h>, and <stdlib.h> are unnecessary; sort #includes
guenther [Fri, 26 Aug 2016 04:22:13 +0000 (04:22 +0000)]
<sys/time.h>, <errno.h>, and <stdlib.h> are unnecessary; sort #includes

8 years agosel_subs.h is only used by sel_subs.c; merge it into the .c file
guenther [Fri, 26 Aug 2016 04:20:38 +0000 (04:20 +0000)]
sel_subs.h is only used by sel_subs.c; merge it into the .c file
<sys/time.h> and <unistd.h> are unnecessary, but <time.h> is; sort #includes

8 years agopat_rep.h is only used by pat_rep.c; merge it into the .c file
guenther [Fri, 26 Aug 2016 04:19:28 +0000 (04:19 +0000)]
pat_rep.h is only used by pat_rep.c; merge it into the .c file
<sys/time.h>, <errno.h> and <unistd.h> are unnecessary; sort #includes

8 years agoftree.h is only used by ftree.c; merge it into the .c file
guenther [Fri, 26 Aug 2016 04:17:48 +0000 (04:17 +0000)]
ftree.h is only used by ftree.c; merge it into the .c file
<sys/time.h> is unnecessary; sort #includes

8 years agoDon't need <sys/time.h> or "options.h" here
guenther [Fri, 26 Aug 2016 04:11:16 +0000 (04:11 +0000)]
Don't need <sys/time.h> or "options.h" here

8 years agocache.h is only used by cache.c; merge it into the .c file
guenther [Fri, 26 Aug 2016 04:08:18 +0000 (04:08 +0000)]
cache.h is only used by cache.c; merge it into the .c file
<unistd.h> and <sys/time.h> are unneeded here

ok by general acclaim

8 years agocorrect INTR_MSG_MASK to include INTR_MSG_1
jsg [Fri, 26 Aug 2016 00:45:50 +0000 (00:45 +0000)]
correct INTR_MSG_MASK to include INTR_MSG_1
ok dlg@

8 years agoadd a sIgnore opcode that silently ignores options and use it to
djm [Thu, 25 Aug 2016 23:57:54 +0000 (23:57 +0000)]
add a sIgnore opcode that silently ignores options and use it to
suppress noisy deprecation warnings for the Protocol directive.

req henning, ok markus

8 years agoremove superfluous NOTREACHED comment
djm [Thu, 25 Aug 2016 23:56:51 +0000 (23:56 +0000)]
remove superfluous NOTREACHED comment

8 years agoSet relayd socket buffer size to reasonable value to make test pass
bluhm [Thu, 25 Aug 2016 23:37:03 +0000 (23:37 +0000)]
Set relayd socket buffer size to reasonable value to make test pass
in different environments.

8 years agoMake relayd test slow-consumer more reliable. Set SO_SNDTIMEO
bluhm [Thu, 25 Aug 2016 22:56:13 +0000 (22:56 +0000)]
Make relayd test slow-consumer more reliable.  Set SO_SNDTIMEO
sockopt correctly with Perl pack on i386.  Make it possible to grep
in each others client and server logfile.  Client does not simply
sleep but waits for short write at server.

8 years agoAfter read errors, fgetln(3) sometimes succeeded (returning non-NULL)
schwarze [Thu, 25 Aug 2016 19:21:33 +0000 (19:21 +0000)]
After read errors, fgetln(3) sometimes succeeded (returning non-NULL)
and failed (setting errno and ferror(3)) both at the same time.
That's a bad idea in general, and here in particular since
returning partial lines was neither reliable (sometimes, you
got NULL anyway) nor predictable (almost always, the line would
be truncated long before the actual read error).
Instead, on read failure, fail properly and always return NULL.
Issue found in a discussion with Andrey Chernov <ache at freebsd dot org>
who finally agreed to move FreeBSD into the same direction.
The fix is joint work with and OK by millert@.

8 years agoFix sosplice tests on 32 bit systems by putting the correct number
bluhm [Thu, 25 Aug 2016 17:13:59 +0000 (17:13 +0000)]
Fix sosplice tests on 32 bit systems by putting the correct number
of bytes into the time_t Perl pack template.  Also fix error messages.

8 years ago-F before -f (as -I before -i currently is...);
jmc [Thu, 25 Aug 2016 16:27:16 +0000 (16:27 +0000)]
-F before -f (as -I before -i currently is...);

8 years agoRemove a check to expire received prefix.
mpi [Thu, 25 Aug 2016 16:12:16 +0000 (16:12 +0000)]
Remove a check to expire received prefix.

This check does not make sense since November 2000 when IPv6 autoconf
address deletion has been made independent from prefix lifetimes.

Fix a case when a route was added to the table but the corresponding
address was not, leaving v6 unusable.

Found the hardway by and ok sthen@

8 years agowhen using -o, we may restart a match in the middle of the line.
tedu [Thu, 25 Aug 2016 15:11:05 +0000 (15:11 +0000)]
when using -o, we may restart a match in the middle of the line.
set NOTBOL so that anchored patterns don't match.
from a patch by DaniĆ«l de Kok in freebsd bug 201650
ok martijn

8 years agomake the full filesystem check optional, by popular demand.
espie [Thu, 25 Aug 2016 14:58:43 +0000 (14:58 +0000)]
make the full filesystem check optional, by popular demand.
doubling -q removes the plist thorough check.

8 years agoAmend after clean-up of fortran.port.mk
dcoppa [Thu, 25 Aug 2016 14:57:35 +0000 (14:57 +0000)]
Amend after clean-up of fortran.port.mk

8 years agoshorten the pkeyutl text;
jmc [Thu, 25 Aug 2016 14:37:28 +0000 (14:37 +0000)]
shorten the pkeyutl text;
help/ok guenther

8 years agoSpliced TCP sockets become faster when the output part is running
bluhm [Thu, 25 Aug 2016 14:13:19 +0000 (14:13 +0000)]
Spliced TCP sockets become faster when the output part is running
as its own task thread.  This is inspired by userland copy where a
process also has to go through the scheduler.  This gives the socket
buffer a chance to be filled up and tcp_output() is called less
often and with bigger chunks.
When two kernel tasks share all the workload, the current scheduler
implementation will hang userland processes on single cpu machines.
As a workaround put a yield() into the splicing thread after each
task execution.  This reduces the number of calls of tcp_output()
even more.
OK tedu@ mpi@

8 years agoCompletely revert the M_WAIT change on the cluster allocation and
bluhm [Thu, 25 Aug 2016 13:59:16 +0000 (13:59 +0000)]
Completely revert the M_WAIT change on the cluster allocation and
bring back the behaviour of rev 1.72.  Although allocating small
mbufs when allocating an mbuf cluster fails seems suboptimal, this
should not be changed as a side effect when introducing m_getuio().
OK claudio@

8 years agoSimplify ip6_getpmtu() to use a 'struct rtentry *' instead of two
mpi [Thu, 25 Aug 2016 12:30:16 +0000 (12:30 +0000)]
Simplify ip6_getpmtu() to use a 'struct rtentry *' instead of two
'struct route_in6 *'.

This is another little step towards deprecating 'struct route{,_in6}'

Inputs from and ok bluhm@

8 years agogoda@ contributed most of the OpenFlow 1.3.5 parts in ofp.h (for the
reyk [Thu, 25 Aug 2016 11:00:44 +0000 (11:00 +0000)]
goda@ contributed most of the OpenFlow 1.3.5 parts in ofp.h (for the
"still-unreleased" switch(4) driver), so it is only fair to add his
copyright.  This header file will eventually move to net/ofp.h.

8 years agoFix pfsync(4)'s carp examples: as of ip_carp.c r1.245, carpdev must be
sthen [Thu, 25 Aug 2016 10:51:37 +0000 (10:51 +0000)]
Fix pfsync(4)'s carp examples: as of ip_carp.c r1.245, carpdev must be
specified.  From Bryan Stenson.

8 years agoFix rtadvd.conf(5) example for pinfoflags, it accepts numbers not strings.
sthen [Thu, 25 Aug 2016 09:41:13 +0000 (09:41 +0000)]
Fix rtadvd.conf(5) example for pinfoflags, it accepts numbers not strings.
ok phessler

8 years agoDo not crash if display-message used without a client, issue reported by
nicm [Thu, 25 Aug 2016 09:33:14 +0000 (09:33 +0000)]
Do not crash if display-message used without a client, issue reported by
Serge Aleynikov, fix from Thomas Adam.

8 years agoEnable the UWXN bit in the SCTRL register when available. This should
kettenis [Thu, 25 Aug 2016 08:17:57 +0000 (08:17 +0000)]
Enable the UWXN bit in the SCTRL register when available.  This should
prevent the kernel from accidentally executing userland pages that are
writable.

ok jsg@, patrick@

8 years agoremove lint comments
tedu [Thu, 25 Aug 2016 05:25:21 +0000 (05:25 +0000)]
remove lint comments

8 years agoremove lint comments
tedu [Thu, 25 Aug 2016 05:23:19 +0000 (05:23 +0000)]
remove lint comments

8 years agodo not request RWX mappings, RW will do
deraadt [Thu, 25 Aug 2016 05:12:06 +0000 (05:12 +0000)]
do not request RWX mappings, RW will do

8 years agoReplace name_{uid,gid}() with the libc routines user_from_uid() and
guenther [Thu, 25 Aug 2016 01:44:55 +0000 (01:44 +0000)]
Replace name_{uid,gid}() with the libc routines user_from_uid() and
group_from_gid().  Eliminate some superfluous strncpy() calls.

ok millert@

8 years agopool_setipl for udf
dlg [Thu, 25 Aug 2016 00:06:44 +0000 (00:06 +0000)]
pool_setipl for udf

ok phessler@ krw@

8 years agopool_setipl
dlg [Thu, 25 Aug 2016 00:01:13 +0000 (00:01 +0000)]
pool_setipl

ok kettenis@

8 years agopool_setipl
dlg [Thu, 25 Aug 2016 00:00:02 +0000 (00:00 +0000)]
pool_setipl

ok kettenis@

8 years agoMove the pf address printing test into its own subdirectory. This
bluhm [Wed, 24 Aug 2016 22:31:41 +0000 (22:31 +0000)]
Move the pf address printing test into its own subdirectory.  This
makes it consistent with the regress tree structure.

8 years agoMake list-like output go to stderr when appending to an archive on stdout.
guenther [Wed, 24 Aug 2016 19:15:42 +0000 (19:15 +0000)]
Make list-like output go to stderr when appending to an archive on stdout.
Simplify the recognition of -f- and TAPE=- as meaning stdin/stdout.

ok millert@

8 years agoTreat cpio's -t option as a modifier to -i, so they're ordering independent
guenther [Wed, 24 Aug 2016 19:13:52 +0000 (19:13 +0000)]
Treat cpio's -t option as a modifier to -i, so they're ordering independent

ok millert@

8 years agoset the error indicator on malloc(3) failure;
schwarze [Wed, 24 Aug 2016 18:35:12 +0000 (18:35 +0000)]
set the error indicator on malloc(3) failure;
from Andrey Chernov <ache at freebsd dot org>;
OK millert@

8 years agoSince the removal of rwhod and friends a couple of years ago, there
renato [Wed, 24 Aug 2016 16:14:24 +0000 (16:14 +0000)]
Since the removal of rwhod and friends a couple of years ago, there
isn't any file in the base system including <protocols/rwhod.h>. So,
stop suggesting the inclusion of this header in this man page.

ok tedu@ deraadt@ mpi@

8 years agoUse writev(2) to write history records using a single syscall.
millert [Wed, 24 Aug 2016 16:09:40 +0000 (16:09 +0000)]
Use writev(2) to write history records using a single syscall.
OK deraadt@

8 years agoAvoid recursively calling c_fc(). Fixes a core dump from "r r" and
millert [Wed, 24 Aug 2016 13:32:17 +0000 (13:32 +0000)]
Avoid recursively calling c_fc().  Fixes a core dump from "r r" and
other edge cases found by gsoares@.  OK tb@ gsoares@

8 years agoReplace pmap_fault_fixup() with an access flag fault handler on armv7.
kettenis [Wed, 24 Aug 2016 13:09:52 +0000 (13:09 +0000)]
Replace pmap_fault_fixup() with an access flag fault handler on armv7.

ok tom@

8 years agopool_setipl for oce(4)
dlg [Wed, 24 Aug 2016 10:38:34 +0000 (10:38 +0000)]
pool_setipl for oce(4)

ok mikeb@

8 years agoKill ip6_forward_rt reducing differences between v4 and v6.
mpi [Wed, 24 Aug 2016 09:41:12 +0000 (09:41 +0000)]
Kill ip6_forward_rt reducing differences between v4 and v6.

A single forwarding cache is not the answer.  The answer is 42... err PF!

ok bluhm@

8 years agoUse rtalloc(9) directly instead of in6_selectsr() in icmp6_reflect().
mpi [Wed, 24 Aug 2016 09:38:29 +0000 (09:38 +0000)]
Use rtalloc(9) directly instead of in6_selectsr() in icmp6_reflect().

This is another little step towards deprecating 'struct route{,_in6}'.

ok bluhm@

8 years agopool_setipl for cardbus and drm pools.
dlg [Wed, 24 Aug 2016 09:31:56 +0000 (09:31 +0000)]
pool_setipl for cardbus and drm pools.

ok kettenis@

8 years agoshorten the pkeyparam text;
jmc [Wed, 24 Aug 2016 08:17:24 +0000 (08:17 +0000)]
shorten the pkeyparam text;

8 years agoshorten the pkey text;
jmc [Wed, 24 Aug 2016 08:07:33 +0000 (08:07 +0000)]
shorten the pkey text;

8 years agoConvert quad_t to int64_t and %q to %ll
guenther [Wed, 24 Aug 2016 03:13:45 +0000 (03:13 +0000)]
Convert quad_t to int64_t and %q to %ll
Convert bzero() to memset() and bcopy() to memcpy()

ok natano@ millert@

8 years agorename nfiles to numfiles to avoid shadowing and stretch out the name.
tedu [Tue, 23 Aug 2016 23:28:02 +0000 (23:28 +0000)]
rename nfiles to numfiles to avoid shadowing and stretch out the name.
ok deraadt

8 years agosync
deraadt [Tue, 23 Aug 2016 21:51:50 +0000 (21:51 +0000)]
sync

8 years agoDeassert all reset signals for the controller. Add support for more recent
kettenis [Tue, 23 Aug 2016 21:43:51 +0000 (21:43 +0000)]
Deassert all reset signals for the controller.  Add support for more recent
SoCs that have a separate clock for each PHY.

8 years agoAdd functions to assert/deassert all reset signals for a device.
kettenis [Tue, 23 Aug 2016 21:30:18 +0000 (21:30 +0000)]
Add functions to assert/deassert all reset signals for a device.

8 years agoSome syslogd tests failed to report errors. Make these tests more
bluhm [Tue, 23 Aug 2016 21:20:05 +0000 (21:20 +0000)]
Some syslogd tests failed to report errors.  Make these tests more
strict and adapt the check patterns.

8 years agoAdd support for the usb clock on sun5i-a13 as well.
kettenis [Tue, 23 Aug 2016 19:13:37 +0000 (19:13 +0000)]
Add support for the usb clock on sun5i-a13 as well.

8 years agoinclude acpicbkbd
jcs [Tue, 23 Aug 2016 18:58:53 +0000 (18:58 +0000)]
include acpicbkbd

8 years agoshorten pkcs12;
jmc [Tue, 23 Aug 2016 18:54:04 +0000 (18:54 +0000)]
shorten pkcs12;

8 years agoadd a man page for acpicbkbd
jcs [Tue, 23 Aug 2016 18:39:08 +0000 (18:39 +0000)]
add a man page for acpicbkbd

8 years agore-enable acpicbkbd by default now that acpiec won't try burst mode
jcs [Tue, 23 Aug 2016 18:27:08 +0000 (18:27 +0000)]
re-enable acpicbkbd by default now that acpiec won't try burst mode
on the chrome ec

8 years agodon't enter burst mode for single-byte reads and writes.
jcs [Tue, 23 Aug 2016 18:26:21 +0000 (18:26 +0000)]
don't enter burst mode for single-byte reads and writes.

avoids problems on hardware with broken or unimplemented burst mode
and isn't really necessary for such small transactions anyway.
matches what linux and freebsd have done for a long time.

tested in snaps
ok deraadt kettenis

8 years agoThe device trees for sun8i and sun9i no longer include an address in the
kettenis [Tue, 23 Aug 2016 18:16:06 +0000 (18:16 +0000)]
The device trees for sun8i and sun9i no longer include an address in the
name of the /soc node.  Leave it off, as the device path will still match
on nodes that include it.

8 years agoActually make fdt_find_node() return NULL if the node couldn't be found.
kettenis [Tue, 23 Aug 2016 18:12:09 +0000 (18:12 +0000)]
Actually make fdt_find_node() return NULL if the node couldn't be found.

ok tom@

8 years agoType. 'if' != 'lf'. Fixes error message and setting hostname from dhcp lease
krw [Tue, 23 Aug 2016 16:49:48 +0000 (16:49 +0000)]
Type. 'if' != 'lf'. Fixes error message and setting hostname from dhcp lease
during install.

Spotted & diff from Patrik Lundin. Thanks!

8 years agofix previous, a condition was modified incorrectly; ok markus@ deraadt@
otto [Tue, 23 Aug 2016 16:21:45 +0000 (16:21 +0000)]
fix previous, a condition was modified incorrectly; ok markus@ deraadt@

8 years agosync
okan [Tue, 23 Aug 2016 14:05:11 +0000 (14:05 +0000)]
sync

8 years agoUpdate the L2 content of a RTF_CACHED entry instead of going though
mpi [Tue, 23 Aug 2016 13:07:26 +0000 (13:07 +0000)]
Update the L2 content of a RTF_CACHED entry instead of going though
a create/delete/insert cycle as such entry cannot be deleted when
referenced.

Regression reported by and ok bluhm@

8 years agoThe TLB refill and XTLB refill exceptions use distinct exception vectors
visa [Tue, 23 Aug 2016 12:54:09 +0000 (12:54 +0000)]
The TLB refill and XTLB refill exceptions use distinct exception vectors
on Loongson 3A. Consequently, the kernel has to set up both vectors to
prevent panics with virtual address references.

On Loongson 2F, it is enough to set up the TLB refill vector because
the XTLB refill exception uses the same vector address.

ok miod@

8 years agopool_setipl
dlg [Tue, 23 Aug 2016 12:37:44 +0000 (12:37 +0000)]
pool_setipl

8 years agopool_setipl
dlg [Tue, 23 Aug 2016 12:37:11 +0000 (12:37 +0000)]
pool_setipl

8 years agoUse rtalloc(9) directly instead of in6_selectsr() in NS/NA output
mpi [Tue, 23 Aug 2016 11:03:10 +0000 (11:03 +0000)]
Use rtalloc(9) directly instead of in6_selectsr() in NS/NA output
routines.

This is another little step towards deprecating 'struct route{,_in6}'.

ok bluhm@

8 years agoDo not use a single global struct route_in6 to cache route lookups.
mpi [Tue, 23 Aug 2016 11:01:16 +0000 (11:01 +0000)]
Do not use a single global struct route_in6 to cache route lookups.

This is a little step towards deprecating 'struct route{,_in6}'.

ok jca@, claudio@

8 years agoMake the 'ifi' global local to dhclient.c and pass it as an argument to
mpi [Tue, 23 Aug 2016 09:26:02 +0000 (09:26 +0000)]
Make the 'ifi' global local to dhclient.c and pass it as an argument to
functions needing it.

This is the first step to support multiple interfaces in one dhclient(8)
instance.

ok krw@

8 years agodowngrade an error() to a debug2() to match similar cases
djm [Tue, 23 Aug 2016 08:17:42 +0000 (08:17 +0000)]
downgrade an error() to a debug2() to match similar cases
in addr_match_list()

8 years agoadd tests for addr_match_list()
djm [Tue, 23 Aug 2016 08:17:04 +0000 (08:17 +0000)]
add tests for addr_match_list()

8 years agoImplement support for DT_INIT_ARRAY, DT_FINI_ARRAY and DT_PREINIT_ARRAY.
kettenis [Tue, 23 Aug 2016 06:46:17 +0000 (06:46 +0000)]
Implement support for DT_INIT_ARRAY, DT_FINI_ARRAY and DT_PREINIT_ARRAY.
Don't skip DT_INIT and DT_FINI for the main executable.  This matches what
Linux and Solaris do.

ok guenther@