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
b40390cf
Commit
b40390cf
authored
Jan 19, 2018
by
Juliusz Chroboczek
Committed by
Juliusz Chroboczek
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move flushupdates outside of flushbuf.
parent
afc36c5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
babeld.c
babeld.c
+3
-1
message.c
message.c
+3
-3
No files found.
babeld.c
View file @
b40390cf
...
...
@@ -779,8 +779,10 @@ main(int argc, char **argv)
if
(
!
if_up
(
ifp
))
continue
;
if
(
ifp
->
buf
.
timeout
.
tv_sec
!=
0
)
{
if
(
timeval_compare
(
&
now
,
&
ifp
->
buf
.
timeout
)
>=
0
)
if
(
timeval_compare
(
&
now
,
&
ifp
->
buf
.
timeout
)
>=
0
)
{
flushupdates
(
ifp
);
flushbuf
(
ifp
);
}
}
}
...
...
message.c
View file @
b40390cf
...
...
@@ -946,8 +946,6 @@ flushbuf(struct interface *ifp)
assert
(
ifp
->
buf
.
len
<=
ifp
->
buf
.
size
);
flushupdates
(
ifp
);
if
(
ifp
->
buf
.
len
>
0
)
{
debugf
(
" (flushing %d buffered bytes on %s)
\n
"
,
ifp
->
buf
.
len
,
ifp
->
name
);
...
...
@@ -1141,8 +1139,10 @@ send_hello_noupdate(struct interface *ifp, unsigned interval)
{
/* This avoids sending multiple hellos in a single packet, which breaks
link quality estimation. */
if
(
ifp
->
buf
.
hello
>=
0
)
if
(
ifp
->
buf
.
hello
>=
0
)
{
flushupdates
(
ifp
);
flushbuf
(
ifp
);
}
ifp
->
hello_seqno
=
seqno_plus
(
ifp
->
hello_seqno
,
1
);
set_timeout
(
&
ifp
->
hello_timeout
,
ifp
->
hello_interval
);
...
...
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