summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-11-23 09:39:43 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-11-23 09:39:43 +0000
commit8a55c5d3ca663058a2ddc8dc5b0ac47e65d3b5b6 (patch)
treef95e92f40af0ac6bdddff0df6be66cc24d3c8f83 /usr.sbin/relayd/relayd.h
parent53d6b9213667eaffb95e49df42f51cc6006463eb (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/relayd/relayd.h')
-rw-r--r--usr.sbin/relayd/relayd.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
index 4477687c19e..faba45d4399 100644
--- a/usr.sbin/relayd/relayd.h
+++ b/usr.sbin/relayd/relayd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.h,v 1.83 2007/11/22 16:38:25 reyk Exp $ */
+/* $OpenBSD: relayd.h,v 1.84 2007/11/23 09:39:42 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -241,7 +241,6 @@ struct ctl_relay_event {
char *args;
char *version;
- int marked;
int line;
size_t toread;
int chunked;
@@ -415,6 +414,7 @@ struct session {
struct timeval tv_last;
int done;
int retry;
+ u_int16_t mark;
struct evbuffer *log;
void *relay;
struct ctl_natlook *cnl;
@@ -431,7 +431,8 @@ enum nodeaction {
NODE_ACTION_EXPECT = 4,
NODE_ACTION_FILTER = 5,
NODE_ACTION_HASH = 6,
- NODE_ACTION_LOG = 7
+ NODE_ACTION_LOG = 7,
+ NODE_ACTION_MARK = 8
};
enum nodetype {
@@ -464,6 +465,7 @@ struct protonode {
char *value;
u_int8_t flags;
enum nodetype type;
+ u_int16_t mark;
SIMPLEQ_HEAD(, protonode) head;
SIMPLEQ_ENTRY(protonode) entry;