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 }, { "tunnel", do_iptunnel },
{ "monitor", do_ipmonitor }, { "monitor", do_ipmonitor },
{ "xfrm", do_xfrm }, { "xfrm", do_xfrm },
{ "mroute", do_multiroute },
{ "help", do_help }, { "help", do_help },
{ 0 } { 0 }
}; };

View File

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