[Top][All Lists]
[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
- 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, 2001/06/21
- Re: ifconfig and some minor fixes.,
Alain Magloire <=
- 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
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/20