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
9edf0a14
Commit
9edf0a14
authored
Dec 08, 2014
by
Matthieu Boutier
Committed by
Juliusz Chroboczek
Mar 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make route_compare() globally defined.
parent
a141a746
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
route.c
route.c
+2
-2
route.h
route.h
+3
-0
No files found.
route.c
View file @
9edf0a14
...
...
@@ -56,10 +56,10 @@ static int two_to_the_one_over_hl = 0; /* 2^(1/hl) * 0x10000 */
contains a linked list of the routes to this prefix, with the
installed route, if any, at the head of the list. */
static
int
int
route_compare
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
const
unsigned
char
*
src_prefix
,
unsigned
char
src_plen
,
struct
babel_route
*
route
)
const
struct
babel_route
*
route
)
{
int
i
=
memcmp
(
prefix
,
route
->
src
->
prefix
,
16
);
if
(
i
!=
0
)
...
...
route.h
View file @
9edf0a14
...
...
@@ -69,6 +69,9 @@ route_metric_noninterfering(const struct babel_route *route)
return
MIN
(
m
,
INFINITY
);
}
int
route_compare
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
const
unsigned
char
*
src_prefix
,
unsigned
char
src_plen
,
const
struct
babel_route
*
route
);
struct
babel_route
*
find_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
,
const
unsigned
char
*
src_prefix
,
unsigned
char
src_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