diff options
author | David Lamparter <equinox@diac24.net> | 2013-05-30 16:31:49 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-05-27 20:34:40 +0200 |
commit | 4715a53b4d390e72a06c864a6a505971841e3dc9 (patch) | |
tree | a7618f437bd55b6695c9f8e4b03a252a0513f6d5 /lib/vty.h | |
parent | ee53c8b9f7979c79beada960746ca35046016a45 (diff) | |
download | quagga-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |