vppinfra: fix setns typo 03/39503/2
authorArtem Glazychev <artem.glazychev@xored.com>
Thu, 7 Sep 2023 07:16:56 +0000 (14:16 +0700)
committerDamjan Marion <dmarion@0xa5.net>
Wed, 13 Sep 2023 12:15:17 +0000 (12:15 +0000)
Type: fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Change-Id: Ib8eb70336956bc2e8d0454f3c1f2c62ec98cb009

src/vppinfra/socket.c

index ef0eaae..b13675b 100644 (file)
@@ -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