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
a1f28869
Commit
a1f28869
authored
Jan 24, 2009
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove force_seqno from send_self_update.
It is no longer used.
parent
6e0c1464
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
babel.c
babel.c
+2
-2
message.c
message.c
+4
-4
message.h
message.h
+1
-1
neighbour.c
neighbour.c
+1
-1
No files found.
babel.c
View file @
a1f28869
...
...
@@ -512,7 +512,7 @@ main(int argc, char **argv)
gettime
(
&
now
);
send_hello
(
net
);
send_wildcard_retraction
(
net
);
send_self_update
(
net
,
0
);
send_self_update
(
net
);
send_request
(
net
,
NULL
,
0
);
flushupdates
(
net
);
flushbuf
(
net
);
...
...
@@ -687,7 +687,7 @@ main(int argc, char **argv)
if
(
timeval_compare
(
&
now
,
&
net
->
update_timeout
)
>=
0
)
send_update
(
net
,
0
,
NULL
,
0
);
if
(
timeval_compare
(
&
now
,
&
net
->
self_update_timeout
)
>=
0
)
send_self_update
(
net
,
0
);
send_self_update
(
net
);
if
(
timeval_compare
(
&
now
,
&
net
->
update_flush_timeout
)
>=
0
)
flushupdates
(
net
);
}
...
...
message.c
View file @
a1f28869
...
...
@@ -996,7 +996,7 @@ send_update(struct network *net, int urgent,
buffer_update
(
net
,
prefix
,
plen
);
}
}
else
{
send_self_update
(
net
,
0
);
send_self_update
(
net
);
if
(
!
selfonly
&&
!
network_idle
(
net
))
{
debugf
(
"Sending update to %s for any.
\n
"
,
net
->
ifname
);
for
(
i
=
0
;
i
<
numroutes
;
i
++
)
...
...
@@ -1062,18 +1062,18 @@ update_myseqno(int force)
}
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
)
send_self_update
(
struct
network
*
net
)
{
int
i
;
update_myseqno
(
force_seqno
);
update_myseqno
(
0
);
if
(
net
==
NULL
)
{
struct
network
*
n
;
FOR_ALL_NETS
(
n
)
{
if
(
!
n
->
up
)
continue
;
send_self_update
(
n
,
0
);
send_self_update
(
n
);
}
return
;
}
...
...
message.h
View file @
a1f28869
...
...
@@ -67,7 +67,7 @@ void send_update_resend(struct network *net,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
void
send_wildcard_retraction
(
struct
network
*
net
);
void
update_myseqno
(
int
force
);
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
);
void
send_self_update
(
struct
network
*
net
);
void
send_ihu
(
struct
neighbour
*
neigh
,
struct
network
*
net
);
void
send_marginal_ihu
(
struct
network
*
net
);
void
send_request
(
struct
network
*
net
,
...
...
neighbour.c
View file @
a1f28869
...
...
@@ -180,7 +180,7 @@ update_neighbour(struct neighbour *neigh, int hello, int hello_interval)
int
b
=
(
neigh
->
reach
&
0x3000
);
if
((
a
==
0xC000
&&
b
==
0
)
||
(
a
==
0
&&
b
==
0x3000
))
{
/* Reachability is either 1100 or 0011 */
send_self_update
(
neigh
->
network
,
0
);
send_self_update
(
neigh
->
network
);
}
}
...
...
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