On 08/11/2015 05:47 AM, Oliver Kiddle wrote: > Eric Cook wrote: >> I also wasn't able to find the type of tunnels mentioned in >> http://www.zsh.org/mla/workers/2007/msg00111.html that doesn't show up >> in /proc/sys/net/ipv4/conf/. Maybe at some point since then, that was >> fixed. But to avoid some kind of regression /sys/class/net/ seems usable >> for the time being. > > One example, is aliases. So if you do something like > ifconfig eth0:1 192.168.42.37 > then ifconfig will show eth0:1 while /sys/class won't. When i switched to parsing ip(8), those alias interface names were no longer being shown. So the following patch removes the linux block in the case statement, yet again. Use ifconfig, but with _call_program. If ifconfig doesn't find anything, fall back to /proc/sys/net/ipv4/conf/* and now /sys/class/net/*.