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
bb29dc92
Commit
bb29dc92
authored
Aug 17, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include ihu_interval in ihu messages.
parent
22def78c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
message.c
message.c
+6
-2
No files found.
message.c
View file @
bb29dc92
...
...
@@ -662,6 +662,7 @@ void
send_ihu
(
struct
neighbour
*
neigh
,
struct
network
*
net
)
{
int
i
;
unsigned
short
interval
;
if
(
neigh
==
NULL
&&
net
==
NULL
)
{
for
(
i
=
0
;
i
<
numnets
;
i
++
)
...
...
@@ -669,10 +670,13 @@ send_ihu(struct neighbour *neigh, struct network *net)
return
;
}
interval
=
net
->
ihu_interval
*
100
>=
0xFFFF
?
0
:
net
->
ihu_interval
*
100
;
if
(
neigh
==
NULL
)
{
if
(
broadcast_ihu
&&
net
->
wired
)
{
debugf
(
"Sending broadcast ihu to %s.
\n
"
,
net
->
ifname
);
send_message
(
net
,
1
,
0xFF
,
0
,
net
->
cost
,
ones
);
send_message
(
net
,
1
,
0xFF
,
interval
,
net
->
cost
,
ones
);
}
else
{
for
(
i
=
0
;
i
<
numneighs
;
i
++
)
{
if
(
neighs
[
i
].
id
[
0
]
!=
0xFF
)
{
...
...
@@ -696,6 +700,6 @@ send_ihu(struct neighbour *neigh, struct network *net)
format_address
(
neigh
->
address
));
rxcost
=
neighbour_rxcost
(
neigh
);
send_message
(
net
,
1
,
128
,
0
,
rxcost
,
neigh
->
id
);
send_message
(
net
,
1
,
128
,
interval
,
rxcost
,
neigh
->
id
);
}
}
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