[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to get current IP adress ?
From: John Corey <jcorey () fruity ! ath ! cx>
Date: 1999-10-03 23:10:30
[Download RAW message or body]
> > > Yes, like the ip i get when i look at ppp0 at ifconfig. But a more portable
> > > posibility !
> >
> > What's unportable with ifconfig?
>
> ifconfig on different platforms has very different looking output. There
> may not be a completley portable way to get the IP address of an
> interface, bit must every platform I've ever used has had an ioctl() (or
> similar) interface to get that kind of information.
>
How about breaking open the sources to ifconfig and see where it gets
the IP from?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic