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
e2182be7
Commit
e2182be7
authored
Mar 14, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do something reasonable when IPV6_JOIN_GROUP fails.
parent
be74fa44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
network.c
network.c
+5
-3
No files found.
network.c
View file @
e2182be7
...
@@ -240,7 +240,10 @@ network_up(struct network *net, int up)
...
@@ -240,7 +240,10 @@ network_up(struct network *net, int up)
(
char
*
)
&
mreq
,
sizeof
(
mreq
));
(
char
*
)
&
mreq
,
sizeof
(
mreq
));
if
(
rc
<
0
)
{
if
(
rc
<
0
)
{
perror
(
"setsockopt(IPV6_JOIN_GROUP)"
);
perror
(
"setsockopt(IPV6_JOIN_GROUP)"
);
/* But don't bail out for now. */
/* This is probably due to a missing link-local address,
so down this network, and wait until the main loop
tries to up it again. */
return
network_up
(
net
,
0
);
}
}
delay_jitter
(
&
net
->
hello_time
,
&
net
->
hello_timeout
,
delay_jitter
(
&
net
->
hello_time
,
&
net
->
hello_timeout
,
net
->
hello_interval
);
net
->
hello_interval
);
...
@@ -263,9 +266,8 @@ network_up(struct network *net, int up)
...
@@ -263,9 +266,8 @@ network_up(struct network *net, int up)
mreq
.
ipv6mr_interface
=
net
->
ifindex
;
mreq
.
ipv6mr_interface
=
net
->
ifindex
;
rc
=
setsockopt
(
protocol_socket
,
IPPROTO_IPV6
,
IPV6_LEAVE_GROUP
,
rc
=
setsockopt
(
protocol_socket
,
IPPROTO_IPV6
,
IPV6_LEAVE_GROUP
,
(
char
*
)
&
mreq
,
sizeof
(
mreq
));
(
char
*
)
&
mreq
,
sizeof
(
mreq
));
if
(
rc
<
0
)
{
if
(
rc
<
0
)
perror
(
"setsockopt(IPV6_LEAVE_GROUP)"
);
perror
(
"setsockopt(IPV6_LEAVE_GROUP)"
);
}
kernel_setup_interface
(
0
,
net
->
ifname
,
net
->
ifindex
);
kernel_setup_interface
(
0
,
net
->
ifname
,
net
->
ifindex
);
}
}
}
}
...
...
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