diff options
author | Chris Hall <chris.hall@highwayman.com> | 2011-03-29 01:49:16 +0100 |
---|---|---|
committer | Chris Hall <chris.hall@highwayman.com> | 2011-03-29 01:49:16 +0100 |
commit | f9956b9524ddafdb9d0cec042213eaa8229aad8c (patch) | |
tree | bf362c892837ef3f5a6a4d4265eb18e1b47ccf33 /lib/vty_io.c | |
parent | 9470cb2c32eab220f796b1438b787528272cbe84 (diff) | |
download | quagga-ex15p.tar.bz2 quagga-ex15p.tar.xz |
Bring "ex" version up to date with 0.99.18ex15p
Release: 0.99.18ex15p -- Pipework Branch
Also fixes issue with unknown attributes -- does not release them prematurely.
Contains the "bgpd: New show commands for improved view and address family
support", which is post 0.99.18. (But not RFC 5082 GTSM.)
Diffstat (limited to 'lib/vty_io.c')
-rw-r--r-- | lib/vty_io.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/vty_io.c b/lib/vty_io.c index dadfd091..96df3850 100644 --- a/lib/vty_io.c +++ b/lib/vty_io.c @@ -20,6 +20,7 @@ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ +#include "misc.h" #include "vty.h" #include "vty_io.h" @@ -323,8 +324,8 @@ uty_vin_push(vty_io vio, vio_vf vf, vio_in_type_t type, if (ibuf_size != 0) { - vf->ibuf = vio_fifo_init_new(NULL, ibuf_size) ; - vf->cl = qs_init_new(NULL, 120) ; + vf->ibuf = vio_fifo_new(ibuf_size) ; + vf->cl = qs_new(150) ; vf->line_complete = true ; vf->line_step = 1 ; } ; @@ -413,7 +414,7 @@ uty_vout_push(vty_io vio, vio_vf vf, vio_out_type_t type, vio->vout_base = vf ; } ; - vf->obuf = vio_fifo_init_new(NULL, obuf_size) ; + vf->obuf = vio_fifo_new(obuf_size) ; vio_fifo_set_end_mark(vf->obuf) ; vf->depth_mark = vio->depth_mark + 1 ; @@ -595,7 +596,7 @@ uty_close(vty_io vio, const char* reason, bool curtains) /* Can dispose of these now -- leave vin/vout for final disposition */ vio->vty->exec = cmd_exec_free(vio->vty->exec) ; - vio->ebuf = vio_fifo_reset(vio->ebuf, free_it) ; + vio->ebuf = vio_fifo_free(vio->ebuf) ; /* Command loop is not running, so can place on death watch for final * disposition. @@ -638,11 +639,11 @@ uty_dispose(vty_io vio) vio->vout = NULL ; /* Remainder of contents of the vio */ - vio->ebuf = vio_fifo_reset(vio->ebuf, free_it) ; + vio->ebuf = vio_fifo_free(vio->ebuf) ; /* Really cannot be a monitor any more ! */ assert(!vio->monitor) ; - vio->mbuf = vio_fifo_reset(vio->mbuf, free_it) ; + vio->mbuf = vio_fifo_free(vio->mbuf) ; XFREE(MTYPE_VTY, vio) ; @@ -1222,9 +1223,9 @@ uty_vf_free(vio_vf vf) assert(vf->cli == NULL) ; - vf->ibuf = vio_fifo_reset(vf->ibuf, free_it) ; + vf->ibuf = vio_fifo_free(vf->ibuf) ; vf->cl = qs_reset(vf->cl, free_it) ; - vf->obuf = vio_fifo_reset(vf->obuf, free_it) ; + vf->obuf = vio_fifo_free(vf->obuf) ; vf->context = cmd_context_free(vf->context, false) ; /* not a copy */ |