[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux-team] information sur les interfaces
"Philippe F. Legrain" wrote:
>
> Hello,
>
> Je cherche un moyen d'obtenir (dans un pgm C) le liste
> des interfaces (ppp, eth ,...) et des infos (MTU, ...)
> sur celles-ci. Est-ce qu'il y a des appels systeme
> qui permettent de faire ca indipendamment du type d'interfaces?
essayes !
#cat /proc/net/dev
pour les devices et
# cat /proc/net/route
pour les mtu
si tu vx a tt pris les appels systeme :
open(), read(), close() :)
>
> Merci!
>
> Bye
>
> Phil
--
Linux : May the sources be with you !
Alain Spineux
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/