I'm not at all familiar with the net-tools source, but here's a quick proof-of-concept patch to pull the list of interface names out of /proc/net/dev (silently skipping any that don't support the SIOCGMIIPHY ioctl [lo, lxcbr0, etc.]).
===== first example ===== ./mii-tool_lp962616 enp4s0: negotiated 100baseTx-FD, link ok enp9s0: no link enp8s0: negotiated 1000baseT-FD flow-control, link ok enp6s0: negotiated 1000baseT-FD flow-control, link ok ===== second example ===== ./mii-tool_lp962616 eno1: negotiated 1000baseT-FD flow-control, link ok SIOCGMIIPHY on 'eno2' failed: Resource temporarily unavailable (Obviously one downside of /proc/net/dev is that it isn't always in alphabetical order...) ** Patch added: "mii-tool interface-name searching" https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/962616/+attachment/4696078/+files/mii-tool.c_lp962616.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962616 Title: mii-tool assumes NIC names of the form eth* when given no interface(s) as argument To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/962616/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs