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
3d586a5b
Commit
3d586a5b
authored
Jun 30, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase request seqno by 1 if destination metric is finite.
parent
6a7b3338
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
babel.c
babel.c
+1
-1
message.c
message.c
+6
-3
route.c
route.c
+1
-1
No files found.
babel.c
View file @
3d586a5b
...
...
@@ -758,7 +758,7 @@ expire_routes(void)
if
(
route
->
installed
&&
route
->
refmetric
<
INFINITY
)
{
if
(
route
->
time
<
now
.
tv_sec
-
MAX
(
5
,
route_timeout_delay
-
25
))
send_unicast_request
(
route
->
nexthop
,
route
->
dest
,
max_request_hopcount
,
-
1
);
max_request_hopcount
,
route
->
dest
->
seqno
);
}
i
++
;
}
...
...
message.c
View file @
3d586a5b
...
...
@@ -364,7 +364,9 @@ send_request(struct network *net, struct destination *dest,
if
(
seqno
>=
0
)
accumulate_byte
(
net
,
seqno
);
else
accumulate_byte
(
net
,
dest
->
seqno
);
accumulate_byte
(
net
,
dest
->
metric
>=
INFINITY
?
dest
->
seqno
:
((
dest
->
seqno
+
1
)
&
0xFF
));
accumulate_byte
(
net
,
hopcount
);
}
else
{
accumulate_byte
(
net
,
0
);
...
...
@@ -399,7 +401,6 @@ send_unicast_packet(struct neighbour *neigh, unsigned char *buf, int buflen)
}
}
void
send_unicast_request
(
struct
neighbour
*
neigh
,
struct
destination
*
dest
,
int
hopcount
,
int
seqno
)
...
...
@@ -418,7 +419,9 @@ send_unicast_request(struct neighbour *neigh, struct destination *dest,
if
(
seqno
>=
0
)
buf
[
1
]
=
seqno
;
else
buf
[
1
]
=
dest
->
seqno
;
buf
[
1
]
=
dest
->
metric
>=
INFINITY
?
dest
->
seqno
:
((
dest
->
seqno
+
1
)
&
0xFF
);
buf
[
2
]
=
hopcount
;
}
else
{
buf
[
1
]
=
0
;
...
...
route.c
View file @
3d586a5b
...
...
@@ -439,7 +439,7 @@ send_triggered_update(struct route *route, int oldmetric)
}
else
if
(
route
->
metric
-
oldmetric
>=
384
)
{
/* This route's metric has increased a lot -- let's hope we find
something better */
send_request
(
NULL
,
route
->
dest
,
1
,
-
1
);
send_request
(
NULL
,
route
->
dest
,
1
,
route
->
seqno
);
}
}
}
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