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
86c82f44
Commit
86c82f44
authored
Aug 17, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maintain ihu_interval for each neighbour.
parent
bb29dc92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
message.c
message.c
+1
-0
neighbour.c
neighbour.c
+1
-0
neighbour.h
neighbour.h
+1
-0
No files found.
message.c
View file @
86c82f44
...
...
@@ -135,6 +135,7 @@ parse_packet(const unsigned char *from, struct network *net,
if
(
plen
==
0xFF
||
memcmp
(
myid
,
address
,
16
)
==
0
)
{
neigh
->
txcost
=
metric
;
neigh
->
ihu_time
=
now
.
tv_sec
;
neigh
->
ihu_interval
=
seqno
;
update_neighbour_metric
(
neigh
);
}
}
else
if
(
type
==
2
)
{
...
...
neighbour.c
View file @
86c82f44
...
...
@@ -108,6 +108,7 @@ add_neighbour(const unsigned char *id, const unsigned char *address,
neigh
->
ihu_time
=
now
.
tv_sec
;
neigh
->
hello_time
=
zero
;
neigh
->
hello_interval
=
0
;
neigh
->
ihu_interval
=
0
;
neigh
->
hello_seqno
=
-
1
;
neigh
->
network
=
net
;
send_hello
(
net
);
...
...
neighbour.h
View file @
86c82f44
...
...
@@ -30,6 +30,7 @@ struct neighbour {
int
ihu_time
;
struct
timeval
hello_time
;
unsigned
short
hello_interval
;
/* in centiseconds */
unsigned
short
ihu_interval
;
/* in centiseconds */
struct
network
*
network
;
};
...
...
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