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
09a59d51
Commit
09a59d51
authored
Jan 21, 2018
by
Juliusz Chroboczek
Committed by
Juliusz Chroboczek
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make low-level message formatting functions take a struct buffered.
parent
024d2db6
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
130 additions
and
129 deletions
+130
-129
interface.c
interface.c
+2
-2
interface.h
interface.h
+1
-1
message.c
message.c
+127
-126
No files found.
interface.c
View file @
09a59d51
...
...
@@ -130,9 +130,9 @@ flush_interface(char *ifname)
/* This should be no more than half the hello interval, so that hellos
aren't sent late. The result is in milliseconds. */
unsigned
jitter
(
struct
interface
*
ifp
,
int
urgent
)
jitter
(
struct
buffered
*
buf
,
int
urgent
)
{
unsigned
interval
=
ifp
->
buf
.
flush_interval
;
unsigned
interval
=
buf
->
flush_interval
;
if
(
urgent
)
interval
=
MIN
(
interval
,
20
);
else
...
...
interface.h
View file @
09a59d51
...
...
@@ -143,7 +143,7 @@ if_up(struct interface *ifp)
struct
interface
*
add_interface
(
char
*
ifname
,
struct
interface_conf
*
if_conf
);
int
flush_interface
(
char
*
ifname
);
unsigned
jitter
(
struct
interface
*
ifp
,
int
urgent
);
unsigned
jitter
(
struct
buffered
*
buf
,
int
urgent
);
unsigned
update_jitter
(
struct
interface
*
ifp
,
int
urgent
);
void
set_timeout
(
struct
timeval
*
timeout
,
int
msecs
);
int
interface_up
(
struct
interface
*
ifp
,
int
up
);
...
...
message.c
View file @
09a59d51
This diff is collapsed.
Click to expand it.
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