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
75f9c798
Commit
75f9c798
authored
Jun 11, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt local_dump to the new neighbours table.
parent
7ecc8fbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
local.c
local.c
+3
-4
No files found.
local.c
View file @
75f9c798
...
@@ -223,6 +223,7 @@ void
...
@@ -223,6 +223,7 @@ void
local_dump
()
local_dump
()
{
{
int
i
,
rc
;
int
i
,
rc
;
struct
neighbour
*
neigh
;
const
char
*
header
=
"BABEL 0.0
\n
"
;
const
char
*
header
=
"BABEL 0.0
\n
"
;
if
(
local_socket
<
0
)
if
(
local_socket
<
0
)
...
@@ -233,10 +234,8 @@ local_dump()
...
@@ -233,10 +234,8 @@ local_dump()
goto
fail
;
goto
fail
;
local_notify_self
();
local_notify_self
();
for
(
i
=
0
;
i
<
numneighs
;
i
++
)
{
FOR_ALL_NEIGHBOURS
(
neigh
)
{
if
(
!
neighbour_valid
(
&
neighs
[
i
]))
local_notify_neighbour
(
neigh
,
LOCAL_ADD
);
continue
;
local_notify_neighbour
(
&
neighs
[
i
],
LOCAL_ADD
);
}
}
for
(
i
=
0
;
i
<
numxroutes
;
i
++
)
for
(
i
=
0
;
i
<
numxroutes
;
i
++
)
local_notify_xroute
(
&
xroutes
[
i
],
LOCAL_ADD
);
local_notify_xroute
(
&
xroutes
[
i
],
LOCAL_ADD
);
...
...
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