[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Portable way to get my NICs' IPs

Is there a portable way to

1) get a list of all my NICs (eth0, eth1, ath0, whatever);
2) get all their IPs?

For some reason I'm having a hard time figuring this out.
And I need it to run across Gentoo, Debian, FreeBSD and
others, so it needs to be portable. I assume there's some
POSIX-approved way to do this, right?

Stephen R. Laniel
+(617) 308-5571
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature

Reply to: