Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #1266 > unrolled thread
| Started by | <fab@slick.airforce-one.org> |
|---|---|
| First post | 2012-04-10 09:20 +0000 |
| Last post | 2012-04-10 12:11 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.os.linux.networking
Finding the IPs of up interfaces in /proc <fab@slick.airforce-one.org> - 2012-04-10 09:20 +0000
Re: Finding the IPs of up interfaces in /proc J G Miller <miller@yoyo.ORG> - 2012-04-10 11:44 +0000
Re: Finding the IPs of up interfaces in /proc <fab@slick.airforce-one.org> - 2012-04-10 12:11 +0000
| From | <fab@slick.airforce-one.org> |
|---|---|
| Date | 2012-04-10 09:20 +0000 |
| Subject | Finding the IPs of up interfaces in /proc |
| Message-ID | <4f83fb47$0$1692$426a34cc@news.free.fr> |
Hello. I'd like to know if there is an interface in /proc that can tell me if an interface is up, and what IP it has. I'm writing an applet that uses tun0 for a VPN, and I'd like to put up a tooltip showing the IP given to tun0 after the VPN connected, or '-' if it is not connected yet. I have look in /proc/net/*, but I haven't found anything relevant. Only /proc/net/arp shows an IP, and it is my router's. Thanks! -- F. Delente
[toc] | [next] | [standalone]
| From | J G Miller <miller@yoyo.ORG> |
|---|---|
| Date | 2012-04-10 11:44 +0000 |
| Message-ID | <jm16fc$btr$3@dont-email.me> |
| In reply to | #1266 |
On Tuesday, April 10th, 2012, at 09:20:07h +0000, Fab wrote: > I have look in /proc/net/*, but I haven't found anything relevant. Try /sys/class/net instead.
[toc] | [prev] | [next] | [standalone]
| From | <fab@slick.airforce-one.org> |
|---|---|
| Date | 2012-04-10 12:11 +0000 |
| Message-ID | <4f84235a$0$19110$426a34cc@news.free.fr> |
| In reply to | #1268 |
J G Miller <miller@yoyo.org> wrote: > Try /sys/class/net instead. Yes, I looked in there too, but nothing about IP addresses... I can get the MAC address, but that's not what I want. Thanks for the help though. -- F. Delente
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.networking
csiph-web