Skip to content
Commit 5be76840 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin
Browse files

Fix kerndat_link_nsid() on systems with more than 10 interfaces



On a system with more than 10 network interfaces the link_nsid check
fails:

$ criu check --feature link_nsid
Warn  (criu/cr-check.c:1237): NSID isn't supported

The function kerndat_link_nsid() uses:

 nde.ifindex = 10;

This fails as there is already an interface with ifindex 10.

This patch moves the creation of the socket into the second network
namespace and the feature check succeeds.

Suggested-by: default avatarJiri Benc <jbenc@redhat.com>
Signed-off-by: default avatarAdrian Reber <areber@redhat.com>
Signed-off-by: default avatarAndrei Vagin <avagin@gmail.com>
parent d4f3c7cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment