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
1717 NETNSA_PID,
1818 NETNSA_FD,
1919 NETNSA_TARGET_NSID,
20+ NETNSA_CURRENT_NSID,
2021 __NETNSA_MAX,
2122 };
2223