summaryrefslogtreecommitdiffstats
path: root/lib/vty.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2013-05-30 16:31:49 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-08 21:08:05 +0200
commitc5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377 (patch)
tree1a44f6621bf0f9c5015494d5d8ab244df114d43d /lib/vty.h
parentospfd: Remove another odd flooding hack in opaque LSA code (diff)
downloadfrr-c5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377.tar.xz
frr-c5e69a025f7d1c15cd1c49d1b8cf7a0c18bbc377.zip
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> (cherry picked from commit 4715a53b4d390e72a06c864a6a505971841e3dc9)
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 f0286202b..7968e92fd 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;