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
dcf8e2dc
Commit
dcf8e2dc
authored
Oct 18, 2011
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement installed_routes_estimate.
parent
82578ef4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
route.c
route.c
+7
-0
route.h
route.h
+1
-0
No files found.
route.c
View file @
dcf8e2dc
...
@@ -134,6 +134,13 @@ find_installed_route(const unsigned char *prefix, unsigned char plen)
...
@@ -134,6 +134,13 @@ find_installed_route(const unsigned char *prefix, unsigned char plen)
return
NULL
;
return
NULL
;
}
}
/* Returns an overestimate of the number of installed routes. */
int
installed_routes_estimate
(
void
)
{
return
route_slots
;
}
static
int
static
int
resize_route_table
(
int
new_slots
)
resize_route_table
(
int
new_slots
)
{
{
...
...
route.h
View file @
dcf8e2dc
...
@@ -69,6 +69,7 @@ struct route *find_route(const unsigned char *prefix, unsigned char plen,
...
@@ -69,6 +69,7 @@ struct route *find_route(const unsigned char *prefix, unsigned char plen,
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
);
struct
neighbour
*
neigh
,
const
unsigned
char
*
nexthop
);
struct
route
*
find_installed_route
(
const
unsigned
char
*
prefix
,
struct
route
*
find_installed_route
(
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
unsigned
char
plen
);
int
installed_routes_estimate
(
void
);
void
flush_route
(
struct
route
*
route
);
void
flush_route
(
struct
route
*
route
);
void
flush_all_routes
(
void
);
void
flush_all_routes
(
void
);
void
flush_neighbour_routes
(
struct
neighbour
*
neigh
);
void
flush_neighbour_routes
(
struct
neighbour
*
neigh
);
...
...
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