diff options
author | ajs <ajs> | 2005-02-23 15:48:32 +0000 |
---|---|---|
committer | ajs <ajs> | 2005-02-23 15:48:32 +0000 |
commit | cdb6ee94bc2b9d1b66cfa1adcc5acaccbd648e0f (patch) | |
tree | e2ddd54488f20a3402ce94fcc4fb337fb883f61c /lib/vty.c | |
parent | 5c33349b3efff36a6acd36c6600b61e7cc2dbffc (diff) |
2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* {vty.h,vty.c}: Remove vty_finish (duplicate of vty_reset).
* isis_main.c: (reload) Call vty_reset instead of vty_finish (both
functions were exactly the same).
Diffstat (limited to 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 40 |
1 files changed, 0 insertions, 40 deletions
@@ -2780,46 +2780,6 @@ vty_reset () } } -/* for ospf6d easy temprary reload function */ -/* vty_reset + close accept socket */ -void -vty_finish () -{ - unsigned int i; - struct vty *vty; - struct thread *vty_serv_thread; - - for (i = 0; i < vector_max (vtyvec); i++) - if ((vty = vector_slot (vtyvec, i)) != NULL) - { - buffer_reset (vty->obuf); - vty->status = VTY_CLOSE; - vty_close (vty); - } - - for (i = 0; i < vector_max (Vvty_serv_thread); i++) - if ((vty_serv_thread = vector_slot (Vvty_serv_thread, i)) != NULL) - { - thread_cancel (vty_serv_thread); - vector_slot (Vvty_serv_thread, i) = NULL; - close (i); - } - - vty_timeout_val = VTY_TIMEOUT_DEFAULT; - - if (vty_accesslist_name) - { - XFREE(MTYPE_VTY, vty_accesslist_name); - vty_accesslist_name = NULL; - } - - if (vty_ipv6_accesslist_name) - { - XFREE(MTYPE_VTY, vty_ipv6_accesslist_name); - vty_ipv6_accesslist_name = NULL; - } -} - static void vty_save_cwd (void) { |