[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: |
Thu, 21 Jun 2001 11:27:31 -0400 (EDT) |
>
> That was exactly what I was intending to do. The existing bits in the
> file are actually cut and pasted from there.
>
> If you want to fix it up, be my guest.
Ok, I got something base on glibc-2.2.2 code. Need a little
testing and I'll send.
> > - sa_family_t does not exist on Neutrino, can we provide
> > a check for it in configure.in and define in config.h
> > typedef unsigned short int sa_family_t;
> > or in the appropriate file.
>
> I think Sergej (sp?) already submitted patches for that.
Yes and for the SA_LEN() too.
> > - ifr->ifr_netmask ??? Could not find a definition
> > for this ... but SIOCGIFNETMASK was defined.
> > I did not investigate, running out of cycles.
>
> This is strange. You should probably quote from the header what is there.
> Maybe they expect us to use ifr_addr (see the soalris fuile for a similar
> hack).
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.
--
au revoir, alain
----
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!
- 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 <=
- Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/21
- 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