Reenable 'ip mroute'
This commit is contained in:
parent
f453a0d451
commit
84616f8317
1
ip/ip.c
1
ip/ip.c
|
|
@ -71,6 +71,7 @@ static const struct cmd {
|
|||
{ "tunnel", do_iptunnel },
|
||||
{ "monitor", do_ipmonitor },
|
||||
{ "xfrm", do_xfrm },
|
||||
{ "mroute", do_multiroute },
|
||||
{ "help", do_help },
|
||||
{ 0 }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue