History

netns: enable to dump full nsid translation table

Like the previous patch, the goal is to ease to convert nsids from one netns to another netns. A new attribute (NETNSA_CURRENT_NSID) is added to the kernel answer when NETNSA_TARGET_NSID is provided, thus the user can easily convert nsids.

Nicolas Dichtel committed 7 years ago

Commit 288f06a1 parent 3a4f68b2 files · +27 −6Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/net_namespace.h+1−0
@@ -17,6 +17,7 @@ enum { · 16 unmodified lines
17 NETNSA_PID,17 NETNSA_PID,
18 NETNSA_FD,18 NETNSA_FD,
19 NETNSA_TARGET_NSID,19 NETNSA_TARGET_NSID,
20 NETNSA_CURRENT_NSID,
20 __NETNSA_MAX,21 __NETNSA_MAX,
21};22};
22 23