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
8d348d4a
Commit
8d348d4a
authored
May 03, 2013
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments about hysteresis algorithm.
parent
a8631d72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
route.c
route.c
+9
-1
No files found.
route.c
View file @
8d348d4a
...
@@ -656,6 +656,11 @@ route_acceptable(struct babel_route *route, int feasible,
...
@@ -656,6 +656,11 @@ route_acceptable(struct babel_route *route, int feasible,
return
1
;
return
1
;
}
}
/* Find the best route according to the weak ordering. Any
linearisation of the strong ordering (see consider_route) will do,
we use sm <= sm'. We could probably use a lexical ordering, but
that's probably overkill. */
struct
babel_route
*
struct
babel_route
*
find_best_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
int
feasible
,
find_best_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
int
feasible
,
struct
neighbour
*
exclude
)
struct
neighbour
*
exclude
)
...
@@ -902,7 +907,10 @@ send_unfeasible_request(struct neighbour *neigh, int force,
...
@@ -902,7 +907,10 @@ send_unfeasible_request(struct neighbour *neigh, int force,
}
}
}
}
/* This takes a feasible route and decides whether to install it. */
/* This takes a feasible route and decides whether to install it.
This uses the strong ordering, which is defined by sm <= sm' AND
m <= m'. This ordering is not total, which is what causes
hysteresis. */
void
void
consider_route
(
struct
babel_route
*
route
)
consider_route
(
struct
babel_route
*
route
)
...
...
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