diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-11-23 09:39:43 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-11-23 09:39:43 +0000 |
commit | 8a55c5d3ca663058a2ddc8dc5b0ac47e65d3b5b6 (patch) | |
tree | f95e92f40af0ac6bdddff0df6be66cc24d3c8f83 /usr.sbin/relayctl/relayctl.c | |
parent | 53d6b9213667eaffb95e49df42f51cc6006463eb (diff) |
re-implement the "mark" action and document it in the manpage:
it is possible to attach a mark to a session based on matching an
entity (header, url, cookie, ...) and add conditional action for this
mark. it works a bit like the tag/tagged keywords in pf, but i decided
to pick a different name to avoid confusion.
ok pyr@ gilles@
Diffstat (limited to 'usr.sbin/relayctl/relayctl.c')
-rw-r--r-- | usr.sbin/relayctl/relayctl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c index 0c67a694602..f6079156982 100644 --- a/usr.sbin/relayctl/relayctl.c +++ b/usr.sbin/relayctl/relayctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relayctl.c,v 1.25 2007/10/19 12:08:54 pyr Exp $ */ +/* $OpenBSD: relayctl.c,v 1.26 2007/11/23 09:39:42 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -410,7 +410,10 @@ show_session_msg(struct imsg *imsg) fatal("show_session_msg: gettimeofday"); print_time(&tv_now, &con->tv_start, a, sizeof(a)); print_time(&tv_now, &con->tv_last, b, sizeof(b)); - printf("\tage %s, idle %s, relay %u\n", a, b, con->relayid); + printf("\tage %s, idle %s, relay %u", a, b, con->relayid); + if (con->mark) + printf(", mark %u", con->mark); + printf("\n"); break; case IMSG_CTL_END: return (1); |