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
6a712651
Commit
6a712651
authored
Oct 17, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't send messages to down networks.
parent
3c570e15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
message.c
message.c
+12
-0
No files found.
message.c
View file @
6a712651
...
...
@@ -660,6 +660,9 @@ send_hello_noupdate(struct network *net, unsigned interval)
delay_jitter
(
&
net
->
hello_time
,
&
net
->
hello_timeout
,
net
->
hello_interval
);
if
(
!
net
->
up
)
return
;
debugf
(
"Sending hello %d (%d) to %s.
\n
"
,
net
->
hello_seqno
,
interval
,
net
->
ifname
);
...
...
@@ -1091,6 +1094,9 @@ send_ihu(struct neighbour *neigh, struct network *net)
return
;
net
=
neigh
->
network
;
if
(
!
net
->
up
)
return
;
rxcost
=
neighbour_rxcost
(
neigh
);
interval
=
(
net
->
hello_interval
*
3
+
9
)
/
10
;
...
...
@@ -1167,6 +1173,9 @@ send_request(struct network *net,
if
(
!
net
||
update_net
==
net
)
flushupdates
();
if
(
!
net
->
up
)
return
;
debugf
(
"sending request to %s for %s.
\n
"
,
net
->
ifname
,
prefix
?
format_prefix
(
prefix
,
plen
)
:
"any"
);
v4
=
plen
>=
96
&&
v4mapped
(
prefix
);
...
...
@@ -1235,6 +1244,9 @@ send_multihop_request(struct network *net,
return
;
}
if
(
!
net
->
up
)
return
;
debugf
(
"Sending multi-hop request on %s for %s (%d hops).
\n
"
,
net
->
ifname
,
format_prefix
(
prefix
,
plen
),
hop_count
);
v4
=
plen
>=
96
&&
v4mapped
(
prefix
);
...
...
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