bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ifconfig and some minor fixes.


From: Alain Magloire
Subject: Re: ifconfig and some minor fixes.
Date: Fri, 22 Jun 2001 10:43:38 -0400 (EDT)

> 
> On Thu, Jun 21, 2001 at 11:27:31AM -0400, Alain Magloire wrote:
> > Yes, some platforms do not seem to provide ifr_netmask(ifru_netmask)
> > your suggestion to fallback to ifr_addr seems good:
> > 
> > printif.c(fh_netmask):
> >     ioctl(s, SIOCGIFNETMASK, (caddr_t)&ifr)
> > 
> > netmask.sin_addr =
> >     ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr;
> > 
> > 
> > I'll see if I can come up with a patch for this.
> 
> You just put
> 
> #define ifr_netmask ifr_addr
> 
> in the system specific header file.

OK,
It's just a thought, but since they
are not standard(?) maybe we could always fall back
to ifr_addr? or provide/check the macro?

--
alain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]