Can't you use an ioctl() call for this?

Mark

On Tue, 23 Mar 1999, Pauline Middelink wrote:

> Date: Tue, 23 Mar 1999 09:28:18 +0100
> From: Pauline Middelink <[EMAIL PROTECTED]>
> To: unlisted-recipients:  ;
> Cc: [EMAIL PROTECTED]
> Subject: Re: getting ip address from device name
> 
> Chuck Gadd wrote:
> [snipped]
> > ISP_IP=`ifconfig ppp0 |grep 'inet addr'| awk '{print $2}'|sed -e "s/addr\://"`
> > echo $ISP_IP
> 
> Please! don't go suggesting that we have to run scripts in C/C++ to get
> this kind of information! the overhead is staggering!
> 
>     Met vriendelijke groet,
>         Pauline Middelink
> --
> PGP Key fingerprint = DE 6B D0 D9 19 AD A7 A0  58 A3 06 9D B6 34 39 E2
> For more details look at my website http://www.polyware.nl/~middelin
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 

--
Mark Riehl
The MITRE Corporation
[EMAIL PROTECTED]
(732) 389-6752

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to