summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/parse.y
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-01-03 09:42:31 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-01-03 09:42:31 +0000
commit875e2ef53f679775f21613b6e76ffea5074b0e06 (patch)
treeb3749b24b4cb295c6c69557d56ec72f92511ad55 /usr.sbin/hoststated/parse.y
parent2f5ecd5f468a31e4f5f0399a3c82f0b78c47c3cd (diff)
allow the sticky-address option for round-robin pools.
From Pierre-Yves Ritschard (pyr at spootnik dot org)
Diffstat (limited to 'usr.sbin/hoststated/parse.y')
-rw-r--r--usr.sbin/hoststated/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y
index 33a7ed336ed..bf414099696 100644
--- a/usr.sbin/hoststated/parse.y
+++ b/usr.sbin/hoststated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.6 2006/12/25 19:05:41 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.7 2007/01/03 09:42:30 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -100,7 +100,7 @@ typedef struct {
%token SERVICE TABLE BACKUP HOST REAL
%token CHECK HTTP HTTPS TCP ICMP EXTERNAL
%token TIMEOUT CODE DIGEST PORT TAG INTERFACE
-%token VIRTUAL IP INTERVAL DISABLE
+%token VIRTUAL IP INTERVAL DISABLE STICKYADDR
%token ERROR
%token <v.string> STRING
%type <v.string> interface
@@ -264,6 +264,7 @@ serviceoptsl : TABLE STRING {
free($6);
}
| DISABLE { service->flags |= F_DISABLE; }
+ | STICKYADDR { service->flags |= F_STICKY; }
| TAG STRING {
if (strlcpy(service->tag, $2, sizeof(service->tag)) >=
sizeof(service->tag)) {
@@ -480,6 +481,7 @@ lookup(char *s)
{ "port", PORT },
{ "real", REAL },
{ "service", SERVICE },
+ { "sticky-address", STICKYADDR },
{ "table", TABLE },
{ "tag", TAG },
{ "tcp", TCP },