Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
a copy of the same log.c file is shared by relayd, httpd, iked, and
snmpd. No functional changes.
|
|
MIB just as sysctl(8) excludes them from the 'hw.sensors' tree.
OK mikeb@, stehn@
|
|
fetchifs() update the existing node. Thus we don't lose the ARP entries.
And while here, also handle RTM_DESYNC messages.
ok mikeb@
|
|
imsg_compose_event(). This was done by pyr@'s in relayd/control.c
-r1.32 (2009/06/05, ok eric@) but somehow didn't slip into other
daemons that imported control.c.
|
|
control connections. Helps to debug problems.
|
|
daemon by sending corrupted imsgs to snmpd. This is especially
important for the optional world-writeable restricted socket that is
used for AgentX. In particular, don't fatal() in the daemon when imsg
size checks on control messages fail, do stricter validation of
expected messages (even assert zero-length imsgs), don't continue and
close the control socket on suspicious input, print a debug log
message on error.
OK gilles@ "the rationale behind it is quite clear"
|