Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
84616f83
Commit
84616f83
authored
Oct 07, 2005
by
shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reenable 'ip mroute'
parent
f453a0d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ip/ip.c
ip/ip.c
+1
-0
ip/ipmroute.c
ip/ipmroute.c
+3
-3
No files found.
ip/ip.c
View file @
84616f83
...
@@ -71,6 +71,7 @@ static const struct cmd {
...
@@ -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
}
};
};
...
...
ip/ipmroute.c
View file @
84616f83
...
@@ -42,7 +42,7 @@ static void usage(void)
...
@@ -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
...
@@ -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)
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment