From: Andrzej O. <an...@ma...> - 2012-03-05 14:30:18
|
Heiko, Linux kernel (now 3.2.6) shows network interfaces in file /proc/net/dev not sorted, so far, but in some strange, random order. Network interfaces and tunnel pseudointerfaces are mixed. Meanwhile IPtraf builds an interface menu as well as the list of interfaces to the general statistics based on this file. If the router has a several interfaces, finding the appropriate becomes very difficult. I wrote the following patch to solve this problem, because I have on my central router several OpenVPN tunnels to office branches. So after building a list of interfaces, this list is also sorted lexicographically by name. In addition, in file /var/iptraf/iface.desc we can assign aliases and sorting keys for interfaces, in this way easily managing list. File is described in intro to patch. Regards Andrzej Odyniec |