[lkml]   [2003]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Getting interface IP addresses with proc filesystem

I proposed something along this lines but got lot of opposing remarks as I
wanted to identify a given interface as *primary*.
I think this feature is needed and we should add it to the kernel, I need
it, you need it, for sure someone else will need it.


| | Burton Samograd |
| | <kruhft@kruhft.dyndns.o|
| | rg> |
| | Sent by: |
| | linux-kernel-owner@vger|
| | |
| | |
| | |
| | 01/07/03 06:06 PM |
| | |
| |
| To: |
| cc: |
| Subject: Getting interface IP addresses with proc filesystem |
| |

Hi all,

I'm curious how one goes about getting the current IP addresses held by a
machine. I saw some rather convoluted code in qmail that shows how to do
it but
it seems like a rather difficult (and future bug ridden if the interface
changes) piece of code and was thinking that a /proc/net interface would be
easiest solution, at least on the end user side.

My thinking goes along the lines of adding a file in /proc/net called
(or something more appropriate) which gives the following type of listing:



for each of the registered interfaces on the machine. Nice, simple and
shouldn't be too hard to implement, correct? Is this type of information
already present through some other mechanism that I haven't found yet?

Thanks in advance.

burton samograd

#### C.DTF has been removed from this note on January 08, 2003 by Juan

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.025 / U:1.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site