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: Marcus Brinkmann
Subject: Re: ifconfig and some minor fixes.
Date: Thu, 21 Jun 2001 20:43:30 +0200
User-agent: Mutt/1.3.18i

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.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org address@hidden
Marcus Brinkmann              GNU    http://www.gnu.org    address@hidden
address@hidden
http://www.marcus-brinkmann.de



reply via email to

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