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
8d056c34
Commit
8d056c34
authored
Jun 03, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 255 as the outgoing hop count.
parent
2dfddbf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
net.c
net.c
+11
-1
No files found.
net.c
View file @
8d056c34
...
@@ -36,7 +36,7 @@ babel_socket(int port)
...
@@ -36,7 +36,7 @@ babel_socket(int port)
struct
sockaddr_in6
sin6
;
struct
sockaddr_in6
sin6
;
int
s
,
rc
;
int
s
,
rc
;
int
saved_errno
;
int
saved_errno
;
int
one
=
1
,
zero
=
0
;
int
one
=
1
,
zero
=
0
,
twofiftyfive
=
255
;
s
=
socket
(
PF_INET6
,
SOCK_DGRAM
,
0
);
s
=
socket
(
PF_INET6
,
SOCK_DGRAM
,
0
);
if
(
s
<
0
)
if
(
s
<
0
)
...
@@ -58,6 +58,16 @@ babel_socket(int port)
...
@@ -58,6 +58,16 @@ babel_socket(int port)
if
(
rc
<
0
)
if
(
rc
<
0
)
goto
fail
;
goto
fail
;
rc
=
setsockopt
(
s
,
IPPROTO_IPV6
,
IPV6_UNICAST_HOPS
,
&
twofiftyfive
,
sizeof
(
twofiftyfive
));
if
(
rc
<
0
)
goto
fail
;
rc
=
setsockopt
(
s
,
IPPROTO_IPV6
,
IPV6_MULTICAST_HOPS
,
&
twofiftyfive
,
sizeof
(
twofiftyfive
));
if
(
rc
<
0
)
goto
fail
;
rc
=
fcntl
(
s
,
F_GETFL
,
0
);
rc
=
fcntl
(
s
,
F_GETFL
,
0
);
if
(
rc
<
0
)
if
(
rc
<
0
)
goto
fail
;
goto
fail
;
...
...
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