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: Wed, 20 Jun 2001 11:42:18 -0400 (EDT)

> 
> On Wed, Jun 20, 2001 at 12:14:47AM -0400, Alain Magloire wrote:
> > 
> > QNX/Neutrino does not provide rfc2133 if_nameindex() suite, unfortunate.
> > Can we implement something and autodetect if_nameindex() and suite.
> 
> This is what we have to do, plus an override for systems where if_nameindex
> is there but broken.  I hope to come back to this later this week (the
> changes are still pending).

Not a problem.  I can provide an implemetation if you wish.
Actually I think there is one part of glibc(sorry don't remember
the file ... wait ... let me check ....)
....
Found it !  glibc-2.2.2/sysdeps/unix/sysv/linux/if_index.c

This one should do fine after kosher to remove the glibc bits.

I got an other one also, somewhere deep in my directories, say
the word and I'll spawn(find /home/alain -name if_example.c)

And lastly I think there is one(IPV6) the late R W. Stevens did
in is book UNP V1 2 ed.  You can find the source on the web
but I have them somewhere .... spawn( find ....) .. the same drill 8-)


P.S.:  
- oops! Just Noticed if_index.c, SA_LEN() should not be use
It was part of an older draft and use on BSD.  Later it was
pull out of the draft.  You should not rely on it to exist.
And if fact it does not exist on QNX/Neutrino.

- 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.

- ifr->ifr_netmask ??? Could not find a definition
for this ... but SIOCGIFNETMASK was defined.
I did not investigate, running out of cycles.
  
--
alain




reply via email to

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