mirror of
git://github.com/lxc/lxc
synced 2025-08-31 04:39:34 +00:00
Merge pull request #2945 from brauner/2019-04-19/netns_getifaddrs_adapt_to_kernel_changes
netns_getifaddrs: adapt to kernel changes
This commit is contained in:
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user