ucx icon indicating copy to clipboard operation
ucx copied to clipboard

UCT/TCP: Use SIOCGIFCONF ioctl when /sys/class/net is missing.

Open civodul opened this issue 4 years ago • 26 comments

What

This change provides alternative code that uses the SIOCGIFCONF ioctl to get the names of the available TCP network interfaces.

Why ?

In some cases such as isolated build environments (as found in GNU Guix), containers, or non-Linux based system, /sys is missing.

How ?

Using the old, portable SIOCGIFCONF ioctl.

It may be that the SIOCGIFCONF can in fact replace the /sys-based code since the information returned should be the same. WDYT?

civodul avatar Nov 18 '19 08:11 civodul