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
ae024ecc
Commit
ae024ecc
authored
Jun 02, 2010
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define diversity_kind.
parent
24fd8d0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
route.c
route.c
+1
-0
route.h
route.h
+6
-1
No files found.
route.c
View file @
ae024ecc
...
...
@@ -43,6 +43,7 @@ struct route *routes = NULL;
int
numroutes
=
0
,
maxroutes
=
0
;
int
kernel_metric
=
0
;
int
allow_duplicates
=
-
1
;
int
diversity_kind
=
DIVERSITY_NONE
;
int
diversity_factor
=
256
;
/* in units of 1/256 */
struct
route
*
...
...
route.h
View file @
ae024ecc
...
...
@@ -40,10 +40,15 @@ route_metric(const struct route *route)
return
MIN
(
m
,
INFINITY
);
}
#define DIVERSITY_NONE 0
#define DIVERSITY_INTERFACE_1 1
#define DIVERSITY_CHANNEL_1 2
#define DIVERSITY_CHANNEL_INF 3
extern
struct
route
*
routes
;
extern
int
numroutes
,
maxroutes
;
extern
int
kernel_metric
,
allow_duplicates
;
extern
int
diversity_factor
;
extern
int
diversity_
kind
,
diversity_
factor
;
struct
route
*
find_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
);
...
...
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