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
e6c34750
Commit
e6c34750
authored
Oct 25, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use route_old and route_expired.
parent
5d715b56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
route.c
route.c
+4
-4
No files found.
route.c
View file @
e6c34750
...
...
@@ -257,7 +257,7 @@ find_best_route(const unsigned char *prefix, unsigned char plen, int feasible,
for
(
i
=
0
;
i
<
numroutes
;
i
++
)
{
if
(
!
source_match
(
routes
[
i
].
src
,
prefix
,
plen
))
continue
;
if
(
route
s
[
i
].
time
<
now
.
tv_sec
-
routes
[
i
].
hold_time
)
if
(
route
_expired
(
&
routes
[
i
])
)
continue
;
if
(
feasible
&&
!
route_feasible
(
&
routes
[
i
]))
continue
;
...
...
@@ -277,7 +277,7 @@ update_route_metric(struct route *route)
int
newmetric
;
oldmetric
=
route
->
metric
;
if
(
route
->
time
<
now
.
tv_sec
-
route
->
hold_time
)
{
if
(
route
_expired
(
route
)
)
{
if
(
route
->
refmetric
<
INFINITY
)
{
route
->
seqno
=
seqno_plus
(
route
->
src
->
seqno
,
1
);
route
->
refmetric
=
INFINITY
;
...
...
@@ -640,7 +640,7 @@ expire_routes(void)
struct
route
*
route
=
&
routes
[
i
];
if
(
route
->
time
>
now
.
tv_sec
||
/* clock stepped */
route
->
time
<
now
.
tv_sec
-
route
->
hold_time
-
20
)
{
route
_old
(
route
)
)
{
flush_route
(
route
);
continue
;
}
...
...
@@ -648,7 +648,7 @@ expire_routes(void)
update_route_metric
(
route
);
if
(
route
->
installed
&&
route
->
refmetric
<
INFINITY
)
{
if
(
route
->
time
<
now
.
tv_sec
-
route
->
hold_time
*
7
/
8
)
if
(
route
_old
(
route
)
)
send_unicast_request
(
route
->
neigh
,
route
->
src
->
prefix
,
route
->
src
->
plen
);
}
...
...
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