In article <27722468040917013838317e55@mail.gmail.com> you wrote: > But for ioctl() system call a socket descriptor is needed and also the > struct ifreq structure has to have the name of the interface in name > of the structure. Yes, just look in the net-tools source, there you can see. (However this is a pretty bloated beast and you might better look into smaller tools). Besides: maybe you want to use netlink, or it is enough for you to read the /proc/net/ files. Greetings Bernd -- eckes privat - http://www.eckes.org/ Project Freefire - http://www.freefire.org/ - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html