struct thread *t_interval;
};
-static int bgp_dump_unset (struct vty *vty, struct bgp_dump *bgp_dump);
+static int bgp_dump_unset (struct bgp_dump *bgp_dump);
static int bgp_dump_interval_func (struct thread *);
/* BGP packet dump output buffer. */
}
/* Removing previous config */
- bgp_dump_unset(vty, bgp_dump);
+ bgp_dump_unset(bgp_dump);
if (interval_str)
{
}
static int
-bgp_dump_unset (struct vty *vty, struct bgp_dump *bgp_dump)
+bgp_dump_unset (struct bgp_dump *bgp_dump)
{
/* Removing file name. */
if (bgp_dump->filename)
break;
}
- return bgp_dump_unset (vty, bgp_dump_struct);
+ return bgp_dump_unset (bgp_dump_struct);
}
/* BGP node structure. */
void
bgp_dump_finish (void)
{
+ bgp_dump_unset (&bgp_dump_all);
+ bgp_dump_unset (&bgp_dump_updates);
+ bgp_dump_unset (&bgp_dump_routes);
+
stream_free (bgp_dump_obuf);
bgp_dump_obuf = NULL;
}