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
9def04a6
Commit
9def04a6
authored
Mar 16, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't flush updates manually before sending requests.
This is now done in send_request.
parent
a07d28ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
babel.c
babel.c
+1
-2
route.c
route.c
+0
-6
No files found.
babel.c
View file @
9def04a6
...
@@ -521,9 +521,8 @@ main(int argc, char **argv)
...
@@ -521,9 +521,8 @@ main(int argc, char **argv)
gettimeofday
(
&
now
,
NULL
);
gettimeofday
(
&
now
,
NULL
);
send_hello
(
&
nets
[
i
]);
send_hello
(
&
nets
[
i
]);
send_self_update
(
&
nets
[
i
],
0
);
send_self_update
(
&
nets
[
i
],
0
);
/* Make sure the update is sent before the request. */
flushupdates
();
send_request
(
&
nets
[
i
],
NULL
,
0
,
0
,
0
,
0
);
send_request
(
&
nets
[
i
],
NULL
,
0
,
0
,
0
,
0
);
flushupdates
();
flushbuf
(
&
nets
[
i
]);
flushbuf
(
&
nets
[
i
]);
}
}
...
...
route.c
View file @
9def04a6
...
@@ -561,16 +561,12 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
...
@@ -561,16 +561,12 @@ send_triggered_update(struct route *route, struct source *oldsrc, int oldmetric)
if
(
oldmetric
<
INFINITY
)
{
if
(
oldmetric
<
INFINITY
)
{
if
(
newmetric
>=
INFINITY
||
newmetric
>=
oldmetric
+
384
)
{
if
(
newmetric
>=
INFINITY
||
newmetric
>=
oldmetric
+
384
)
{
/* Ensure that the update goes out before the request */
flushupdates
();
send_request_resend
(
NULL
,
route
->
src
->
prefix
,
route
->
src
->
plen
,
send_request_resend
(
NULL
,
route
->
src
->
prefix
,
route
->
src
->
plen
,
route
->
src
->
metric
>=
INFINITY
?
route
->
src
->
metric
>=
INFINITY
?
route
->
src
->
seqno
:
route
->
src
->
seqno
:
seqno_plus
(
route
->
src
->
seqno
,
1
),
seqno_plus
(
route
->
src
->
seqno
,
1
),
hash_id
(
route
->
src
->
id
));
hash_id
(
route
->
src
->
id
));
}
else
if
(
newmetric
>=
oldmetric
+
288
)
{
}
else
if
(
newmetric
>=
oldmetric
+
288
)
{
/* Ensure that the update goes out before the request */
flushupdates
();
send_request
(
NULL
,
route
->
src
->
prefix
,
route
->
src
->
plen
,
send_request
(
NULL
,
route
->
src
->
prefix
,
route
->
src
->
plen
,
0
,
0
,
0
);
0
,
0
,
0
);
}
}
...
@@ -612,8 +608,6 @@ route_lost(struct source *src, int oldmetric)
...
@@ -612,8 +608,6 @@ route_lost(struct source *src, int oldmetric)
}
else
{
}
else
{
/* Complain loudly. */
/* Complain loudly. */
send_update
(
NULL
,
1
,
src
->
prefix
,
src
->
plen
);
send_update
(
NULL
,
1
,
src
->
prefix
,
src
->
plen
);
/* Ensure the update goes out before the request */
flushupdates
();
if
(
oldmetric
<
INFINITY
)
if
(
oldmetric
<
INFINITY
)
send_request_resend
(
NULL
,
src
->
prefix
,
src
->
plen
,
send_request_resend
(
NULL
,
src
->
prefix
,
src
->
plen
,
src
->
metric
>=
INFINITY
?
src
->
metric
>=
INFINITY
?
...
...
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