summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/parse.y
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2017-11-29 15:24:51 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2017-11-29 15:24:51 +0000
commit537d453366dab6dfebb76accd3c2801fd411bdfa (patch)
treeeb3eb39dad1d24b3a525451cc89d7eba4a107c4d /usr.sbin/relayd/parse.y
parentcfa3a3f13588075aac01acf20e063fd327704ff9 (diff)
add options to specify the control socket in relayd and relayctl.
From Kapetanakis Giannis, thanks. ok claudio@
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r--usr.sbin/relayd/parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index 51e5eb6ae49..0f05f4ee01b 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.220 2017/11/27 23:21:16 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.221 2017/11/29 15:24:50 benno Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -418,6 +418,9 @@ main : INTERVAL NUMBER {
AGENTX_SOCKET,
sizeof(conf->sc_conf.snmp_path));
}
+ | SOCKET STRING {
+ conf->sc_ps->ps_csock.cs_name = $2;
+ }
;
trap : /* nothing */ { $$ = 0; }