summaryrefslogtreecommitdiffstats
path: root/lib/vty.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-05-30 16:31:49 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2015-05-27 20:34:40 +0200
commit4715a53b4d390e72a06c864a6a505971841e3dc9 (patch)
treea7618f437bd55b6695c9f8e4b03a252a0513f6d5 /lib/vty.h
parentee53c8b9f7979c79beada960746ca35046016a45 (diff)
downloadquagga-4715a53b4d390e72a06c864a6a505971841e3dc9.tar.bz2
quagga-4715a53b4d390e72a06c864a6a505971841e3dc9.tar.xz
lib/vty: add separate output fd support to VTYs
to be used with stdin/stdout terminals, this adds support for writing to a different FD than we're reading from. Also fixes error messages from config load being written to stdin. [v2: fixed config write] Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index f31f4b5d..b758df3e 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -34,6 +34,9 @@ struct vty
/* File descripter of this vty. */
int fd;
+ /* output FD, to support stdin/stdout combination */
+ int wfd;
+
/* Is this vty connect to file or not */
enum {VTY_TERM, VTY_FILE, VTY_SHELL, VTY_SHELL_SERV} type;