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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -17,6 +17,7 @@ enum { · 16 unmodified lines | ||
| 17 | 17 | NETNSA_PID, |
| 18 | 18 | NETNSA_FD, |
| 19 | 19 | NETNSA_TARGET_NSID, |
| 20 | + NETNSA_CURRENT_NSID, | |
| 20 | 21 | __NETNSA_MAX, |
| 21 | 22 | }; |
| 22 | 23 | |