diff options
Diffstat (limited to 'test/zdtm/static/netns_sub.c')
-rw-r--r-- | test/zdtm/static/netns_sub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/zdtm/static/netns_sub.c b/test/zdtm/static/netns_sub.c index 6515057d8..9f77bf96b 100644 --- a/test/zdtm/static/netns_sub.c +++ b/test/zdtm/static/netns_sub.c @@ -104,6 +104,8 @@ int main(int argc, char **argv) pr_perror("unshare"); return 1; } + if (system("ip link set up dev lo")) + return 1; sk = create_socket(1); if (sk < 0) return 1; @@ -166,6 +168,8 @@ int main(int argc, char **argv) pr_perror("unshare"); return 1; } + if (system("ip link set up dev lo")) + return 1; sk = create_socket(2); if (sk < 0) return 1; |