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
72dd37ab
Unverified
Commit
72dd37ab
authored
Apr 19, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netns_getifaddrs: adapt to kernel changes
s/NETLINK_DUMP_STRICT_CHK/NETLINK_GET_STRICT_CHK/g Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
6203554b
Hide 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 @
72dd37ab
...
...
@@ -468,7 +468,7 @@ static int __rtnl_enumerate(int link_af, int addr_af, __s32 netns_id,
if
(
fd
<
0
)
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
));
if
(
r
<
0
&&
netns_id
>=
0
)
{
close
(
fd
);
...
...
src/lxc/macro.h
View file @
72dd37ab
...
...
@@ -240,8 +240,8 @@ extern int __build_bug_on_failed;
#define prctl_arg(x) ((unsigned long)x)
/* networking */
#ifndef NETLINK_
DUMP
_STRICT_CHK
#define NETLINK_
DUMP
_STRICT_CHK 12
#ifndef NETLINK_
GET
_STRICT_CHK
#define NETLINK_
GET
_STRICT_CHK 12
#endif
#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