summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-11-22 10:09:54 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-11-22 10:09:54 +0000
commit528448c354fbc39d0ec76390e0abb03bffe3030c (patch)
treecbb3c2d948302dc744689adcd4383ae90e7ba120 /usr.sbin/relayd/relayd.h
parente7be2a8e9b2bedf33849efda13e890b933152f0b (diff)
add (new) "url" protocol action, this can be used to match/filter URL
suffix/prefix expressions like "example.com/index.html?args". a digest mode allows to match against anonymized SHA1/MD5 digests of suffix/prefix expressions.
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r--usr.sbin/relayd/relayd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
index f3642a3d645..b016a3a5283 100644
--- a/usr.sbin/relayd/relayd.h
+++ b/usr.sbin/relayd/relayd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.h,v 1.80 2007/11/21 20:28:38 reyk Exp $ */
+/* $OpenBSD: relayd.h,v 1.81 2007/11/22 10:09:53 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -437,7 +437,8 @@ enum nodetype {
NODE_TYPE_HEADER = 0,
NODE_TYPE_QUERY = 1,
NODE_TYPE_COOKIE = 2,
- NODE_TYPE_PATH = 3
+ NODE_TYPE_PATH = 3,
+ NODE_TYPE_URL = 4
};
#define PNFLAG_MACRO 0x01
@@ -445,6 +446,9 @@ enum nodetype {
#define PNFLAG_LOG 0x04
#define PNFLAG_LOOKUP_QUERY 0x08
#define PNFLAG_LOOKUP_COOKIE 0x10
+#define PNFLAG_LOOKUP_URL 0xe0
+#define PNFLAG_LOOKUP_URL_DIGEST 0xc0
+#define PNFLAG_LOOKUP_DIGEST(x) (0x20 << x)
enum noderesult {
PN_DROP = 0,