Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
60c20c6e
Unverified
Commit
60c20c6e
authored
Apr 19, 2019
by
Stéphane Graber
Committed by
GitHub
Apr 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2945 from brauner/2019-04-19/netns_getifaddrs_adapt_to_kernel_changes
netns_getifaddrs: adapt to kernel changes
parents
e12b27e5
c8ca5a43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
netns_ifaddrs.c
src/include/netns_ifaddrs.c
+1
-1
macro.h
src/lxc/macro.h
+2
-2
No files found.
src/include/netns_ifaddrs.c
View file @
60c20c6e
...
@@ -468,7 +468,7 @@ static int __rtnl_enumerate(int link_af, int addr_af, __s32 netns_id,
...
@@ -468,7 +468,7 @@ static int __rtnl_enumerate(int link_af, int addr_af, __s32 netns_id,
if
(
fd
<
0
)
if
(
fd
<
0
)
return
-
1
;
return
-
1
;
r
=
setsockopt
(
fd
,
SOL_NETLINK
,
NETLINK_
DUMP
_STRICT_CHK
,
&
(
int
){
1
},
r
=
setsockopt
(
fd
,
SOL_NETLINK
,
NETLINK_
GET
_STRICT_CHK
,
&
(
int
){
1
},
sizeof
(
int
));
sizeof
(
int
));
if
(
r
<
0
&&
netns_id
>=
0
)
{
if
(
r
<
0
&&
netns_id
>=
0
)
{
close
(
fd
);
close
(
fd
);
...
...
src/lxc/macro.h
View file @
60c20c6e
...
@@ -240,8 +240,8 @@ extern int __build_bug_on_failed;
...
@@ -240,8 +240,8 @@ extern int __build_bug_on_failed;
#define prctl_arg(x) ((unsigned long)x)
#define prctl_arg(x) ((unsigned long)x)
/* networking */
/* networking */
#ifndef NETLINK_
DUMP
_STRICT_CHK
#ifndef NETLINK_
GET
_STRICT_CHK
#define NETLINK_
DUMP
_STRICT_CHK 12
#define NETLINK_
GET
_STRICT_CHK 12
#endif
#endif
#ifndef SOL_NETLINK
#ifndef SOL_NETLINK
...
...
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