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
220796f2
Commit
220796f2
authored
Jun 30, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to send route requests when we loose a route.
parent
2060f656
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
route.c
route.c
+12
-5
No files found.
route.c
View file @
220796f2
...
...
@@ -101,7 +101,8 @@ flush_route(struct route *route)
}
send_update
(
route
->
dest
,
NULL
);
}
if
(
!
new_route
||
new_route
->
metric
>=
INFINITY
)
if
(
oldmetric
<
INFINITY
&&
(
!
new_route
||
new_route
->
metric
>=
INFINITY
))
send_request
(
NULL
,
route
->
dest
,
max_hopcount
,
-
1
);
}
}
...
...
@@ -426,9 +427,15 @@ send_triggered_update(struct route *route, int oldmetric)
(
route
->
metric
-
oldmetric
>=
256
||
oldmetric
-
route
->
metric
>=
256
))
send_update
(
route
->
dest
,
NULL
);
if
(
route
->
metric
-
oldmetric
>=
384
)
{
if
(
oldmetric
<
INFINITY
)
{
if
(
route
->
metric
>=
INFINITY
)
{
/* We just lost a route, request a new seqno from the source */
send_unicast_request
(
route
->
nexthop
,
route
->
dest
,
max_hopcount
,
-
1
);
}
else
if
(
route
->
metric
-
oldmetric
>=
384
)
{
/* This route's metric has increased a lot -- let's hope we find
something better */
send_request
(
NULL
,
route
->
dest
,
1
,
-
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