[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
extracting interfaces and ifconfig
From: |
A.A. Serjantov |
Subject: |
extracting interfaces and ifconfig |
Date: |
Wed, 21 Feb 2001 11:59:42 +0000 (GMT) |
Hi,
(Sorry - question rather than bug!)
I am trying to extract a list of currently available (up) interfaces on a
host.
R.W. Stevens says: use SIOCGIFCONF (UNP, vol.1 p 434)
Version 1.56 of net-utils does it by reading _PATH_PROCNET_DEV
and, if failing, resorting to SIOCGIFCONF. A comment states that
SIOCGIFCONF ontly works with AF_INET sockets since 2.1.128
What is the current preferred way of doing this? Are there any hidden
secrets? I think I can cope with assuming existence of AF_INET...
Thanks in advance,
Andrei
------------------
Andrei Serjantov
Queens' College
Cambridge CB3 9ET
http://www.cl.cam.ac.uk/~aas23/
- extracting interfaces and ifconfig,
A.A. Serjantov <=