History log of /openbsd-current/usr.sbin/relayctl/parser.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.28 11-May-2018 reyk

Make help output of relayctl redirect|host|table friendlier.

From Kapetanakis Giannis

OK benno@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.27 22-Jan-2015 reyk

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@


# 1.26 22-Jan-2015 reyk

spacing


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.25 19-May-2011 reyk

Fix reload support in relayd(8) by reimplementing large parts of the
daemon infrastructure. The previous design made it fairly hard to
reload the complex data structures, especially relays and protocols.
One of the reasons was that the privsep'd relayd processes had two
ways of getting their configuration: 1) from memory after forking from
the parent process and 2) and (partially) via imsgs after reload. The
new implementation first forks the privsep'd children before the
parents loads the configuration and sends it via imsgs to them; so it
is only like 2) before. It is based on an approach that I first
implemented for iked(8) and I also fixed many bugs in the code.

Thanks to many testers including dlg@ sthen@ phessler@
ok pyr@ dlg@ sthen@


Revision tags: OPENBSD_4_9_BASE
# 1.24 04-Sep-2010 tedu

move some things around to make intentions clear. not really a functional
change. ok claudio


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.23 11-Jan-2010 jsg

add "log brief" and "log verbose" to change logging verbosity
like several other things in the tree.

ok reyk@ looks fine claudio@


# 1.22 13-Nov-2009 jsg

Don't use [] in function arguments when dealing with arrays
we don't know the size of, otherwise gcc >= 4 will error.

ok markus@ deraadt@


# 1.21 17-Aug-2009 reyk

also report routers and their host states in relayctl

ok pyr@, jmc@ for man bits


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.20 20-Dec-2007 reyk

implement statistics for redirections, like the existing statistics
for relays. they can be viewed with the new "relayctl show redirects"
command.

(uses the previous change to pf_table.c to get the statistics)

looks good pyr@


# 1.19 08-Dec-2007 pyr

Rename everything which reffered to services refer to rdr for internals
(for instance: rename struct service to struct rdr), refer to redirects
otherwise (hoststatectl output).
ok reyk@


# 1.18 08-Dec-2007 reyk

service -> redirect

ok pyr@


# 1.17 07-Dec-2007 reyk

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


# 1.16 24-Nov-2007 reyk

style(9) for includes


# 1.15 20-Nov-2007 pyr

NULL != NONE (but both equal 0)


# 1.14 19-Oct-2007 pyr

Add the ability to schedule an immediate check through hoststatectl.
Especially useful when interval is rather long.
I was supposed to commit this before 4.2.


# 1.13 28-Sep-2007 pyr

Correct my mail address.


# 1.12 07-Sep-2007 reyk

add a "show sessions" command to dump the complete list of running relay
sessions.


# 1.11 29-May-2007 pyr

teach hoststatectl's parser about reload. the code to handle it is
already there. of course this is a dummy for now.


# 1.10 22-Feb-2007 reyk

Add layer 7 functionality to hoststated used for layer 7
loadbalancing, SSL acceleration, general-purpose TCP relaying, and
transparent proxying.

see hoststated.conf(5) and my upcoming article on undeadly.org for
details.

ok to commit deraadt@ pyr@


# 1.9 06-Feb-2007 pyr

fix typo.
ok reyk@


# 1.8 01-Feb-2007 pyr

add a monitor mode to hoststatectl to continuously report changes in
hoststated.
ok reyk@, "looks nice and clean" niallo@


# 1.7 29-Jan-2007 pyr

Add SSL support to hoststated.
with help and OK reyk@
with help and advice by claudio@ and Srebrenko Sehic


# 1.6 29-Jan-2007 claudio

Correctly check for missing arguments, as in ospfctl/bgpctl. OK pyr@


# 1.5 09-Jan-2007 deraadt

adapt to rename


# 1.4 16-Dec-2006 reyk

- allow to use host/service/table names instead of Ids in hostatectl.
- minor change of the "hostatectl show" command output
- increase the max service and tag names (max pf tag name size is 64 now!)

thanks to pyr who found a bug in my initial diff


# 1.3 16-Dec-2006 deraadt

unused variable


# 1.2 16-Dec-2006 reyk

knf, spacing


# 1.1 16-Dec-2006 reyk

Import hostated, the host status daemon. This daemon will monitor
remote hosts and dynamically alter pf(4) tables and redirection rules
for active server load balancing. The daemon has been written by
Pierre-Yves Ritschard (pyr at spootnik.org) and was formerly known as
"slbd".

The daemon is fully functional but it still needs some work and
cleanup so we don't link it to the build yet. Some TODOs are a
partial rewrite of the check_* routines (use libevent whenever we
can), improvement of the manpages, and general knf and cleanup.

