Age | Commit message (Collapse) | Author |
|
strcspn(3) instead of afterwards. Fixes an out-of-bound read that led
to intermittent crashes experienced by rob in his regression test.
ok rob
|
|
input benno, deraadt, tedu
also standardize on #if 0 since it makes tedu's editor vomit.
OK benno, pirofti on a previous version
|
|
Ok benno@, jca@.
|
|
clang pointed out that we tried to store 128 in a signed char.
OK gerhard
|
|
Pointed out by clang.
(Not really a problem here since we control the string, but these
things tend to get coppied around)
ok gerhard@
|
|
error-status and error-index to zero in the response PDU.
ok sthen@
|
|
Use the macro from route(8) / ospf6d(8) since it works also with argument 0.
OK claudio@
|
|
instead of CLEANFILES += y.tab.h
okay millert@
|
|
time_second. Since time_second changes depending on the wall-
clock time, time_second is not a reliable source for the status.
We can even end up with a negative time delta. Thus, use the
monotonically growing time_uptime and export it to userland.
ok bluhm@ mikeb@
|
|
|
|
which I broke when adding support for multiple listen address. SNMP
data should be sent to the client using the appropriate socket, which we
now store when we receive the query.
Reported & fix tested by Rivo Nurges.
|
|
Fix from Rivo Nurges.
|
|
string to hex nybble by nybble. This avoids using the return value
of snprintf() unchecked. OK deraadt@
|
|
warn with the same severity. Switch log_warn() to LOG_ERR and keep
fatal() at LOG_CRIT.
OK reyk@ florian@
|
|
OPENBSD-SENSORS-MIB, % is the unit for this value and is already present
in sensorUnits, and it's harder for NMS to parse "100.00%" as a number.
From Joel Knight.
|
|
Found by krw@
|
|
steal code.
|
|
This replaces log_verbose() and "extern int verbose" with the two functions
log_setverbose() and log_getverbose().
Pointed out by benno@
OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
|
|
so it is safe calling log_* after an error without loosing the it.
|
|
modern TAILQ_FOREACH_SAFE().
No intentional functional change.
ok millert@ bluhm@ gilles@
|
|
with more modern TAILQ_FOREACH(). This what symget() was already
doing.
Add paranoia '{}' around body of symget()'s TAILQ_FOREACH().
No intentional functional change.
ok bluhm@ otto@
|
|
One can now specify multiple "listen on" statements. The default is to
listen on 0.0.0.0 and ::, which means better handling of dual-stack
setups. ok sthen@ on a previous version, input and ok reyk@.
|
|
- send replies using a source address equal to the destination address
of queries, using IP_SENDSRCADDR. This help in multihomed setups and
can remove the need to explicitely configure a bind address.
- config knob to set the source address of packets sent to trap
receivers. "trap receiver" gains an optional "source-address"
setting.
Source address issues reported by Andy Lemin. ok benno@
|
|
ok jca@, reyk@
|
|
and avoid problems.
ok jca@
|
|
additional actions before printing it. OK rzalamena@
|
|
EVP_CipherFinal_ex has well defined behaviour, where EVP_CipherFinal
can vary depending on the version of your ssl library.
ok bcook@ jsing@
|
|
to do it.
ok deraadt@
|
|
improved by sthen@
ok reyk@
|
|
OK jca@, deraadt@
|
|
Diff from Jan Klemkow, ok mikeb@
|
|
let the caller handle EAGAIN.
ok reyk@ gilles@
|
|
ok deraadt@
|
|
ok natano reyk
|
|
change this in all config parsers in our tree that support macros.
problem reported by sven falempin.
feedback from henning@, stsp@, deraadt@
ok florian@ mikeb@
|
|
|
|
have subtly modified copies of the file)
from rob pierce
|
|
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
|
|
ok blambert@
|
|
|
|
|
|
|
|
|
|
|
|
remove a handful of NULL-checks before free().
|
|
(SOCK_CLOEXEC should also be added where it is appropriate, but this is OBnot
done in this commit yet.)
OK claudio@
|
|
|
|
include the process name, and replace all calls of fatal*(NULL) with
fatal(__func__) for better debugging.
OK benno@
|
|
get rid of the "LOSS OF MIND" joke. Haha. We keep on removing it and
it shows up again because it accidentally gets synced from somewhere
else. bgpd and ospfd don't have it anymore, but their offsprings
still carry it. If you see it, remove it, and, in the OpenBSD ISC
case, use the original text from /usr/share/misc/license.template.
All authors agree.
|
|
|