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
ca471db2
Commit
ca471db2
authored
Jul 26, 2019
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Piggyback IHUs on unicast packets when possible.
It's a minor optimisation, but it makes me happy.
parent
bc26b858
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
message.c
message.c
+6
-1
No files found.
message.c
View file @
ca471db2
...
@@ -1719,7 +1719,12 @@ send_ihu(struct neighbour *neigh, struct interface *ifp)
...
@@ -1719,7 +1719,12 @@ send_ihu(struct neighbour *neigh, struct interface *ifp)
neigh
->
ifp
->
name
,
neigh
->
ifp
->
name
,
format_address
(
neigh
->
address
));
format_address
(
neigh
->
address
));
unicast
=
!!
(
ifp
->
flags
&
IF_UNICAST
);
/* If we already have unicast data buffered for this peer, piggyback
the IHU. Only do that if RFC 6126 compatibility is disabled, since
doing that might require sending an unscheduled unicast Hello. */
unicast
=
!!
(
ifp
->
flags
&
IF_UNICAST
)
||
(
neigh
->
buf
.
len
>
0
&&
!
(
ifp
->
flags
&
IF_RFC6126
));
if
(
!!
(
ifp
->
flags
&
IF_TIMESTAMPS
)
!=
0
&&
neigh
->
hello_send_us
&&
if
(
!!
(
ifp
->
flags
&
IF_TIMESTAMPS
)
!=
0
&&
neigh
->
hello_send_us
&&
/* Checks whether the RTT data is not too old to be sent. */
/* Checks whether the RTT data is not too old to be sent. */
...
...
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