OpenBSD CVS

CVS log for src/usr.sbin/relayctl/parser.c


[BACK] Up to [local] / src / usr.sbin / relayctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Fri May 11 20:33:54 2018 UTC (6 years ago) by reyk
Branch: MAIN
CVS Tags: 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, 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, HEAD
Changes since 1.27: +1 -4 lines
Diff to previous 1.27 (colored)

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

From Kapetanakis Giannis

OK benno@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jan 22 17:42:09 2015 UTC (9 years, 4 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.26: +1 -13 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Thu Jan 22 15:23:50 2015 UTC (9 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.25: +11 -8 lines
Diff to previous 1.25 (colored)

spacing

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 19 08:56:49 2011 UTC (13 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, 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.24: +20 -2 lines
Diff to previous 1.24 (colored)

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 1.24 / (download) - annotate - [select for diffs], Sat Sep 4 21:31:04 2010 UTC (13 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.23: +20 -16 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 11 06:40:14 2010 UTC (14 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.22: +9 -1 lines
Diff to previous 1.22 (colored)

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

ok reyk@ looks fine claudio@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 13 20:09:54 2009 UTC (14 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

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@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 17 11:36:01 2009 UTC (14 years, 9 months ago) by reyk
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

also report routers and their host states in relayctl

ok pyr@, jmc@ for man bits

Revision 1.20 / (download) - annotate - [select for diffs], Thu Dec 20 20:15:43 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

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@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 8 20:36:36 2007 UTC (16 years, 5 months ago) by pyr
Branch: MAIN
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

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@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 8 20:11:48 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

service -> redirect

ok pyr@

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 7 17:17:01 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (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.16 / (download) - annotate - [select for diffs], Sat Nov 24 17:09:12 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

style(9) for includes

Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 20 15:37:24 2007 UTC (16 years, 6 months ago) by pyr
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

NULL != NONE (but both equal 0)

Revision 1.14 / (download) - annotate - [select for diffs], Fri Oct 19 12:08:55 2007 UTC (16 years, 7 months ago) by pyr
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Sep 28 13:29:56 2007 UTC (16 years, 8 months ago) by pyr
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Correct my mail address.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 7 08:33:31 2007 UTC (16 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 29 22:41:48 2007 UTC (17 years ago) by pyr
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 22 03:32:40 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.9: +10 -2 lines
Diff to previous 1.9 (colored)

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@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 6 16:24:14 2007 UTC (17 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

fix typo.
ok reyk@

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 1 20:03:38 2007 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 29 14:23:31 2007 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 29 10:28:11 2007 UTC (17 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.5: +12 -4 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 9 00:45:32 2007 UTC (17 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

adapt to rename

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 16 18:50:33 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.3: +16 -10 lines
Diff to previous 1.3 (colored)

- 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

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 16 17:53:03 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

unused variable

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 16 12:47:18 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

knf, spacing

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 16 11:45:07 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.