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
5202c214
Commit
5202c214
authored
Jun 17, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send a request for a full route dump when a new neighbour appears.
parent
3c017806
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
neighbour.c
neighbour.c
+14
-0
No files found.
neighbour.c
View file @
5202c214
...
...
@@ -29,6 +29,7 @@ THE SOFTWARE.
#include "babel.h"
#include "util.h"
#include "neighbour.h"
#include "destination.h"
#include "route.h"
#include "message.h"
...
...
@@ -168,6 +169,19 @@ update_neighbour(struct neighbour *neigh, int hello, int hello_interval)
send_neighbour_update
(
neigh
,
NULL
);
}
}
if
(
neigh
->
reach
==
0xC000
)
{
/* This is a newish neighbour. Assume its id is also its IP address.
If the best route to it is through it, send it a request
for a full route dump. */
struct
destination
*
dest
;
struct
route
*
route
=
NULL
;
dest
=
find_destination
(
neigh
->
id
,
0
,
0
);
if
(
dest
)
route
=
find_best_route
(
dest
);
if
(
!
route
||
route
->
nexthop
==
neigh
)
send_unicast_request
(
neigh
,
NULL
);
}
}
void
...
...
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