Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
73827cd3
Commit
73827cd3
authored
6 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
peerdiscovery: allow IPV6_MULTICAST_IF failure
parent
876190a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/peer_discovery.cpp
+2
-2
2 additions, 2 deletions
src/peer_discovery.cpp
with
2 additions
and
2 deletions
src/peer_discovery.cpp
+
2
−
2
View file @
73827cd3
...
...
@@ -122,8 +122,8 @@ PeerDiscovery::socketJoinMulticast(int sockfd, sa_family_t family)
ipv6_mreq
config_ipv6
;
unsigned
int
outif
=
0
;
if
(
setsockopt
(
sockfd
,
IPPROTO_IPV6
,
IPV6_MULTICAST_IF
,
&
outif
,
sizeof
(
outif
))
<
0
)
{
throw
std
::
runtime_error
(
std
::
string
(
"Bound Network Interface IPv6 Error: "
)
+
strerror
(
errno
)
)
;
if
(
setsockopt
(
sockfd
,
IPPROTO_IPV6
,
IPV6_MULTICAST_IF
,
&
outif
,
sizeof
(
outif
))
<
0
)
{
//std::cerr << "Can't assign multicast interface: " <<
strerror(errno)
<< std::endl
;
}
unsigned
int
ttl6
=
20
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment