Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
d5902f09
Commit
d5902f09
authored
Nov 08, 2018
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore redistributed routes filtered out.
Thanks to Dave Taht for the report.
parent
7b13c482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
xroute.c
xroute.c
+9
-8
No files found.
xroute.c
View file @
d5902f09
...
@@ -391,6 +391,12 @@ check_xroutes(int send_updates)
...
@@ -391,6 +391,12 @@ check_xroutes(int send_updates)
i
=
0
;
i
=
0
;
j
=
0
;
j
=
0
;
while
(
i
<
numroutes
||
j
<
numxroutes
)
{
while
(
i
<
numroutes
||
j
<
numxroutes
)
{
/* Ignore routes filtered out. */
if
(
i
<
numroutes
&&
routes
[
i
].
metric
>=
INFINITY
)
{
i
++
;
continue
;
}
if
(
i
>=
numroutes
)
if
(
i
>=
numroutes
)
rc
=
+
1
;
rc
=
+
1
;
else
if
(
j
>=
numxroutes
)
else
if
(
j
>=
numxroutes
)
...
@@ -444,22 +450,17 @@ check_xroutes(int send_updates)
...
@@ -444,22 +450,17 @@ check_xroutes(int send_updates)
send_update_resend
(
NULL
,
prefix
,
plen
,
src_prefix
,
src_plen
);
send_update_resend
(
NULL
,
prefix
,
plen
,
src_prefix
,
src_plen
);
}
}
}
else
{
}
else
{
/* It fits */
if
(
routes
[
i
].
metric
!=
xroutes
[
j
].
metric
||
if
(
routes
[
i
].
metric
>=
INFINITY
)
{
routes
[
i
].
proto
!=
xroutes
[
j
].
proto
)
{
flush_xroute
(
&
xroutes
[
j
]);
}
else
if
(
routes
[
i
].
metric
!=
xroutes
[
j
].
metric
||
routes
[
i
].
proto
!=
xroutes
[
j
].
proto
)
{
xroutes
[
j
].
metric
=
routes
[
i
].
metric
;
xroutes
[
j
].
metric
=
routes
[
i
].
metric
;
xroutes
[
j
].
proto
=
routes
[
i
].
proto
;
xroutes
[
j
].
proto
=
routes
[
i
].
proto
;
local_notify_xroute
(
&
xroutes
[
j
],
LOCAL_CHANGE
);
local_notify_xroute
(
&
xroutes
[
j
],
LOCAL_CHANGE
);
if
(
send_updates
)
if
(
send_updates
)
send_update
(
NULL
,
0
,
xroutes
[
j
].
prefix
,
xroutes
[
j
].
plen
,
send_update
(
NULL
,
0
,
xroutes
[
j
].
prefix
,
xroutes
[
j
].
plen
,
xroutes
[
j
].
src_prefix
,
xroutes
[
j
].
src_plen
);
xroutes
[
j
].
src_prefix
,
xroutes
[
j
].
src_plen
);
j
++
;
}
else
{
j
++
;
}
}
i
++
;
i
++
;
j
++
;
}
}
}
}
...
...
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