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