openbsd
9 years agoStop including <sys/param.h> and other stuff. Assume this will be included
deraadt [Thu, 15 Jan 2015 23:56:58 +0000 (23:56 +0000)]
Stop including <sys/param.h> and other stuff.  Assume this will be included
with sys limits in scope, so use PATH_MAX instead.
ok millert guenther

9 years agodo not assume <netmls/mpls.h> will pull in <limits.h> via <sys/param.h>
deraadt [Thu, 15 Jan 2015 23:51:04 +0000 (23:51 +0000)]
do not assume <netmls/mpls.h> will pull in <limits.h> via <sys/param.h>
get <limits.h> directly.
ok millert

9 years agoDo not include 5 header files, including <sys/param.h>
deraadt [Thu, 15 Jan 2015 23:50:31 +0000 (23:50 +0000)]
Do not include 5 header files, including <sys/param.h>
ok millert

9 years agoadd kex unit tests
markus [Thu, 15 Jan 2015 23:41:29 +0000 (23:41 +0000)]
add kex unit tests

9 years agoremove static version string
tedu [Thu, 15 Jan 2015 23:26:40 +0000 (23:26 +0000)]
remove static version string

9 years agosimplify des headers by stripping out all the unnecessary userland bits
tedu [Thu, 15 Jan 2015 23:20:33 +0000 (23:20 +0000)]
simplify des headers by stripping out all the unnecessary userland bits
ok deraadt

