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: Fri, 22 Jun 2001 11:36:40 -0400 (EDT)

> 
> > 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?
> 
> I suppose we'd better check for ifr_netmask in configure.in:
> 
> IU_CHECK_STRUCT_FIELD(ifreq,
>                       ifr_netmask,
>               [#include <sys/socket.h>
>                #include <net/if.h>])
> 
> and then just do
> 
> #ifndef HAVE_IFREC_IFR_NETMASK
> # define ifr_netmask ifr_addr
> #endif
> 
> in appropriate header.

Sure. I think you did the same for ifr_index.

> 
> By the way, did the if_index patch work on Neutrino?

Niet.
- Walking ifreq to discover the interface was off, neutrino
  provided sa_len but did not have an SA_LEN() macro 8)
- We do not deal with aliases
- We do not deal with family i.e. should we
  accept only AF_INET family?
etc ..

I was going to provide a patch but got distracted by soccer 8)
we kicked Alcatel/Newbridge arss(or was it Nortel or Cisco ?)

--
alain




reply via email to

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