ok deraadt@ claudio@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.27 22-Jan-2015 reyk

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@


# 1.26 22-Jan-2015 reyk

spacing


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.25 19-May-2011 reyk

Fix reload support in relayd(8) by reimplementing large parts of the
daemon infrastructure. The previous design made it fairly hard to
reload the complex data structures, especially relays and protocols.
One of the reasons was that the privsep'd relayd processes had two
ways of getting their configuration: 1) from memory after forking from
the parent process and 2) and (partially) via imsgs after reload. The
new implementation first forks the privsep'd children before the
parents loads the configuration and sends it via imsgs to them; so it
is only like 2) before. It is based on an approach that I first
implemented for iked(8) and I also fixed many bugs in the code.

Thanks to many testers including dlg@ sthen@ phessler@
ok pyr@ dlg@ sthen@


Revision tags: OPENBSD_4_9_BASE
# 1.24 04-Sep-2010 tedu

move some things around to make intentions clear. not really a functional
change. ok claudio


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.23 11-Jan-2010 jsg

add "log brief" and "log verbose" to change logging verbosity
like several other things in the tree.

ok reyk@ looks fine claudio@


# 1.22 13-Nov-2009 jsg

Don't use [] in function arguments when dealing with arrays
we don't know the size of, otherwise gcc >= 4 will error.

ok markus@ deraadt@


# 1.21 17-Aug-2009 reyk

also report routers and their host states in relayctl

ok pyr@, jmc@ for man bits


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.20 20-Dec-2007 reyk

implement statistics for redirections, like the existing statistics
for relays. they can be viewed with the new "relayctl show redirects"
command.

(uses the previous change to pf_table.c to get the statistics)

looks good pyr@


# 1.19 08-Dec-2007 pyr

Rename everything which reffered to services refer to rdr for internals
(for instance: rename struct service to struct rdr), refer to redirects
otherwise (hoststatectl output).
ok reyk@


# 1.18 08-Dec-2007 reyk

service -> redirect

ok pyr@


# 1.17 07-Dec-2007 reyk

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


# 1.16 24-Nov-2007 reyk

style(9) for includes


# 1.15 20-Nov-2007 pyr

NULL != NONE (but both equal 0)


# 1.14 19-Oct-2007 pyr

Add the ability to schedule an immediate check through hoststatectl.
Especially useful when interval is rather long.
I was supposed to commit this before 4.2.


# 1.13 28-Sep-2007 pyr

Correct my mail address.


# 1.12 07-Sep-2007 reyk

add a "show sessions" command to dump the complete list of running relay
sessions.


# 1.11 29-May-2007 pyr

teach hoststatectl's parser about reload. the code to handle it is
already there. of course this is a dummy for now.


# 1.10 22-Feb-2007 reyk

Add layer 7 functionality to hoststated used for layer 7
loadbalancing, SSL acceleration, general-purpose TCP relaying, and
transparent proxying.

see hoststated.conf(5) and my upcoming article on undeadly.org for
details.

ok to commit deraadt@ pyr@


# 1.9 06-Feb-2007 pyr

fix typo.
ok reyk@


# 1.8 01-Feb-2007 pyr

add a monitor mode to hoststatectl to continuously report changes in
hoststated.
ok reyk@, "looks nice and clean" niallo@


# 1.7 29-Jan-2007 pyr

Add SSL support to hoststated.
with help and OK reyk@
with help and advice by claudio@ and Srebrenko Sehic


# 1.6 29-Jan-2007 claudio

Correctly check for missing arguments, as in ospfctl/bgpctl. OK pyr@


# 1.5 09-Jan-2007 deraadt

adapt to rename


# 1.4 16-Dec-2006 reyk

- allow to use host/service/table names instead of Ids in hostatectl.
- minor change of the "hostatectl show" command output
- increase the max service and tag names (max pf tag name size is 64 now!)

thanks to pyr who found a bug in my initial diff


# 1.3 16-Dec-2006 deraadt

unused variable


# 1.2 16-Dec-2006 reyk

knf, spacing


# 1.1 16-Dec-2006 reyk

Import hostated, the host status daemon. This daemon will monitor
remote hosts and dynamically alter pf(4) tables and redirection rules
for active server load balancing. The daemon has been written by
Pierre-Yves Ritschard (pyr at spootnik.org) and was formerly known as
"slbd".

The daemon is fully functional but it still needs some work and
cleanup so we don't link it to the build yet. Some TODOs are a
partial rewrite of the check_* routines (use libevent whenever we
can), improvement of the manpages, and general knf and cleanup.

ok deraadt@ claudio@