Up to [local] / src / usr.sbin / relayd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 22 01:24:59 2021 UTC (4 years, 7 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE,
OPENBSD_7_7,
OPENBSD_7_6_BASE,
OPENBSD_7_6,
OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
HEAD
Changes since 1.21: +7 -2 lines
Diff to previous 1.21 (colored)
Use the F_CHECK_SENT and F_CHECK_DONE flags to determine whether a previous attempt at running a check script has finished yet, so we can avoid building up a backlog of check requests. ok dlg@ tb@ giovanni@
Revision 1.21 / (download) - annotate - [select for diffs], Sun May 28 10:39:15 2017 UTC (8 years, 3 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.20: +6 -6 lines
Diff to previous 1.20 (colored)
use __func__ in log messages. fix some whitespace while here. From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks! ok florian, claudio
Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 2 14:45:51 2016 UTC (9 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)
Split "struct relayd" into two structs: "struct relayd" and "struct relayd_config". This way we can send all the relevant global configuration to the children, not just the flags and the opts. With input from and OK claudio@ benno@
Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 2 13:41:27 2015 UTC (9 years, 9 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (colored)
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@
Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 22 17:42:09 2015 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.17: +2 -10 lines
Diff to previous 1.17 (colored)
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@
Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 16 15:06:40 2015 UTC (10 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)
Adapt to <limits.h> universe. ok millert
Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 25 11:05:15 2014 UTC (11 years, 3 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)
sync copyright to reality according to my last changes
Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 20 16:13:36 2014 UTC (11 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored)
Check strlcpy of the script path names for overflow and use the size of the destination buffer instead of the source buffer as the argument.
Revision 1.14 / (download) - annotate - [select for diffs], Thu May 26 14:48:20 2011 UTC (14 years, 4 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.13: +6 -1 lines
Diff to previous 1.13 (colored)
Add additional check to prevent running scripts when not configured.
Revision 1.13 / (download) - annotate - [select for diffs], Thu May 26 14:38:03 2011 UTC (14 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.12: +14 -10 lines
Diff to previous 1.12 (colored)
fix "check script" by sending all required information to the parent.
Revision 1.12 / (download) - annotate - [select for diffs], Mon May 9 12:08:47 2011 UTC (14 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)
Reorganize the relayd code to use the proc.c privsep API/commodity functions that are based on work for iked and smtpd. This simplifies the setup of privsep processes and moves some redundant and repeated code to a single place - which is always good from a quality and security point of view. The relayd version of proc.c is different to the current version in iked because it uses 1:N communications between processes, eg. a single parent process is talking to many forked relay children while iked only needs 1:1 communications. ok sthen@ pyr@
Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 28 00:09:11 2011 UTC (14 years, 6 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)
If 'check script' doesn't exit(), treat the service as 'down' rather than 'unknown'. Fixes a problem where the script is killed due to expiry of the interval timer. ok pyr@ deraadt@
Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 5 23:39:51 2009 UTC (16 years, 3 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)
4 handed diff with eric: Stop pushing event handling in the imsg framework. Instead, provide a small glue layer on top of both imsg and libevent. This finally clearly separates event handling and imsg construction. Sidetrack bonus: remove the mega-ugly hack of having a dummy imsg_event_add stub in relayctl. This will make bgpd (and thus henning) happy. Next up are smtpd and ospfd. ok eric@
Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 5 00:04:01 2009 UTC (16 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
Make imsg completely async model agnostic by not requiring an imsg_event_add function to be provided (which ended up being a named callback). Instead provide a wrapper in the daemon and call that everywhere. Previsously discussed with the usual suspects, ok eric@ though not too happy about the function name (imsg_compose_event).
Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 17 09:58:40 2009 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.7: +8 -1 lines
Diff to previous 1.7 (colored)
close filedescriptors with closefrom(STDERR_FILENO + 1) before executing the script to prevent access to internal processes. From jacekm@
Revision 1.7 / (download) - annotate - [select for diffs], Fri Dec 5 16:37:55 2008 UTC (16 years, 9 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)
change the way relayd reports check results: instead of logging an arbitrary string in debugging mode, it will store an error code (HCE_*) for each host. the error code can be translated to a string (in log.c) for debugging but it will also be passed to relayctl via the control socket. from a user point of view, this will print a human-readable error message in the "relayctl show hosts" output if a host is down because the check failed. the relayctl(8) manpage includes detailed explanations of the error messages including mitigations for the most-common problems. ok jmc@ (manpages) ok phessler@
Revision 1.6 / (download) - annotate - [select for diffs], Wed Feb 13 11:32:59 2008 UTC (17 years, 7 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)
bump copyright
Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:17:00 2007 UTC (17 years, 9 months ago) by reyk
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)
hoststated gets renamed to relayd. easier to type, and actually says what the daemon does - it is a relayer that pays attention to the status of pools of hosts; not a status checkers that happens to do some relaying
Revision 1.4 / (download) - annotate - [select for diffs], Sat Nov 24 17:07:28 2007 UTC (17 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.3: +2 -4 lines
Diff to previous 1.3 (colored)
sort includes, adjust to style(9)
Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 13 17:50:05 2007 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored)
avoid errno trashing in signal handler
Revision 1.2 / (download) - annotate - [select for diffs], Tue Jun 12 15:16:10 2007 UTC (18 years, 3 months ago) by msf
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)
put the fd passing from bgpd back in to hoststated's version of imsg, needed for layer 7 reload support. ok pyr@
Revision 1.1 / (download) - annotate - [select for diffs], Tue May 29 17:12:04 2007 UTC (18 years, 4 months ago) by reyk
Branch: MAIN
add a new check method which allows to run external scripts/programs for custom evaluations. pyr agrees to put it in now but to do some improvements of the timeout handling later.