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
3bf64b13
Commit
3bf64b13
authored
Jun 28, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alpha-conversion.
parent
df8bd71b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
message.c
message.c
+3
-2
No files found.
message.c
View file @
3bf64b13
...
@@ -131,11 +131,12 @@ parse_packet(const unsigned char *from, struct network *net,
...
@@ -131,11 +131,12 @@ parse_packet(const unsigned char *from, struct network *net,
}
else
{
}
else
{
/* Request for a new seqno */
/* Request for a new seqno */
int
hopcount
=
message
[
2
];
int
hopcount
=
message
[
2
];
int
seqno
=
message
[
1
];
int
their
seqno
=
message
[
1
];
struct
route
*
installed
;
struct
route
*
installed
;
installed
=
find_installed_route
(
dest
);
installed
=
find_installed_route
(
dest
);
if
(
installed
)
{
if
(
installed
)
{
if
(
seqno_compare
(
installed
->
seqno
,
seqno
)
>=
0
)
if
(
seqno_compare
(
installed
->
seqno
,
theirseqno
)
>=
0
)
send_update
(
dest
,
neigh
->
network
);
send_update
(
dest
,
neigh
->
network
);
else
if
(
hopcount
>=
2
)
{
else
if
(
hopcount
>=
2
)
{
send_unicast_request
(
installed
->
nexthop
,
send_unicast_request
(
installed
->
nexthop
,
...
...
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