Age | Commit message (Collapse) | Author |
|
|
|
fixes a segfault when walking memiftable.
seems sane to phessler, ok dlg@
|
|
|
|
instead of letting hardware rings grow on every interrupt, restrict
it so it can only grow once per softclock tick. we can only punish
the rings on softclock ticks, so it make sense to only grow on
softclock tick boundaries too.
the rings are now punished after >1 lost softclock tick rather than
>2. mclgeti is now more aggressive at detecting livelock.
the rings get punished by an 8th, rather than by half.
we now allow the rings to be punished again even if the system is
already considered in livelock.
without this diff a livelocked system will have its rx ring sizes
scale up and down very rapidly, while holding the rings low for too
long. this affected throughput significantly.
discussed and tested heavily at j2k10. there are still some games
with softnet we can play, but this is a good first step.
"put it in" and ok deraadt@
ok claudio@ krw@ henning@ mcbride@
if we find out that it sucks we can pull it out again later. till then
we'll run with it and see how it goes.
|
|
in the MIB, rather than a different spelling (sensorMIBObjects).
ok martinh@
|
|
Makes my terminal happier when debugging.
|
|
tables and scalar values.
Fixes system/6468 by not calling table get functions with an unexpectedly
short OID.
Also fixes system/6071. Scalar variables without an instance specified now
returns a noSuchInstance error. GetNext requests correctly returns the .0
instance.
This means you can no longer rely on
$ snmpget -v2c -c public localhost SNMPv2-MIB::sysDescr
returning the .0 instance. You need to specify it explicitly:
$ snmpget -v2c -c public localhost SNMPv2-MIB::sysDescr.0
Also return proper SNMPv2 errors per varbind instead of a noSuchName error
status, unless SNMPv1 was specified in the request.
An earlier version of this diff tested by Remi Laurent, thanks.
|
|
|
|
return an error exception value for a varbind result ("noSuchObject[0]
IMPLICIT NULL" in rfc1905).
|
|
problem reported with the obvious fix for bgpd by Sebastian Benoit
<benoit-lists at fb12.de>, also PR 6432
applied to all the others by yours truly. ok theo
isn't it amazing how far this parser (and more) spread?
|
|
|
|
fix reading empty sequences/sets. This minimizes the changes against
ldapd.
"looks good" pyr@, ok reyk@
|
|
ok reyk@ claudio@
|
|
from Dawe
|
|
Minor bump for libutil.
Previous versions of this diff and man page looked at by various people.
"you should just commit" deraadt
|
|
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.
ok henning gilles claudio jacekm deraadt
|
|
more readable, and fixes a spacing bug we had in smtpd.8;
|
|
way the memory is zeroed. This is equivalent to the relayd commit by reyk.
OK reyk, jsg
|
|
ok eric
|
|
ok deraadt@
|
|
is only valid for messages with an rt_msghdr. So move the check back
where it was before.
Problem found by jsg@
|
|
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away. Accessing beyond the end of the sensordev
list still returns ENOENT, so that you can see there are no further devices.
ok kettenis oga
|
|
type). Measured in Hz.
ok deraadt@
|
|
ok kettenis@ xsa@ sobrado@ krw@ deraadt@
|
|
If this happens the imsg may no longer be usable as there may be queued
messages, but this is a) already the case with the code now, and b)
would be the case if recvmsg() fails anyway, so we can document that -1
from imsg_read() invalidates the struct imsgbuf.
discussed with and ok eric
|
|
Remove an unneeded stack storage as well.
OK jsg@
|
|
uses only one rtm parser instead of three different ones. Fixes problems
with priorities that were not handled everywhere correctly.
Found by and OK jsg@
|
|
the AF independent MIBs like RFC4292 in the future. Additionally count number
of routes (also needed by some MIBs) and do not track the state of routes
since the MIB do not require it and it is expensive.
OK jsg@
|
|
well. First big sync, the interface address tree still needs to be made
AF independent but that will be done in a second step.
OK jsg@
|
|
|
|
and .Pp is not needed before or after .Sh;
found by mandoc -Tlint;
"please fix" jmc@
|
|
|
|
in these cases, is useless anyway.
Found by and fixing the build with mandoc;
still fine with both old and new groff.
ok jmc@
|
|
ok dlg
|
|
|
|
|
|
`OK' claudio
|
|
|
|
|
|
function, which is additionally exported for use by others.
It will be needed by smtpd's SSL module when the SMTP client code
is changed to replace libevent's evbuffers with our msgbuf_* API.
ok gilles@ henning@ guenther@ eric@
|
|
|
|
freeing the msgbuf.
While here also remove an unnecessary while loop.
ok eric pyr
|
|
bytes that were filled, not the whole buffer.
ok pyr@ gilles@
|
|
|
|
Make the imsg protocol network-safe.
it might be network safe, but half the imsg based daemons on my firewalls
dont run anymore.
|
|
Currently the receiver fetches an imsg via imsg_get() and if he expects
an fd, he then calls imsg_get_fd() to fetch the next fd queued on the
imsgbuf from which the imsg came.
This changes hides the fd queueing mechanism to the API user. When closing
an imsg with an fd, the message is flagged so that the receiving end knows
it must dequeue the fd in imsg_get() and return it with the imsg structure.
This way there is no (less) possible screw up from imsg_get_fd() not being
called directly after imsg_get() by the user. The retreived imsg is
self-contained.
ok pyr@, "I like that" henning@
|
|
ok pyr@
|
|
add a flag field, use u_int32_t for pid_t and extend type to 32 bits
for padding.
ok pyr@
|
|
|
|
ok eric@
|