[Top][All Lists]
[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
- Re: ifconfig and some minor fixes., (continued)
- Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/04
- Re: ifconfig and some minor fixes., Sergey Poznyakoff, 2001/06/04
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/04
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/20
- Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/20
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/20
- Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/20
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/21
- Re: ifconfig and some minor fixes.,
Marcus Brinkmann <=
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/22
- Re: ifconfig and some minor fixes., Sergey Poznyakoff, 2001/06/22
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/22
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/22
- Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/23
- Re: ifconfig and some minor fixes., Sergey Poznyakoff, 2001/06/23
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/25
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/25
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/25
- Re: ifconfig and some minor fixes., Sergey Poznyakoff, 2001/06/20