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
c9f1e02d
Commit
c9f1e02d
authored
Mar 31, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually resend retractions.
parent
f3d04b5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
route.c
route.c
+9
-5
xroute.c
xroute.c
+1
-1
No files found.
route.c
View file @
c9f1e02d
...
@@ -545,7 +545,7 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
...
@@ -545,7 +545,7 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
if
(
route
->
src
!=
oldsrc
||
(
oldmetric
<
INFINITY
&&
newmetric
>=
INFINITY
))
if
(
route
->
src
!=
oldsrc
||
(
oldmetric
<
INFINITY
&&
newmetric
>=
INFINITY
))
/* Switching sources can cause transient routing loops.
/* Switching sources can cause transient routing loops.
Retractions are always urgent. */
Retractions are always urgent. */
urgent
=
1
;
urgent
=
2
;
else
if
(
newmetric
>=
8
*
256
&&
oldmetric
>=
8
*
256
)
else
if
(
newmetric
>=
8
*
256
&&
oldmetric
>=
8
*
256
)
/* Don't be noisy about far-away nodes */
/* Don't be noisy about far-away nodes */
urgent
=
-
1
;
urgent
=
-
1
;
...
@@ -555,14 +555,18 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
...
@@ -555,14 +555,18 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
/* Make sure that requests are satisfied speedily */
/* Make sure that requests are satisfied speedily */
if
(
unsatisfied_request
(
route
->
src
->
prefix
,
route
->
src
->
plen
,
if
(
unsatisfied_request
(
route
->
src
->
prefix
,
route
->
src
->
plen
,
route
->
seqno
,
hash_id
(
route
->
src
->
id
)))
route
->
seqno
,
hash_id
(
route
->
src
->
id
)))
urgent
=
1
;
urgent
=
MAX
(
urgent
,
1
)
;
if
(
urgent
<
0
)
if
(
urgent
<
0
)
return
;
return
;
if
(
urgent
||
if
(
urgent
||
(
newmetric
>=
oldmetric
+
256
||
oldmetric
>=
newmetric
+
256
))
(
newmetric
>=
oldmetric
+
256
||
oldmetric
>=
newmetric
+
256
))
{
send_update
(
NULL
,
urgent
,
route
->
src
->
prefix
,
route
->
src
->
plen
);
if
(
urgent
>=
2
)
send_update_resend
(
NULL
,
route
->
src
->
prefix
,
route
->
src
->
plen
);
else
send_update
(
NULL
,
urgent
,
route
->
src
->
prefix
,
route
->
src
->
plen
);
}
if
(
oldmetric
<
INFINITY
)
{
if
(
oldmetric
<
INFINITY
)
{
if
(
newmetric
>=
INFINITY
||
newmetric
>=
oldmetric
+
384
)
{
if
(
newmetric
>=
INFINITY
||
newmetric
>=
oldmetric
+
384
)
{
...
@@ -612,7 +616,7 @@ route_lost(struct source *src, int oldmetric)
...
@@ -612,7 +616,7 @@ route_lost(struct source *src, int oldmetric)
consider_route
(
new_route
);
consider_route
(
new_route
);
}
else
{
}
else
{
/* Complain loudly. */
/* Complain loudly. */
send_update
(
NULL
,
1
,
src
->
prefix
,
src
->
plen
);
send_update
_resend
(
NULL
,
src
->
prefix
,
src
->
plen
);
if
(
oldmetric
<
INFINITY
)
if
(
oldmetric
<
INFINITY
)
send_request_resend
(
NULL
,
src
->
prefix
,
src
->
plen
,
send_request_resend
(
NULL
,
src
->
prefix
,
src
->
plen
,
src
->
metric
>=
INFINITY
?
src
->
metric
>=
INFINITY
?
...
...
xroute.c
View file @
c9f1e02d
...
@@ -159,7 +159,7 @@ check_xroutes(int send_updates)
...
@@ -159,7 +159,7 @@ check_xroutes(int send_updates)
if
(
!
export
)
{
if
(
!
export
)
{
if
(
send_updates
)
if
(
send_updates
)
send_update
(
NULL
,
1
,
xroutes
[
i
].
prefix
,
xroutes
[
i
].
plen
);
send_update
_resend
(
NULL
,
xroutes
[
i
].
prefix
,
xroutes
[
i
].
plen
);
flush_xroute
(
&
xroutes
[
i
]);
flush_xroute
(
&
xroutes
[
i
]);
change
=
1
;
change
=
1
;
}
else
{
}
else
{
...
...
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