Date: Sun, 9 Feb 1997 08:27:23 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: hackers@freebsd.org Subject: How to get all ip addresses of a system ? Message-ID: <199702090727.IAA10507@labinfo.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
Hi, I was wondering, is there a system call (possibly portable to different OS's) to get all the addresses associated with a system ? Ideally, I would like something to scan the "in_ifaddr" list in the kernel. I can probably hack something using kvm_read, but would prefer a better (and more portable) way if possible. Any ideas ? Thanks Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702090727.IAA10507>