summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/socket.c b/src/vppinfra/socket.c
index ef0eaaee0a3..b13675bc6f8 100644
--- a/src/vppinfra/socket.c
+++ b/src/vppinfra/socket.c
@@ -732,7 +732,7 @@ done:
#if CLIB_LINUX
if (netns_fd != -1)
{
- setns (CLONE_NEWNET, netns_fd);
+ setns (netns_fd, CLONE_NEWNET);
close (netns_fd);
}
#endif