Re: SIOCGIFADDR bug?

Jeffery S. Coy Jr. (jcoy@red.cscwc.pima.edu)
Mon, 17 Jun 1996 14:07:07 -0700 (MST)


On Mon, 17 Jun 1996, Zachary Roger Amsden wrote:

> The ioctl call SIOCGIFADDR, when used to get the internet addresss of an
> interface, behaves erradically.
>

i have noticed this as well. i got around it by doing the ioctl a 2nd
time. works reliably so long as you make at least 2 ioctl()s, and as
ifconfig displays, they don't both have to be the same ioctl.

jeff

---
Why Linux?  source code. POSIX. tcpip. job control. support from the authors.
drivers for most hardware.  because one terminal or process is never enough.
    forget the other O/Ss, i use Linux- the choice of a gnu generation.