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
c5a42168
Commit
c5a42168
authored
Mar 17, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement schedule_neighbours_check.
parent
ca5d3eaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
babel.c
babel.c
+13
-0
babel.h
babel.h
+1
-0
No files found.
babel.c
View file @
c5a42168
...
...
@@ -800,6 +800,19 @@ main(int argc, char **argv)
exit
(
1
);
}
/* Schedule a neighbours check after roughly 3/2 msecs have elapsed. */
void
schedule_neighbours_check
(
int
msecs
,
int
override
)
{
struct
timeval
timeout
;
timeval_plus_msec
(
&
timeout
,
&
now
,
msecs
+
random
()
%
msecs
);
if
(
override
)
check_neighbours_timeout
=
timeout
;
else
timeval_min
(
&
check_neighbours_timeout
,
&
timeout
);
}
void
resize_receive_buffer
(
int
size
)
{
...
...
babel.h
View file @
c5a42168
...
...
@@ -81,4 +81,5 @@ extern int kernel_socket;
extern
int
max_request_hopcount
;
extern
int
update_interval
;
void
schedule_neighbours_check
(
int
msecs
,
int
override
);
void
resize_receive_buffer
(
int
size
);
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