🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #1207

Re: Detectar interfaz de red

#1207
From: Iván Sánchez Ortega
Date: Mon, 13 Mar 2006 08:25
26 lines
1992 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reinoso G. wrote:

> Hombre pues la forma m�s sencilla que se me ocurre es abriendo el archivo 
> /proc/net/dev y ah� te vienen las interfaces activas.

En distribuciones con kernel 2.6 tambi�n puedes usar /sys/class/net/eth*

- -- 
- ----------------------------------
Iv�n S�nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

http://acm.asoc.fi.upm.es/~mr/ 
Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.5.0, and PHP
5.1.2-1 generating this signature.
Uptime: 09:22:59 up 2 days, 12:23,  1 user,  load average: 0.89, 0.61, 0.38

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEFSxo3jcQ2mg3Pc8RAtuEAJ9xvUXFyUnKDk3uOrOKkbNIrFnr9QCfdw+8
lLE+k2E2dyb+oC69CrVUeqA=
=7n5e
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <7tmfe3-8tc.ln1@blackspark.escomposlinux.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.antakira.com!cagarruta.escomposlinux.org!hercules.escomposlinux.org!escomposlinux.org!blackspark.escomposlinux.org!news
References: <Nl2Rf.795970$kp.5601414@telenews.teleline.es> <slrne19dsk.aq2.reinoso@EA4BAO.PLLANO.ESP.EU>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,aec735b8789e7464
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.antakira.com!cagarruta.escomposlinux.org!hercules.escomposlinux.org!escomposlinux.org!blackspark.escomposlinux.org!news
From: Iván Sánchez Ortega <i.punto.sanchez--@rroba--mirame.punto.net>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Detectar interfaz de red
Date: Mon, 13 Mar 2006 09:25:08 +0100
Organization: Mírame Internet Resources and Media Engineering, S.L.
Lines: 26
Message-ID: <7tmfe3-8tc.ln1@blackspark.escomposlinux.org>
References: <Nl2Rf.795970$kp.5601414@telenews.teleline.es> <slrne19dsk.aq2.reinoso@EA4BAO.PLLANO.ESP.EU>
NNTP-Posting-Host: 80-103-120-249.mad1.adsl.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit
X-Trace: hercules.cohp1 1142240862 1595 80.103.120.249 (13 Mar 2006 09:07:42 GMT)
X-Complaints-To: newsmaster@news-17.escomposlinux.org
NNTP-Posting-Date: Mon, 13 Mar 2006 09:07:42 +0000 (UTC)
User-Agent: KNode/0.10.1