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
b6e54a7c
Commit
b6e54a7c
authored
Oct 02, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split update_myseqno into its own function.
parent
68da3363
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
message.c
message.c
+10
-3
message.h
message.h
+1
-0
No files found.
message.c
View file @
b6e54a7c
...
@@ -639,13 +639,20 @@ send_update(struct network *net, int urgent,
...
@@ -639,13 +639,20 @@ send_update(struct network *net, int urgent,
}
}
void
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
)
update_myseqno
(
int
force
)
{
{
int
i
;
if
(
force
||
seqno_time
+
seqno_interval
<
now
.
tv_sec
)
{
if
(
force_seqno
||
seqno_time
+
seqno_interval
<
now
.
tv_sec
)
{
myseqno
=
seqno_plus
(
myseqno
,
1
);
myseqno
=
seqno_plus
(
myseqno
,
1
);
seqno_time
=
now
.
tv_sec
;
seqno_time
=
now
.
tv_sec
;
}
}
}
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
)
{
int
i
;
update_myseqno
(
force_seqno
);
if
(
net
==
NULL
)
{
if
(
net
==
NULL
)
{
for
(
i
=
0
;
i
<
numnets
;
i
++
)
for
(
i
=
0
;
i
<
numnets
;
i
++
)
...
...
message.h
View file @
b6e54a7c
...
@@ -51,6 +51,7 @@ void send_unicast_request(struct neighbour *neigh,
...
@@ -51,6 +51,7 @@ void send_unicast_request(struct neighbour *neigh,
unsigned
short
router_hash
);
unsigned
short
router_hash
);
void
send_update
(
struct
network
*
net
,
int
urgent
,
void
send_update
(
struct
network
*
net
,
int
urgent
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
void
update_myseqno
(
int
force
);
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
);
void
send_self_update
(
struct
network
*
net
,
int
force_seqno
);
void
send_self_retract
(
struct
network
*
net
);
void
send_self_retract
(
struct
network
*
net
);
void
send_neighbour_update
(
struct
neighbour
*
neigh
,
struct
network
*
net
);
void
send_neighbour_update
(
struct
neighbour
*
neigh
,
struct
network
*
net
);
...
...
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