Reenable 'ip mroute'

This commit is contained in:
shemminger 2005-10-07 16:41:34 +00:00
parent f453a0d451
commit 84616f8317
2 changed files with 4 additions and 3 deletions

View File

@ -71,6 +71,7 @@ static const struct cmd {
{ "tunnel", do_iptunnel },
{ "monitor", do_ipmonitor },
{ "xfrm", do_xfrm },
{ "mroute", do_multiroute },
{ "help", do_help },
{ 0 }
};

View File

@ -42,7 +42,7 @@ static void usage(void)
exit(-1);
}
char *viftable[32];
static char *viftable[32];
struct rtfilter
{
@ -50,7 +50,7 @@ struct rtfilter
inet_prefix msrc;
} filter;
void read_viftable(void)
static void read_viftable(void)
{
char buf[256];
FILE *fp = fopen("/proc/net/ip_mr_vif", "r");
@ -75,7 +75,7 @@ void read_viftable(void)
fclose(fp);
}
void read_mroute_list(FILE *ofp)
static void read_mroute_list(FILE *ofp)
{
char buf[256];
FILE *fp = fopen("/proc/net/ip_mr_cache", "r");