summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-11-20 17:08:45 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-11-20 17:08:45 +0000
commit98726003615a510480bd7b961a5ca35442a937b9 (patch)
tree9d1eee21f4fbc6579c4b9877445a80ef73ec69c3 /usr.sbin/relayd
parente6c7ec852fff7782025440ba3dc423ef88e77468 (diff)
allow to use the "include" directive in tables, services, relays, and
protocols. ok pyr@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index 4be6e44b47d..ab4c572e476 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.86 2007/11/20 15:54:55 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.87 2007/11/20 17:08:44 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -429,6 +429,7 @@ serviceoptsl : TABLE STRING dstport {
}
free($2);
}
+ | include
;
table : TABLE STRING {
@@ -603,6 +604,7 @@ tableoptsl : host {
}
table->conf.skip_cnt = ($2 / conf->interval.tv_sec) - 1;
}
+ | include
;
proto : PROTO STRING {
@@ -748,6 +750,7 @@ protoptsl : SSL sslflags
bzero(&node, sizeof(node));
}
+ | include
;
direction : /* empty */ { $$ = RELAY_DIR_REQUEST; }
@@ -1117,6 +1120,7 @@ relayoptsl : LISTEN ON STRING port optssl {
}
}
| DISABLE { rlay->conf.flags |= F_DISABLE; }
+ | include
;
dstmode : /* empty */ { $$ = RELAY_DSTMODE_DEFAULT; }