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
451ded7c
Commit
451ded7c
authored
Jan 26, 2009
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't update seqno periodically, rely on explicit requests.
parent
f5e9f532
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
20 deletions
+5
-20
babel.c
babel.c
+0
-4
message.c
message.c
+4
-14
message.h
message.h
+1
-2
No files found.
babel.c
View file @
451ded7c
...
@@ -272,10 +272,6 @@ main(int argc, char **argv)
...
@@ -272,10 +272,6 @@ main(int argc, char **argv)
70000
);
70000
);
update_interval
=
MAX
(
update_interval
,
70
);
update_interval
=
MAX
(
update_interval
,
70
);
if
(
seqno_interval
<=
0
)
seqno_interval
=
MAX
(
40000
,
update_interval
*
9
/
10
);
seqno_interval
=
MAX
(
seqno_interval
,
20
);
if
(
do_daemonise
)
{
if
(
do_daemonise
)
{
if
(
logfile
==
NULL
)
if
(
logfile
==
NULL
)
logfile
=
"/var/log/babel.log"
;
logfile
=
"/var/log/babel.log"
;
...
...
message.c
View file @
451ded7c
...
@@ -48,7 +48,6 @@ int split_horizon = 1;
...
@@ -48,7 +48,6 @@ int split_horizon = 1;
unsigned
short
myseqno
=
0
;
unsigned
short
myseqno
=
0
;
struct
timeval
seqno_time
=
{
0
,
0
};
struct
timeval
seqno_time
=
{
0
,
0
};
int
seqno_interval
=
-
1
;
#define UNICAST_BUFSIZE 1024
#define UNICAST_BUFSIZE 1024
int
unicast_buffered
=
0
;
int
unicast_buffered
=
0
;
...
@@ -1053,17 +1052,10 @@ send_wildcard_retraction(struct network *net)
...
@@ -1053,17 +1052,10 @@ send_wildcard_retraction(struct network *net)
}
}
void
void
update_myseqno
(
int
force
)
update_myseqno
()
{
{
int
delay
=
timeval_minus_msec
(
&
now
,
&
seqno_time
);
if
(
delay
<
1000
)
return
;
if
(
force
||
delay
>=
seqno_interval
)
{
myseqno
=
seqno_plus
(
myseqno
,
1
);
myseqno
=
seqno_plus
(
myseqno
,
1
);
seqno_time
=
now
;
seqno_time
=
now
;
}
}
}
void
void
...
@@ -1071,8 +1063,6 @@ send_self_update(struct network *net)
...
@@ -1071,8 +1063,6 @@ send_self_update(struct network *net)
{
{
int
i
;
int
i
;
update_myseqno
(
0
);
if
(
net
==
NULL
)
{
if
(
net
==
NULL
)
{
struct
network
*
n
;
struct
network
*
n
;
FOR_ALL_NETS
(
n
)
{
FOR_ALL_NETS
(
n
)
{
...
@@ -1364,7 +1354,7 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix,
...
@@ -1364,7 +1354,7 @@ handle_request(struct neighbour *neigh, const unsigned char *prefix,
/* Hopelessly out-of-date request */
/* Hopelessly out-of-date request */
return
;
return
;
}
}
update_myseqno
(
1
);
update_myseqno
();
}
}
}
}
send_update
(
neigh
->
network
,
1
,
prefix
,
plen
);
send_update
(
neigh
->
network
,
1
,
prefix
,
plen
);
...
...
message.h
View file @
451ded7c
...
@@ -40,7 +40,6 @@ THE SOFTWARE.
...
@@ -40,7 +40,6 @@ THE SOFTWARE.
extern
unsigned
short
myseqno
;
extern
unsigned
short
myseqno
;
extern
struct
timeval
seqno_time
;
extern
struct
timeval
seqno_time
;
extern
int
seqno_interval
;
extern
int
parasitic
;
extern
int
parasitic
;
extern
int
silent_time
;
extern
int
silent_time
;
...
@@ -66,7 +65,7 @@ void send_update(struct network *net, int urgent,
...
@@ -66,7 +65,7 @@ void send_update(struct network *net, int urgent,
void
send_update_resend
(
struct
network
*
net
,
void
send_update_resend
(
struct
network
*
net
,
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
const
unsigned
char
*
prefix
,
unsigned
char
plen
);
void
send_wildcard_retraction
(
struct
network
*
net
);
void
send_wildcard_retraction
(
struct
network
*
net
);
void
update_myseqno
(
int
force
);
void
update_myseqno
(
void
);
void
send_self_update
(
struct
network
*
net
);
void
send_self_update
(
struct
network
*
net
);
void
send_ihu
(
struct
neighbour
*
neigh
,
struct
network
*
net
);
void
send_ihu
(
struct
neighbour
*
neigh
,
struct
network
*
net
);
void
send_marginal_ihu
(
struct
network
*
net
);
void
send_marginal_ihu
(
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