]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Wed, 23 Feb 2005 15:48:32 +0000 (15:48 +0000)
committerajs <ajs>
Wed, 23 Feb 2005 15:48:32 +0000 (15:48 +0000)
* {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).

isisd/ChangeLog
isisd/isis_main.c
lib/ChangeLog
lib/vty.c
lib/vty.h

index e34efd8c63b9b318b4dbca05a35fcfe4442d0b5c..c71f05682ab0d1234d999621b2c16bb2a7a9fc19 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * isis_main.c: (reload) Call vty_reset instead of vty_finish (both
+         functions were exactly the same).
+
 2005-01-18 Hasso Tepper <hasso at quagga.net>
 
        * *.c: Changed many functions to static. Some commented out
index a2f028be77a987811cdec94b6fe3c2139b296908..a4f80582792ba95a8d0a0d11b65b1701a9b5fa3a 100644 (file)
@@ -139,7 +139,7 @@ reload ()
 {
   zlog_debug ("Reload");
   /* FIXME: Clean up func call here */
-  vty_finish ();
+  vty_reset ();
   execve (_progpath, _argv, _envp);
 }
 
index af3841a5e00f52863ea141bb224ccb8d66e0890c..26cb68628919df8330a0ef59ea7a85fcd03a23c1 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * {vty.h,vty.c}: Remove vty_finish (duplicate of vty_reset).
+
 2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * buffer.h: Make the struct buffer and struct buffer_data structures
index 887e3baad282d95f5ee794175acf757182c29053..9cc5ec4ee27267252dc9352146c9a935108397c7 100644 (file)
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -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)
 {
index 0290a83640bcd02cab1339a83c2124b6a5f38dd1..6faa7d892e6d367a19d0cf0dfcc020d4b271c0ee 100644 (file)
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -181,7 +181,6 @@ extern char integrate_default[];
 void vty_init (struct thread_master *);
 void vty_init_vtysh (void);
 void vty_reset (void);
-void vty_finish (void);
 struct vty *vty_new (void);
 int vty_out (struct vty *, const char *, ...) PRINTF_ATTRIBUTE(2, 3);
 void vty_read_config (char *, char *);