struct thread *t_bgp_dump_routes;
\f
/* Some define for BGP packet dump. */
-FILE *
+static FILE *
bgp_dump_open_file (struct bgp_dump *bgp_dump)
{
int ret;
return bgp_dump->fp;
}
-int
+static int
bgp_dump_interval_add (struct bgp_dump *bgp_dump, int interval)
{
- int bgp_dump_interval_func (struct thread *);
+ static int bgp_dump_interval_func (struct thread *t);
int interval2, secs_into_day;
time_t t;
struct tm *tm;
}
/* Dump common header. */
-void
+static void
bgp_dump_header (struct stream *obuf, int type, int subtype)
{
time_t now;
stream_putl (obuf, 0); /* len */
}
-void
+static void
bgp_dump_set_size (struct stream *s, int type)
{
stream_putl_at (s, 8, stream_get_endp (s) - BGP_DUMP_HEADER_SIZE);
}
-void
+static void
bgp_dump_routes_entry (struct prefix *p, struct bgp_info *info, int afi,
int type, unsigned int seq)
{
}
/* Runs under child process. */
-void
+static void
bgp_dump_routes_func (int afi)
{
struct stream *obuf;
bgp_dump_routes_entry (&rn->p, info, afi, MSG_TABLE_DUMP, seq++);
}
-int
+static int
bgp_dump_interval_func (struct thread *t)
{
struct bgp_dump *bgp_dump;
}
/* Dump common information. */
-void
+static void
bgp_dump_common (struct stream *obuf, struct peer *peer)
{
char empty[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
fflush (bgp_dump_all.fp);
}
-void
+static void
bgp_dump_packet_func (struct bgp_dump *bgp_dump, struct peer *peer,
struct stream *packet)
{
bgp_dump_packet_func (&bgp_dump_updates, peer, packet);
}
\f
-unsigned int
+static unsigned int
bgp_dump_parse_time (const char *str)
{
int i;
return total + time;
}
-int
+static int
bgp_dump_set (struct vty *vty, struct bgp_dump *bgp_dump, int type,
const char *path, const char *interval_str)
{
return CMD_SUCCESS;
}
-int
+static int
bgp_dump_unset (struct vty *vty, struct bgp_dump *bgp_dump)
{
/* Set file name. */
}
#endif
-int
+static int
config_write_bgp_dump (struct vty *vty)
{
if (bgp_dump_all.filename)
\f
/* Initialize BGP packet dump functionality. */
void
-bgp_dump_init ()
+bgp_dump_init (void)
{
memset (&bgp_dump_all, 0, sizeof (struct bgp_dump));
memset (&bgp_dump_updates, 0, sizeof (struct bgp_dump));