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
66081849
Commit
66081849
authored
Aug 16, 2005
by
shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update include files and fix a couple of minor bugs
parent
6864c1e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
ChangeLog
ChangeLog
+5
-0
ip/ipneigh.c
ip/ipneigh.c
+5
-1
ip/iprule.c
ip/iprule.c
+1
-1
No files found.
ChangeLog
View file @
66081849
2005-08-16 Stephen Hemminger <shemminger@osdl.org>
* Limit ip route flush to 10 rounds.
* Cleanup ip rule flush error message
2005-08-08 Stephen Hemminger <shemminger@osdl.org>
* Update to 2.6.13+ kernel headers
...
...
ip/ipneigh.c
View file @
66081849
...
...
@@ -31,6 +31,7 @@
#include "ip_common.h"
#define NUD_VALID (NUD_PERMANENT|NUD_NOARP|NUD_REACHABLE|NUD_PROBE|NUD_STALE|NUD_DELAY)
#define MAX_ROUNDS 10
static
struct
{
...
...
@@ -402,7 +403,7 @@ int do_show_or_flush(int argc, char **argv, int flush)
filter
.
rth
=
&
rth
;
filter
.
state
&=
~
NUD_FAILED
;
for
(;;
)
{
while
(
round
<
MAX_ROUNDS
)
{
if
(
rtnl_wilddump_request
(
&
rth
,
filter
.
family
,
RTM_GETNEIGH
)
<
0
)
{
perror
(
"Cannot send dump request"
);
exit
(
1
);
...
...
@@ -428,6 +429,9 @@ int do_show_or_flush(int argc, char **argv, int flush)
fflush
(
stdout
);
}
}
printf
(
"*** Flush not complete bailing out after %d rounds
\n
"
,
MAX_ROUNDS
);
return
1
;
}
if
(
rtnl_wilddump_request
(
&
rth
,
filter
.
family
,
RTM_GETNEIGH
)
<
0
)
{
...
...
ip/iprule.c
View file @
66081849
...
...
@@ -340,7 +340,7 @@ static int iprule_flush(int argc, char **argv)
af
=
AF_INET
;
if
(
argc
>
0
)
{
fprintf
(
stderr
,
"
\"
ip rule flush
\"
need not any arguments.
\n
"
);
fprintf
(
stderr
,
"
\"
ip rule flush
\"
does not allow arguments
\n
"
);
return
-
1
;
}
...
...
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