summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2020-04-30Reword verbose log messages to clarify what's happeningjob
OK deraadt@
2020-04-30Place elapsed, user, and system time for processing in the comment headers.Theo de Raadt
ok job benno claudio
2020-04-30vmd(8): correctly terminate vm processes after sending vmpd
Instead of a round about way of sending a message to vmm that 'send is successful' and terminating by vm_remove from vmm, we can send the imsg and exit in the vm process. The sigchld handler in vmm will vm_remove it from its structures. This is how a normal vm is terminated as well. Previously, vm_remove was called in vmm_dispatch_vm (ie. the event handler to receive messages from vm process) when hanlding the IMSG_VMDOP_SEND_VM_RESPONSE (ie. the vm process has written the vm state to the fd passed on by vmctl send). This is not how vm_remove was intented to be used as it does a free(vm). The vm struct holds the buffers for imsg and so after handling this IMSG_VMDOP_SEND_VM_RESPONSE message, vmm_dispatch_vm loops again to do imsg_get(ibuf, &imsg) to read the next message (and we had just freed this *ibuf when we freed the vm struct) causing it to segfault. reported by kn@ ok kn@
2020-04-29json should have headers in same orderTheo de Raadt
2020-04-28In virtual alias context, do not try to match catchall entries forEric Faurot
usernames, but only for email addresses. fixes an issue where usernames always expand to the @ wildcard if defined in the virtual alias file. discussed with Gilles Chehade ok millert@
2020-04-28re-organize statistics printing code, to make it less verbose andTheo de Raadt
more readable.
2020-04-28a blank line in the header is prettierTheo de Raadt
2020-04-28Print statistics as comments at the top of the files which can takeTheo de Raadt
comments. ok claudio job
2020-04-28use (long long) and %llx to satisfy both 32-bit and 64-bit systems.Theo de Raadt
2020-04-25Document 'ikectl show sa'.tobhe
2020-04-25update filter documentation after protocol changeEric Faurot
from Gilles Chehade
2020-04-25point out that the "junk" filter decision adds the X-Spam headerEric Faurot
from Ryan Kavanagh
2020-04-24Simplify the grammar by letting the lexer handle builtin keywords.Martin Pieuchot
Also clarify various constructs by using commonly understood names like 'expr' and 'vargs'.
2020-04-24Print given identifier in the error message when no matching probe exist.Martin Pieuchot
2020-04-24strip trailing CRs at smtp level rather than io levelEric Faurot
ok millert@
2020-04-23 ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;Jason McIntyre
2020-04-23replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;Jason McIntyre
2020-04-23Implement builtin 'cpu' keyword.Martin Pieuchot
This is useful to know which CPU recorded a given event. While here document 'retval' and comment out 'ustack' until we have a way to capture userland stacks.
2020-04-23Try to document 'no local-address'Claudio Jeker
2020-04-23Store local-address by address family. This allows to configure bothClaudio Jeker
an IPv4 and IPv6 local-address on a group and the neighbors bind to the right local-address. Also implement 'no local-address' to reset a previously set local address back to zero. This should help with IBGP and multihop session config and hopefully reduce repetition in bgpd configs. OK sthen@ benno@
2020-04-23Correctly parse "0/0" as the default route when specifyingKenneth R Westerback
the classless-[ms-]static-routes options in dhcpd.conf. Brings dhcpd.conf CIDR parsing in line with dhclient.conf, dhcp-options(5) and the command lines of various utilities. Inconsistency noted and fix tested by Freda Bundchen. Thanks!
2020-04-23Extend map to support keys composed of multiple arguments.Martin Pieuchot
Keys are still strings representing the output value. The following example is now possible to count the number of "on CPU" events ordered by thread ID and executable name: # btrace -e 'tracepoint:sched:on__cpu { @[tid, comm] = count() }' ^C @[138836, idle0]: 830941 @[161307, sshd]: 716476 @[482901, softnet]: 582008 @[104443, systqmp]: 405749 @[269230, update]: 396133 @[326533, softclock]: 316926 @[61040, sshd]: 177201 @[453567, reaper]: 119676 @[446052, ksh]: 85675 @[26270, syslogd]: 66625 @[504699, sshd]: 52958 @[446052, sshd]: 32207 @[44046, tset]: 13333 @[162960, zerothread]: 101 @[313046, ntpd]: 1
2020-04-23Always initialize cachedir and outputdir.Sebastian Benoit
ok job@
2020-04-23Make debug output less verbose.Martin Pieuchot
2020-04-22Check for the dispatcher name in the envelope validation function.Eric Faurot
Fixes a possible crash and caching issue when manually moving an envelope to the queue with smtpctl discover. ok millert@
2020-04-21tweak previous;Jason McIntyre
2020-04-21vmd: improve concurrency control in pausepd
Previous implementation hit a deadlock sometimes as the pthread_cond_broadcast for the pause mutex could happen before pthread_cond_wait. This implementation uses a barrier which is hit when all vpcus are paused. ok mpi@
2020-04-20Document the suggested interval in man pagejob
2020-04-20Strip the 'in bgpd' in the title of the rpki-client man page.Claudio Jeker
rpki-client is not only for bgpd (especially in the portable version). From Robert Scheck. OK job@ benno@
2020-04-18rename the "options" field to "flags" (as suggested by millert): an optionalJason McIntyre
options field was difficult to describe concisely; - tweak wording accordingly - sort flags - condense STANDARDS to avoid text repitition, as suggested by deraadt - document flags may be combined, now deraadt fixed the parsing ok millert deraadt
2020-04-18Rewrite the flag-parsing code to be getopt-like. Tight formations likeTheo de Raadt
-ns are now possible, as well as (useless) repetition like -nnn. ok millert
2020-04-18use correct path for the default cache dir in rpki-client(8). ok claudio@Stuart Henderson
2020-04-18improve whitespaces in usageTheo de Raadt
2020-04-17switch email and result fields in mail-from/rcpt-to event reportsEric Faurot
and bump protocol version. discussed with jung@, martijn@ and Gilles. ok jung@
2020-04-17Document using /etc/ethers to look up ethernet addresses. ok krw@,Darren Tucker
wordsmithing jmc@
2020-04-17Log skipped jobs in job_add() not job_runqueue().Todd C. Miller
We want to log when the job is added but will not be run, not every time the run queue is processed.
2020-04-16Support looking up ethernet addresses in /etc/ethers at dhcpd startup time.Darren Tucker
If the lookup fails it falls back to parsing the ethernet address normally. ok krw@
2020-04-16Reflow text so that the -[nsq] options are described as an optional [options]Theo de Raadt
field before command, rather than muddling up the command description to explain them messily as some sort of exception ok millert
2020-04-16Add a mechanism to prevent cron jobs from running concurrently.Todd C. Miller
This adds a new "-s" flag to the command field which indicates that only a single instance of the job should run concurrenty. OK beck@ job@ deraadt@
2020-04-16remove the libcrypto cleanup before exit. Most of the functions areClaudio Jeker
officially deprecated and even if not exit(3) will take care of freeing all that memory anyway. Non of the functions do any cleanup beyond simple memory deallocation. OK benno@ deraadt@
2020-04-16It is unclear why data is memcpy-ed into a char buf[2] that is used asClaudio Jeker
argument to ntohs(). Just memcpy to a uint16_t value and ntohs this value. Fixes possible alignment issues as reported by newer gcc compilers. OK beck@
2020-04-16Revert last commit, this file slipped in.Claudio Jeker
2020-04-16Replace deprecated ERR_remove_state(0) with ERR_remove_thread_state(NULL);Claudio Jeker
OK tb@
2020-04-16Make the control socket name depend on the routing domain we are in.Florian Obser
That way, when slaacd gets started in a different rdomain with route exec things just work, no need to provide an alternative control socket. Pointed out by claudio Original diff by benno, but I like my bikeshed purple. OK benno, claudio
2020-04-15add support for printing RfC 2332 NBMA Next Hop Resolution Protocol (NHRP)remi
ok dlg@
2020-04-15Make map functions accept a "struct map *" instead of a "struct bt_var *".Martin Pieuchot
This is a step towards reducing the type casting crazyness.
2020-04-15Document filters: one type of predicates checked in kernel.Martin Pieuchot
By default a PID filter is set by dt(4) to not record events for the tracing program. The other type of predicates, which are checked in userland, is coming soon!
2020-04-15Crank key size to 256 to avoid conflicts when storing stack traces in maps.Martin Pieuchot
2020-04-15Stop including <machine/param.h> and <machine/vmparam.h>.Martin Pieuchot
There's no need to redefine the INKERNEL() macro in userland because stacktrace_save_at() only saves kernel stack traces. If we decide to use the same interface to unwind & save userland stack traces we can simply indicate that in the "struct stacktrace". Discussed with deraadt@ and kettenis@
2020-04-15Use the new random interval support in cron instead of a random sleep.Todd C. Miller
The random intervals used can be adjusted as needed. OK deraadt@