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
9e77856c
Commit
9e77856c
authored
Oct 16, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more aggressive about sending IHUs.
parent
4785c418
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
neighbour.c
neighbour.c
+3
-2
No files found.
neighbour.c
View file @
9e77856c
...
...
@@ -184,19 +184,20 @@ update_neighbour(struct neighbour *neigh, int hello, int hello_interval)
if
((
neigh
->
reach
&
0xBF00
)
==
0x8000
)
{
/* A new neighbour */
send_hello
(
neigh
->
network
);
send_ihu
(
neigh
,
NULL
);
}
else
{
/* Don't send hellos, in order to avoid a positive feedback loop. */
int
a
=
(
neigh
->
reach
&
0xC000
);
int
b
=
(
neigh
->
reach
&
0x3000
);
if
((
a
==
0xC000
&&
b
==
0
)
||
(
a
==
0
&&
b
==
0x3000
))
{
/* Reachability is either 1100 or 0011 */
send_ihu
(
neigh
,
NULL
);
send_self_update
(
neigh
->
network
,
0
);
send_neighbour_update
(
neigh
,
NULL
);
}
}
if
((
neigh
->
reach
&
0xF000
)
!=
0xF000
&&
(
neigh
->
reach
&
0xF000
)
!=
0x0000
)
send_ihu
(
neigh
,
NULL
);
if
((
neigh
->
reach
&
0xFC00
)
==
0xC000
)
{
/* This is a newish neighbour. If we don't have another route to it,
request a full route dump. This assumes that the neighbour's id
...
...
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