Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
1749dbb96ef9139eda4fd0239f80acaf5aac8078- From:
- jsg <jsg@openbsd.org>
- Date:
remove prototypes with no matching function
- Commit:
57122c1b8f56f6a0d930dbc946467c1834ff6c38- From:
- jmc <jmc@openbsd.org>
- Date:
spelling fixes; from paul tagliamonte
any parts of his diff not taken are noted on tech
- Commit:
37ed6014e6a950279c73fe895cfade2a997a6086- From:
- benno <benno@openbsd.org>
- Date:
replace the current log options
log updates|all
with
log state changes
log host checks
log connection [errors]
The first two control the logging of host check results: either changes in host state only or
all checks.
The third option controls logging of connections in relay mode:
Either log all connections, or only errors.
Additionaly, errors will be logged with LOG_WARN and good connections
will be logged with LOG_INFO, so they can be differentiated in syslog.
ok and feedback from claudio@
- Commit:
62110500c2d1ba25067057b5a2e42451ec6d8234- From:
- claudio <claudio@openbsd.org>
- Date:
Remove RELAY_MAX_SESSIONS from relayd, there is no reason to limit relays
to 1024 session per process (esp. with keep-alive). Now the fd limit is
the new maximum and relayd will make sure to not accept too many sessions.
The tcp backlog config maximum is now 512, adjust manpage accordingly.
OK benno@ deraadt@
- Commit:
a2811280086f512036ac4a93b73ac2fdab2cb7b8- From:
- benno <benno@openbsd.org>
- Date:
make relayd not crash in relay_udp_server() when using a dns relay.
needs revisiting. From Rivo Nurges, thanks.
ok florian@
- Commit:
09e53feeaa2a7c28a81c8bac20bab18c68d83883- From:
- benno <benno@openbsd.org>
- Date:
use __func__ in log messages. fix some whitespace while here.
From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks!
ok florian, claudio
- Commit:
afbe8d84fc7bbb7c2893503880772d964533ea1a- From:
- reyk <reyk@openbsd.org>
- Date:
Stop accessing verbose and debug variables from log.c directly.
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)
- Commit:
998576523939683cae8716fa4ab984c17d066b4e- From:
- jca <jca@openbsd.org>
- Date:
Fix tcp ip ttl / minttl on IPv6 sockets.
ok florian@
- Commit:
b14526d53399ce81a9a5534de38a094b15a882c5- From:
- reyk <reyk@openbsd.org>
- Date:
proc_id has been replaced by ps->ps_instance.
OK claudio@
- Commit:
ba24b6a0553a214647057d94ea3baf2b8fe2ef6c- From:
- mmcc <mmcc@openbsd.org>
- Date:
Remove NULL-checks before free(). No functional change.
- Commit:
141b9058ce43c28db842829304e8909a29d231bb- From:
- reyk <reyk@openbsd.org>
- Date:
In most cases we don't need all arguments of proc_compose*_imsg(),
so add a shortcut proc_compose*() that skips all of them. Only use the
full argument list if needed. The functions with full argument lists can
eventually be replaced with a nicer transaction-based approach later.
OK benno@
- Commit:
24dcf092825c2f258ae81a032dfe529978e6dd09- From:
- reyk <reyk@openbsd.org>
- Date:
Use SOCK_NONBLOCK in relayd as well.
OK benno@
- Commit:
d93c36af2b8111f07ff7645770d4714a2e5aef96- From:
- reyk <reyk@openbsd.org>
- Date:
Clean up the relayd headers with help of include-what-you-use and some
manual review. Based on common practice, relayd.h now includes the
necessary headers for itself.
OK benno@
- Commit:
2f6ec04dcc8d2ec0050455263b94308f36252825- From:
- deraadt <deraadt@openbsd.org>
- Date:
Adapt to <limits.h> universe.
ok millert
- Commit:
270ed42a50acc8797df2df92305e394b39ded472- From:
- guenther <guenther@openbsd.org>
- Date:
Stop pulling in <arpa/inet.h> or <arpa/nameser.h> when unnecessary.
*Do* pull it in when in_{port,addr}_h is needed and <netinet/in.h> isn't.
ok reyk@
- Commit:
3e04b122e626d84aa4d3bb8d9338d69bbd413813- From:
- reyk <reyk@openbsd.org>
- Date:
Update relayd to use siphash instead of sys/hash. The source-hash,
loadbalance and hash modes use a random key by default that can be
forced to be a static key with a new configuration argument.
With input from Max Fillinger.
ok tedu@
- Commit:
096ff28be0ad3eece8fa3b49f2ffed59e89f73fa- From:
- reyk <reyk@openbsd.org>
- Date:
Change the keyword "ssl" to "tls" to reflect reality since we
effectively disabled support for the SSL protocols. SSL remains a
common term describing SSL/TLS, there is some controvery about this
change, and the name really doesn't matter, but I feel confident about
it now.
(btw., sthen@ pointed out some historical context:
http://tim.dierks.org/2014/05/security-standards-and-name-changes-in.html)
OK benno@, with input from tedu@
- Commit:
28bd28ce02f4f0d97454036901f09cbedc246eeb- From:
- blambert <blambert@openbsd.org>
- Date:
Support exporting relayd statistics via AgentX/snmpd
This should be equivalent to the statistics available
via the various relaydctl show commands
okay benno@ reyk@
- Commit:
5a30f51bc00ea660a335280def096dbd5ff3e0bf- From:
- lteo <lteo@openbsd.org>
- Date:
Remove unnecessary netinet/in_systm.h include.
ok millert@
- Commit:
58721a38f436a8c59fcb1da19d80dd36537557f5- From:
- reyk <reyk@openbsd.org>
- Date:
No events were added for DNS UDP so it stopped working after the first
request. Additionally, the DNS code tried to use an invalid timeout.
Fix from mm@freebsd.org
Reported by Johan Schuijt
- Commit:
c72024a8dec82c52599c905b861f89e4a41c5035- From:
- benno <benno@openbsd.org>
- Date:
improve log output for relays. adjust regress tests
ok reyk
- Commit:
69fde657f218939a972c0abb9eddfc5625c968b8- From:
- reyk <reyk@openbsd.org>
- Date:
Replace the protocol directives for HTTP with a new generic filtering
language. The grammar is inspired by pf and allows to write versatile
last-matching filter rules in protocol sections starting with the
"pass", "block" or "match" keywords. This work was started almost two
years ago and replaces large parts of relayd(8)'s HTTP and filtering
code. The initial version reimplements and extends HTTP filtering,
but will be improved to support generic TCP and other protocols later.
With some testing, feedback, and help from benno@ and andre@.
OK benno@
- Commit:
dc2f787fcea89b92a6b72e8b198262e0b0b3fa50- From:
- reyk <reyk@openbsd.org>
- Date:
sync copyright to reality according to my last changes
- Commit:
b7f7a948d01b98e0853f7d0c2efb6591025f657f- From:
- reyk <reyk@openbsd.org>
- Date:
This diff changes relayd to use the monotonic clock instead of
gettimeofday(). It was also bugging me for some time to have all
these checks of gettimeofday()'s return value: it should not fail. So
this diff introduces a void getmonotime(struct timeval *tv) that calls
clock_gettime(CLOCK_MONOTONIC, &ts) and converts the output to a
struct timeval that can be used with the existing code and the
timeval-specific timer functions (timerclear, timersub, ...). It does
not return a status but calls fatal() on error-that-should-not-happen.
ok sthen@ chris@