9 years agofully remove disabled mschap support, which does weird DES things.
tedu [Thu, 15 Jan 2015 23:19:48 +0000 (23:19 +0000)]
fully remove disabled mschap support, which does weird DES things.
(already won't build for some time since the removal of md4)
ok naddy

9 years agoRemove a variable no longer used in re_tick().
brad [Thu, 15 Jan 2015 23:06:08 +0000 (23:06 +0000)]
Remove a variable no longer used in re_tick().

From Fabian Raetz <fabian dot raetz at gmail dot com>

9 years agouse PATH_MAX for path buffers. in case, you know...
tedu [Thu, 15 Jan 2015 22:21:01 +0000 (22:21 +0000)]
use PATH_MAX for path buffers. in case, you know...

9 years agoIf some mythical system lacks PATH_MAX, do not set it to MAXPATHLEN+1
deraadt [Thu, 15 Jan 2015 22:08:41 +0000 (22:08 +0000)]
If some mythical system lacks PATH_MAX, do not set it to MAXPATHLEN+1
ok millert

9 years agoremove xmalloc, switch to sshbuf
markus [Thu, 15 Jan 2015 21:38:50 +0000 (21:38 +0000)]
remove xmalloc, switch to sshbuf

9 years agoswitch to sshbuf
markus [Thu, 15 Jan 2015 21:37:14 +0000 (21:37 +0000)]
switch to sshbuf

9 years agoUVM_INH_* and UVM_ADV_* are gone; use MAP_INHERIT_* and MADV_*
guenther [Thu, 15 Jan 2015 21:19:22 +0000 (21:19 +0000)]
UVM_INH_* and UVM_ADV_* are gone; use MAP_INHERIT_* and MADV_*

9 years agoRework the disk label handling once again. Disk label is read at attach time
miod [Thu, 15 Jan 2015 21:17:54 +0000 (21:17 +0000)]
Rework the disk label handling once again. Disk label is read at attach time
because it teaches us the drive geometry, but from then on there is no reason
not to implement disklabel spoof support and a proper DIOCGPDINFO ioctl.

As a result, this makes disklabel -A now work on SMD disks.

The drawback of this, is that, since native labels do not have a pcylinders
value, the code will now always assume pcylinders == ncylinders + acylinders.
(this ought to be the case by default for labels produced by SunOS format(8).)

9 years agoBe sure to print time_t with the appropriate format specifier. Repairs
miod [Thu, 15 Jan 2015 20:48:51 +0000 (20:48 +0000)]
Be sure to print time_t with the appropriate format specifier. Repairs
dump of eeprom variables on sun4.

9 years agoTest shmat() with a non-NULL address, both failure and success
guenther [Thu, 15 Jan 2015 20:40:59 +0000 (20:40 +0000)]
Test shmat() with a non-NULL address, both failure and success

9 years agoUse .An in the AUTHORS section where appropriate;
schwarze [Thu, 15 Jan 2015 20:37:36 +0000 (20:37 +0000)]
Use .An in the AUTHORS section where appropriate;
from Kaspars at Bankovskis dot net

9 years agoThe flags variable in shmat was not actually used. We need UVM_FLAG_*
millert [Thu, 15 Jan 2015 20:36:17 +0000 (20:36 +0000)]
The flags variable in shmat was not actually used.  We need UVM_FLAG_*
flags, not mmap-style flags for UVM_MAPFLAG().  Remove the nonsensical
MAP_ANON|MAP_SHARED value and convert MAP_FIXED to UVM_FLAG_FIXED.
OK guenther@

9 years agowe don't have an alloca() symbol anywhere in libc, don't prototype it.
tedu [Thu, 15 Jan 2015 19:55:58 +0000 (19:55 +0000)]
we don't have an alloca() symbol anywhere in libc, don't prototype it.
instead, #define to __builtin_alloca. if that doesn't work, you're hosed.
from an old discussion about the perils of alloca. (don't use alloca!)

9 years agouse .In where appropriate; from Kaspars at Bankovskis dot net
schwarze [Thu, 15 Jan 2015 19:26:27 +0000 (19:26 +0000)]
use .In where appropriate; from Kaspars at Bankovskis dot net

9 years agotypo; from Kaspars at Bankovskis dot net
schwarze [Thu, 15 Jan 2015 19:20:59 +0000 (19:20 +0000)]
typo; from Kaspars at Bankovskis dot net

9 years agooops, forgotten back-pointer to state for error messages
espie [Thu, 15 Jan 2015 19:16:17 +0000 (19:16 +0000)]
oops, forgotten back-pointer to state for error messages
problem noticed by jca@

9 years agoremove .Tn; from Jan Stary <hans at stare dot cz>
schwarze [Thu, 15 Jan 2015 19:06:31 +0000 (19:06 +0000)]
remove .Tn; from Jan Stary <hans at stare dot cz>

9 years agohandle UMAC128 initialization like UMAC; ok djm@ markus@
naddy [Thu, 15 Jan 2015 18:32:54 +0000 (18:32 +0000)]
handle UMAC128 initialization like UMAC; ok djm@ markus@

9 years agoFix subtle breakage for polled commands introduced during iopool conversion.
miod [Thu, 15 Jan 2015 17:54:14 +0000 (17:54 +0000)]
Fix subtle breakage for polled commands introduced during iopool conversion.

9 years agoremove unused variable
chl [Thu, 15 Jan 2015 17:34:15 +0000 (17:34 +0000)]
remove unused variable

ok tedu@

9 years agoremove unused variable
chl [Thu, 15 Jan 2015 17:32:43 +0000 (17:32 +0000)]
remove unused variable

ok tedu@

9 years agoall modern systems can do this SUSPEND thing
deraadt [Thu, 15 Jan 2015 17:14:04 +0000 (17:14 +0000)]
all modern systems can do this SUSPEND thing

9 years agoNR_OF_EOFS is a festering boil, lance & drain.
deraadt [Thu, 15 Jan 2015 17:13:37 +0000 (17:13 +0000)]
NR_OF_EOFS is a festering boil, lance & drain.
ok millert

9 years agoMap the sigcode page with MAP_INHERIT_COPY to make sure it isn't shared ater
kettenis [Thu, 15 Jan 2015 16:31:19 +0000 (16:31 +0000)]
Map the sigcode page with MAP_INHERIT_COPY to make sure it isn't shared ater
a fork.

ok deraadt@

9 years agoDon't include i82489 headers in cpu.h
sf [Thu, 15 Jan 2015 15:30:17 +0000 (15:30 +0000)]
Don't include i82489 headers in cpu.h

Only pmap.c was not including them explicitly. Fix that.

"The direction is good" deraadt@

9 years agoDefine and print HV cpuid flag on i386.
sf [Thu, 15 Jan 2015 13:58:55 +0000 (13:58 +0000)]
Define and print HV cpuid flag on i386.

This is set by many hypervisors, including kvm, vmware, hyper-v.

9 years agoRemove an unnecessary variable and shorten a line.
nicm [Thu, 15 Jan 2015 13:43:13 +0000 (13:43 +0000)]
Remove an unnecessary variable and shorten a line.

9 years agoShorten some long lines.
nicm [Thu, 15 Jan 2015 13:35:13 +0000 (13:35 +0000)]
Shorten some long lines.

9 years agoAdd a test for syslogd that reconnects to a TCP syslog server after
bluhm [Thu, 15 Jan 2015 13:15:17 +0000 (13:15 +0000)]
Add a test for syslogd that reconnects to a TCP syslog server after
an established connection has been closed.

9 years agoUse explicit_bzero instead of memset in hash Final and End functions.
millert [Thu, 15 Jan 2015 13:05:59 +0000 (13:05 +0000)]
Use explicit_bzero instead of memset in hash Final and End functions.
OK deraadt@ djm@

9 years agotell the truth about DES.
sobrado [Thu, 15 Jan 2015 11:54:31 +0000 (11:54 +0000)]
tell the truth about DES.

joint work with djm@ and jsing@

ok djm@

9 years agoWhen the connection to a TCP syslog server fails or the TCP connection
bluhm [Thu, 15 Jan 2015 11:49:59 +0000 (11:49 +0000)]
When the connection to a TCP syslog server fails or the TCP connection
terminates, try to reconnect after an increasing timeout.
test and OK jasper@

9 years agofix regression reported by brad@ for passworded keys without
djm [Thu, 15 Jan 2015 11:04:36 +0000 (11:04 +0000)]
fix regression reported by brad@ for passworded keys without
agent present

9 years agoMap the sigcode page copy-on-write. This allows userland to put breakpoints
kettenis [Thu, 15 Jan 2015 10:04:26 +0000 (10:04 +0000)]
Map the sigcode page copy-on-write.  This allows userland to put breakpoints
in the signal trampoline.  Solves some long-standing issues with debugging
signal handlers in GDB.

ok deraadt@

9 years agosync ssh-keysign, ssh-keygen and some dependencies to the new
djm [Thu, 15 Jan 2015 09:40:00 +0000 (09:40 +0000)]
sync ssh-keysign, ssh-keygen and some dependencies to the new
buffer/key API; mostly mechanical, ok markus@

9 years agoExtend the description of _timeout.
ajacoutot [Thu, 15 Jan 2015 09:20:37 +0000 (09:20 +0000)]
Extend the description of _timeout.

9 years agowhen enqueueing offline mails from within the daemon session, we should not
gilles [Thu, 15 Jan 2015 09:05:37 +0000 (09:05 +0000)]
when enqueueing offline mails from within the daemon session, we should not
rely on getlogin() otherwise mail will end up enqueued as coming from user
who started smtpd.

bug spotted by deraadt@, diff ok todd@

9 years agoremove commented-out test code now that it has moved to a
djm [Thu, 15 Jan 2015 07:57:08 +0000 (07:57 +0000)]
remove commented-out test code now that it has moved to a
proper unit test

9 years agounit tests for KRL bitmap
djm [Thu, 15 Jan 2015 07:36:28 +0000 (07:36 +0000)]
unit tests for KRL bitmap

9 years agoback in september I did the large abstraction refactoring to allow these
deraadt [Thu, 15 Jan 2015 06:57:18 +0000 (06:57 +0000)]
back in september I did the large abstraction refactoring to allow these
other systems to fit into the same mold, so add copyright

9 years agoFatal errors no longer exist.
schwarze [Thu, 15 Jan 2015 04:26:06 +0000 (04:26 +0000)]
Fatal errors no longer exist.
If a file can be opened, mandoc will produce some output;
at worst, the output may be almost empty.
Simplifies error handling and frees a message type for future use.

9 years agoSync with libc version.
millert [Thu, 15 Jan 2015 03:54:28 +0000 (03:54 +0000)]
Sync with libc version.

9 years agoMake strlcpy/strlcat slightly easier to read.
millert [Thu, 15 Jan 2015 03:54:12 +0000 (03:54 +0000)]
Make strlcpy/strlcat slightly easier to read.

9 years agoPOSIX does not require an explicit inclusion of sys/types.h to get
millert [Thu, 15 Jan 2015 03:19:43 +0000 (03:19 +0000)]
POSIX does not require an explicit inclusion of sys/types.h to get
uid_t or gid_t (and neither do we).  OK deraadt@

9 years agodowngrade .so failure from FATAL to ERROR
schwarze [Thu, 15 Jan 2015 02:29:07 +0000 (02:29 +0000)]
downgrade .so failure from FATAL to ERROR

9 years agoDefine a new wscons mouse type for Synaptics clickpad devices that lack
jsg [Thu, 15 Jan 2015 01:19:28 +0000 (01:19 +0000)]
Define a new wscons mouse type for Synaptics clickpad devices that lack
physical buttons.  This will be used if the acpi pnpid for the mouse
matches a list provided by Synaptics found in Linux.

Combined with the xenocara changes this will remove the need for an xorg
config file for the x240/t440/t540 generation of thinkpads.

ok matthieu@ shadchin@ kettenis@

9 years agoI bet the reference to <sys/ttycom.h> near the ldisc list in tty(4)
deraadt [Thu, 15 Jan 2015 00:48:10 +0000 (00:48 +0000)]
I bet the reference to <sys/ttycom.h> near the ldisc list in tty(4)
led this program and the associated manual pages to including that
file directly, rather than the canonical include path of <sys/ioctl.h>
discussed with millert

9 years agodo not be specific regarding which ioctl backend .h file; the list
deraadt [Thu, 15 Jan 2015 00:45:20 +0000 (00:45 +0000)]
do not be specific regarding which ioctl backend .h file; the list
is good enough, and we do not want to mislead.  the file to include
is at the top of the file.

9 years agonot supposed to include sys/ttycom.h (these may have rpcgen history)
deraadt [Thu, 15 Jan 2015 00:40:23 +0000 (00:40 +0000)]
not supposed to include sys/ttycom.h (these may have rpcgen history)

9 years agowrong place to mention nmea. cua is different, that hints at how it
deraadt [Thu, 15 Jan 2015 00:32:36 +0000 (00:32 +0000)]
wrong place to mention nmea.  cua is different, that hints at how it
works to many.

9 years agodelete overly-specific details that cause espie angst.
deraadt [Thu, 15 Jan 2015 00:25:00 +0000 (00:25 +0000)]
delete overly-specific details that cause espie angst.
ok millert tedu

9 years agochange _yp_domain[] to HOST_NAME_MAX+1, and re-arrange those who include
deraadt [Wed, 14 Jan 2015 23:36:15 +0000 (23:36 +0000)]
change _yp_domain[] to HOST_NAME_MAX+1, and re-arrange those who include
it to get limits.h early enough

9 years agothese never needed sys/param.h
deraadt [Wed, 14 Jan 2015 23:03:50 +0000 (23:03 +0000)]
these never needed sys/param.h

9 years agodowngrade ".so with absolute path" from FATAL to ERROR;
schwarze [Wed, 14 Jan 2015 22:57:57 +0000 (22:57 +0000)]
downgrade ".so with absolute path" from FATAL to ERROR;
allows to get rid of ROFF_ERR

9 years agosimplify by getting rid of ROFF_ERR in tbl(7) parsing; no functional change
schwarze [Wed, 14 Jan 2015 22:44:51 +0000 (22:44 +0000)]
simplify by getting rid of ROFF_ERR in tbl(7) parsing; no functional change

9 years agoTo get rid of SYSERR entries in enum mandocerr, downgrade problems with
schwarze [Wed, 14 Jan 2015 22:02:00 +0000 (22:02 +0000)]
To get rid of SYSERR entries in enum mandocerr, downgrade problems with
missing and unreadable files from SYSERR to ERROR.
Needed for upcoming work.
As a bonus, this minimally simplifies code and documentation.

9 years agoDon't forget to register event counter for VME interrupts.
miod [Wed, 14 Jan 2015 21:35:43 +0000 (21:35 +0000)]
Don't forget to register event counter for VME interrupts.

9 years agoif earlier files set a non-zero exit status,
schwarze [Wed, 14 Jan 2015 21:27:01 +0000 (21:27 +0000)]
if earlier files set a non-zero exit status,
do not allow later files to reset it to zero

9 years agoThis does not need <sys/param.h>. If we change some other stuff around,
deraadt [Wed, 14 Jan 2015 21:17:52 +0000 (21:17 +0000)]
This does not need <sys/param.h>.  If we change some other stuff around,
it might not need <sys/types.h> either.  Even further changes could
eliminate it.  Anyone up for the exercise?

9 years agoWhen a read or write operation fails on a sector found on the bad block table,
miod [Wed, 14 Jan 2015 21:17:09 +0000 (21:17 +0000)]
When a read or write operation fails on a sector found on the bad block table,
be sure to adjust the IOPB data pointer before redirecting the I/O for this
particular sector to the replacement location.

Otherwise, the data pointer still points to the first sector of the I/O, which
may not necessarily be the one which failed.

(This is yet another 19 years old bug, making your filesystems self-destruct
even faster than intended)

9 years agoThis does not need <sys/param.h>. <sys/types.h> is enough.
deraadt [Wed, 14 Jan 2015 21:15:36 +0000 (21:15 +0000)]
This does not need <sys/param.h>.  <sys/types.h> is enough.
discussed with ratchov and sthen

9 years agoWhen the outcome of the watchdog processing is a reset, do not bother checking
miod [Wed, 14 Jan 2015 21:14:49 +0000 (21:14 +0000)]
When the outcome of the watchdog processing is a reset, do not bother checking
further pending requests, since they will be forcefully failed by the reset
routine.

9 years agoSwitch drift file format to ppm for compatibility with the ntp.org
naddy [Wed, 14 Jan 2015 21:14:27 +0000 (21:14 +0000)]
Switch drift file format to ppm for compatibility with the ntp.org
daemon.

Old drift files will be interpreted as a minuscule adjustment and
ntpd will proceed to rediscover the drift, like starting from zero
on a newly installed machine.

ok deraadt@

9 years agoMake the special buffer used for the few sector I/O at attach time a per-softc
miod [Wed, 14 Jan 2015 21:13:46 +0000 (21:13 +0000)]
Make the special buffer used for the few sector I/O at attach time a per-softc
member, rather than a global. No functional change.

9 years agowhitespace
djm [Wed, 14 Jan 2015 20:54:29 +0000 (20:54 +0000)]
whitespace

9 years agomove authfd.c and its tentacles to the new buffer/key API;
djm [Wed, 14 Jan 2015 20:05:27 +0000 (20:05 +0000)]
move authfd.c and its tentacles to the new buffer/key API;
ok markus@

9 years agofix small regression: ssh-agent would return a success message
djm [Wed, 14 Jan 2015 19:33:41 +0000 (19:33 +0000)]
fix small regression: ssh-agent would return a success message
but an empty signature if asked to sign using an unknown key;
ok markus@

9 years agopathconf(1) never happened.
deraadt [Wed, 14 Jan 2015 19:15:01 +0000 (19:15 +0000)]
pathconf(1) never happened.
ok guenther

9 years agoMake x[dy]c_e2str return a const char *.
miod [Wed, 14 Jan 2015 19:02:59 +0000 (19:02 +0000)]
Make x[dy]c_e2str return a const char *.
Remove obsolete comments in x[dy]dump().

9 years agoRemove pass-through ioctl for SMD disks (DIOSXDCMD). Nothing uses this, because
miod [Wed, 14 Jan 2015 19:01:00 +0000 (19:01 +0000)]
Remove pass-through ioctl for SMD disks (DIOSXDCMD). Nothing uses this, because
noone wrote an equivalent of SunOS format(8) and noone ever will.

9 years agoUse reallocarray() instead of calloc() when making a copy of the
millert [Wed, 14 Jan 2015 18:28:15 +0000 (18:28 +0000)]
Use reallocarray() instead of calloc() when making a copy of the
environment.  We already explicitly NULL terminate the array.

9 years agoSimplify handling of system errors: just exit(3).
schwarze [Wed, 14 Jan 2015 17:45:25 +0000 (17:45 +0000)]
Simplify handling of system errors: just exit(3).
We already do the same for malloc(3) failure.
The is no virtue in trying to survive failure of fork(2) and the like.

9 years agoReplace MAXHOSTNAMELEN with HOST_NAME_MAX+1 and MAXNAMLEN with NAME_MAX
millert [Wed, 14 Jan 2015 17:30:53 +0000 (17:30 +0000)]
Replace MAXHOSTNAMELEN with HOST_NAME_MAX+1 and MAXNAMLEN with NAME_MAX
and use limits.h instead of sys/param.h.

9 years agoUse HAVE_FOO for BSD-specific features instead of relying on the
millert [Wed, 14 Jan 2015 17:27:51 +0000 (17:27 +0000)]
Use HAVE_FOO for BSD-specific features instead of relying on the
BSD macro from sys/param.h.

9 years agoUse standard types for wait, readdir, signals and pids.
millert [Wed, 14 Jan 2015 17:27:29 +0000 (17:27 +0000)]
Use standard types for wait, readdir, signals and pids.

9 years agoRemove compatibility defines for ancient systems. We assume a
millert [Wed, 14 Jan 2015 17:27:13 +0000 (17:27 +0000)]
Remove compatibility defines for ancient systems.  We assume a
reasonable level of POSIX compliance.

9 years agoavoid BIGNUM in KRL code by using a simple bitmap;
djm [Wed, 14 Jan 2015 15:02:39 +0000 (15:02 +0000)]
avoid BIGNUM in KRL code by using a simple bitmap;
feedback and ok markus

9 years agoupdate sftp client and server to new buffer API.
djm [Wed, 14 Jan 2015 13:54:13 +0000 (13:54 +0000)]
update sftp client and server to new buffer API.
pretty much just mechanical changes; with & ok markus

9 years agoswitch to sshbuf/sshkey; with & ok djm@
markus [Wed, 14 Jan 2015 13:09:09 +0000 (13:09 +0000)]
switch to sshbuf/sshkey; with & ok djm@

9 years agoReplace "errx(1, "malloc failed")" with "err(1, NULL)" to get
millert [Wed, 14 Jan 2015 11:59:10 +0000 (11:59 +0000)]
Replace "errx(1, "malloc failed")" with "err(1, NULL)" to get
standard "Cannot allocate memory" message.

9 years agoavoid an warning for the !OPENSSL case
djm [Wed, 14 Jan 2015 10:46:28 +0000 (10:46 +0000)]
avoid an warning for the !OPENSSL case

9 years agoswith auth-options to new sshbuf/sshkey; ok djm@
markus [Wed, 14 Jan 2015 10:30:34 +0000 (10:30 +0000)]
swith auth-options to new sshbuf/sshkey; ok djm@

9 years agomake non-OpenSSL aes-ctr work on sshd w/ privsep; ok markus@
djm [Wed, 14 Jan 2015 10:29:45 +0000 (10:29 +0000)]
make non-OpenSSL aes-ctr work on sshd w/ privsep; ok markus@

9 years agoremove unneeded includes, sync my copyright across files & whitespace; ok djm@
markus [Wed, 14 Jan 2015 10:24:42 +0000 (10:24 +0000)]
remove unneeded includes, sync my copyright across files & whitespace; ok djm@

9 years agore-add comment about full path
markus [Wed, 14 Jan 2015 09:58:21 +0000 (09:58 +0000)]
re-add comment about full path

9 years agodon't reset to the installed sshd; connect before reconfigure, too
markus [Wed, 14 Jan 2015 09:54:38 +0000 (09:54 +0000)]
don't reset  to the installed sshd; connect before reconfigure, too

9 years agorecipient and sender lists now support the user+TAG notation, allowing
gilles [Wed, 14 Jan 2015 09:07:51 +0000 (09:07 +0000)]
recipient and sender lists now support the user+TAG notation, allowing
among other things a secondary MX to filter recipients to be relayed to a
primary MX even if they are using tags. there are other nice things to do
with that feature, use your imagination.

tested and ok florian@, tested by several users for a few days too

9 years agobring back reverted commits, the crash was unrelated
gilles [Wed, 14 Jan 2015 08:50:32 +0000 (08:50 +0000)]
bring back reverted commits, the crash was unrelated

9 years agoIt is sufficient to protect in6_ifattach() with splsoftnet().
bluhm [Wed, 14 Jan 2015 00:37:19 +0000 (00:37 +0000)]
It is sufficient to protect in6_ifattach() with splsoftnet().
OK mpi@

9 years agoMove debug printf for duplicate af to correct location.
millert [Tue, 13 Jan 2015 23:22:33 +0000 (23:22 +0000)]
Move debug printf for duplicate af to correct location.

9 years agoIn IBSS mode, stop calling the driver's newassoc() each time a probe
stsp [Tue, 13 Jan 2015 23:16:59 +0000 (23:16 +0000)]
In IBSS mode, stop calling the driver's newassoc() each time a probe
response is received from a node. Only call it once when the node is
initially discovered, as used to be the case before r1.4 of this file.
Asking the driver to set up its per-node private state once is enough.
Also remove an outdated comment.
ok sthen deraadt jsg

9 years agoBe developer-friendly, 'cause OpenBSD devs like to:
schwarze [Tue, 13 Jan 2015 23:16:12 +0000 (23:16 +0000)]
Be developer-friendly, 'cause OpenBSD devs like to:
cd /usr/src/share/man/man4; vi newdev.4 Makefile; make install; man newdev

When a manual is missing from an outdated database, let man(1)
show it anyway, using a KISS file system lookup as a fallback.
Requested by deraadt@.

87 new lines of code doesn't seem too much bloat to me.

Of course, keeping your mandoc.db(5) files up to date with makewhatis(8)
or weekly(8) is still required for apropos(1) to find your new pages.

9 years agoRemove bogus getopt.h include.
millert [Tue, 13 Jan 2015 21:49:36 +0000 (21:49 +0000)]
Remove bogus getopt.h include.

9 years agoFix printing of number of whitelist entries in debug mode.
millert [Tue, 13 Jan 2015 21:45:53 +0000 (21:45 +0000)]
Fix printing of number of whitelist entries in debug mode.