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
f3ed6390
Commit
f3ed6390
authored
Mar 13, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change seqno_time to be a timeval.
parent
9987e139
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
message.c
message.c
+4
-4
message.h
message.h
+1
-1
No files found.
message.c
View file @
f3ed6390
...
...
@@ -48,7 +48,7 @@ int silent_time = 30;
int
split_horizon
=
1
;
unsigned
short
myseqno
=
0
;
int
seqno_time
=
0
;
struct
timeval
seqno_time
=
{
0
,
0
}
;
int
seqno_interval
=
-
1
;
struct
buffered_update
{
...
...
@@ -788,9 +788,9 @@ send_update(struct network *net, int urgent,
void
update_myseqno
(
int
force
)
{
if
(
force
||
seqno_time
+
(
seqno_interval
+
500
)
/
1000
<
now
.
tv_sec
)
{
if
(
force
||
timeval_minus_msec
(
&
now
,
&
seqno_time
)
>=
seqno_interval
)
{
myseqno
=
seqno_plus
(
myseqno
,
1
);
seqno_time
=
now
.
tv_sec
;
seqno_time
=
now
;
}
}
...
...
@@ -838,7 +838,7 @@ send_self_retract(struct network *net)
debugf
(
"Retracting self on %s.
\n
"
,
net
->
ifname
);
myseqno
=
seqno_plus
(
myseqno
,
1
);
seqno_time
=
now
.
tv_sec
;
seqno_time
=
now
;
delay_jitter
(
&
net
->
self_update_time
,
&
net
->
self_update_timeout
,
net
->
self_update_interval
);
for
(
i
=
0
;
i
<
numxroutes
;
i
++
)
{
...
...
message.h
View file @
f3ed6390
...
...
@@ -23,7 +23,7 @@ THE SOFTWARE.
#define MAX_BUFFERED_UPDATES 200
extern
unsigned
short
myseqno
;
extern
int
seqno_time
;
extern
struct
timeval
seqno_time
;
extern
int
seqno_interval
;
extern
int
parasitic
;
...
...
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