From: Michael R. <re...@eu...> - 2004-03-21 09:14:28
|
Hi there, a user just asked how to get the IP address of (any) interface. So I found out that we currently have no way to fetch the address anywhere. /proc/net/dev does not contain any IP addresses. plugin_ppp uses an ioctl() for PPP stats, but I found nothing about IP addresses there. anyone knows how to (easily) found out such things like addresses, MAC, netmask, ... all this things ifconfig reports? (I don't want to solve this using an exec 'ifconfig') bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |