Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-10-25 | Remove unnecessary netinet/in_systm.h include. | Lawrence Teo | |
ok millert@ | |||
2014-10-16 | use reallocarray(). Looked at a few times by doug, I am sure. | Theo de Raadt | |
2014-10-12 | Remove possibility of mutiplicative integer overflow by not multiplying. | Bret Lambert | |
Instead of the widespread-but-overflow-prone while (newlen < wanted) { newlen *= 2; } idiom, just realloc() for the space requested by the caller and check for additive overflow. Also change type of 'newlen' variable from int to size_t to avoid overflows there. Pointed out by deraadt@ ok reyk@ | |||
2014-10-08 | obvious reallocarray() | Theo de Raadt | |
2014-08-18 | Sync proc.c with httpd. httpd needs SIGUSR1 but snmpd will ignore it | Reyk Floeter | |
now instead of terminating the process. ok blambert@ | |||
2014-07-21 | Switch from <sys/endian.h> or <machine/endian.h> to the new, | Philip Guenther | |
being-standardized <endian.h> ok deraadt@ millert@ beck@ | |||
2014-07-12 | Sync msgbuf_write() changes from relayd. | Reyk Floeter | |
Please note that proc.c should be kept identical in relayd, iked and snmpd (currently without the includes). ok benno@ | |||
2014-07-04 | Track whether a process is a zombie or not yet fully built via flags | Philip Guenther | |
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@ | |||
2014-06-23 | The second level of the CTL_NET sysctl is a PF_*, not an AF_* | Philip Guenther | |
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de) | |||
2014-06-03 | Handle the event parameter of libevent callback function as a bit | YASUOKA Masahiko | |
mask. Also remove redundant imsg_event_add calls. Fixes come from usr.sbin/ospfd/control.c ok reyk | |||
2014-05-23 | clean up after the traphandler children, otherwise they will live on | Sebastian Benoit | |
as zombies. ok blambert | |||
2014-05-16 | improve logging messages and style; requested by and ok reyk | Mike Belopuhov | |
2014-05-14 | Sync ktable code with bgpd to fetch, store and perform lookups in | Mike Belopuhov | |
multiple routing tables. Currently it doesn't do anything useful but it's a prerequisite for any future work in this direction. ok sthen, reyk, blambert | |||
2014-05-08 | Bring back restricted sockets, inadvertantly removed in | Bret Lambert | |
previous proc.c update ok reyk@ | |||
2014-05-07 | use calloc. from peter malone | Ted Unangst | |
2014-05-06 | no need to include rand.h now the RAND_seed() calls are gone. | Jonathan Gray | |
ok reyk@ | |||
2014-05-04 | With the recent change by deraadt@ to introduce kern.nosuidcoredump=3, | Reyk Floeter | |
we don't need the horrible debug hack anymore that disabled privdrop and chroot to get core dumps of privsep processes. No functional change for the normal binary, only if it is compiled with the non-default -DDEBUG option. | |||
2014-04-28 | fix memory leak | Bret Lambert | |
ok reyk@ | |||
2014-04-28 | Add support for exporting ARP table via ipNetToMediaTable OID. | Mike Belopuhov | |
With help from blambert@ and sthen@, tested by sthen@, benno@ and myself; ok blambert | |||
2014-04-28 | better proc id name (it handles traps, not alerts) for the | Bret Lambert | |
snmp trap handler | |||
2014-04-25 | sort; ok blambert | Jason McIntyre | |
2014-04-25 | Remove NULL pointer dereference, which jsg insists I not | Bret Lambert | |
call a use-after free, from error path. found by and ok jsg@ | |||
2014-04-25 | Support running user-defined actions on receipt of snmp traps. | Bret Lambert | |
testing sthen@ much man page guidance jmc@ ok reyk@ | |||
2014-04-24 | fix copied text in error string | Bret Lambert | |
ok reyk@ | |||
2014-04-21 | Copy the updated proc.c from relayd to use the same file. Adjust | Reyk Floeter | |
snmpd accordingly. ok sthen@ | |||
2014-04-20 | Just to be pedantic, fail if strlcpy managed to overflow the socket path. | Reyk Floeter | |
2014-04-20 | Partially revert the previous: snmp_agentx_ping() didn't leak the pdu | Reyk Floeter | |
because it is added to a list on the handle and eventually released later with the handle itself. This confuses leak detection tools like clang, so at least add a comment that it is not a leak. ok blambert@ | |||
2014-04-20 | Fix a small leak in the error path. | Reyk Floeter | |
2014-04-18 | round up some enemy sympathizers found calling RAND_seed(). | Ted Unangst | |
ok beck reyk | |||
2014-04-14 | sundry macro chop; | Jason McIntyre | |
2014-04-14 | No need to include ber.h here, probably overlooked while importing. | andre | |
ok blambert@ | |||
2014-04-14 | Make snmpd use the AgentX protcol for accepting trap requests. | Bret Lambert | |
AgentX notifications are the only portion implemented right now; get in the tree to flesh out the remainder. ok reyk@ benno@ | |||
2014-04-14 | Fix the following idiom in the following way: | Bret Lambert | |
arc4random_buf(seed, sizeof(seed)); RAND_seed(seed, sizeof(seed)); + explicit_bzero(seed, sizeof(seed)); ok reyk@ | |||
2014-04-08 | Use VM_UVMEXP instead of VM_METER for memory usages and directly | Martin Pieuchot | |
include <sys/vmmeter.h> where it is needed instead of relying on it being included by <uvm/uvm_extern.h>. miod@ likes it, ok guenther@ | |||
2014-03-16 | lint is dead (long live the lint!), so stop using it as a cpp conditional | Philip Guenther | |
(namespace pollution!) or talking about its opinion on code. ok krw@ | |||
2014-02-14 | remove unused function that distracts from cleaning up the imsg_flush() mess | Florian Obser | |
OK hennig@, benno@ | |||
2014-01-22 | relax the cfg file secrecy check slightly to allow group readability | Henning Brauer | |
default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian | |||
2014-01-18 | Remove -Wbounded: it is now the compiler default. | Martynas Venckus | |
2013-11-26 | remove "clever" shortcut that might bite later, ok gilles benno | Henning Brauer | |
2013-11-25 | use u_char for buffers in yylex, for ctype calls | Sebastian Benoit | |
found by millert@, ok deraadt@ | |||
2013-11-21 | split kernel parts of the if.h into a separate header file if_var.h | Mike Belopuhov | |
which allows us to modify ifnet structure in a relatively safe way; discussed with deraadt, ok mpi | |||
2013-11-13 | handle msgbuf_write() returning EAGAIN | Sebastian Benoit | |
ok reyk | |||
2013-10-30 | another simple %i to %d conversion for obviousness | Theo de Raadt | |
2013-10-19 | Fix receipt of OID varbinds when sending traps | Bret Lambert | |
ok reyk@ | |||
2013-10-17 | Less ambiguous wording concerning control socket configuration options. | Bret Lambert | |
requested by and ok deraadt@ | |||
2013-10-17 | Update snmpd(8) to use the proc.c privsep style from iked and relayd. | Reyk Floeter | |
ok sthen@ deraadt@ | |||
2013-10-16 | some .Pa; | Jason McIntyre | |
2013-10-16 | no more -r; ok blambert | Jason McIntyre | |
2013-10-16 | 1) move the creation of 'restricted' communication sockets | Bret Lambert | |
into snmpd.conf 2) add the ability to specify an alternate 'control' socket location 3) allow for the creation of multiple 'restricted' sockets (but only one control socket, for the time being) Committing slightly ahead of schedule in order to clear the pipeline for a few other upcoming changes. ok reyk@, sthen@ | |||
2013-10-02 | Fix GETBULK mode that got broken with r1.14. | Reyk Floeter | |
ok sthen@ |