[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ifconfig and some minor fixes.
From: |
Sergey Poznyakoff |
Subject: |
Re: ifconfig and some minor fixes. |
Date: |
Wed, 20 Jun 2001 19:19:00 +0300 |
> 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 ....)
<..snip..>
> - 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.
Actually it is taken care of in the if_index.c patch that I
sent with the message that spawned the discussion. It also
implements if_nameindex() :^)
> - 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.
This patch will handle it, I guess:
Index: configure.in
===================================================================
RCS file: /cvs/inetutils/configure.in,v
retrieving revision 1.89
diff -p -u -w -b -r1.89 configure.in
--- configure.in 2001/06/19 15:10:43 1.89
+++ configure.in 2001/06/20 16:11:32
@@ -463,6 +465,11 @@ if test "$ac_cv_header_utmpx_h" = yes; t
IU_CHECK_STRUCT_FIELD(utmpx, ut_tv, [#include <utmpx.h>])
fi
+IU_CHECK_STRUCT_FIELD(ifreq,
+ ifr_index,
+ [#include <sys/socket.h>
+ #include <net/if.h>])
+
# See if the system has strerror, and replace it if not
AC_CHECK_FUNC(strerror, , LIBOBJS="$LIBOBJS strerror.o")
if test "$ac_cv_func_strerror" = no; then
@@ -525,6 +532,16 @@ IU_CHECK_TYPE(sig_atomic_t,
#include <signal.h> ],
:, AC_DEFINE(sig_atomic_t, int))
+
+IU_CHECK_TYPE(sa_family_t,
+ [
+ #include <sys/types.h>
+ #ifdef HAVE_SOCKET_H
+ #include <socket.h>
+ #endif
+ #include <sys/socket.h> ],
+ :, AC_DEFINE(sa_family_t, unsigned int))
+
# See if the __PROGNAME variable is defined, otherwise use our own.
AC_CHECK_FUNC(__progname,
AC_DEFINE(HAVE___PROGNAME),
Cheers,
Sergey
- Re: ifconfig and some minor fixes., (continued)
- 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 <=
- Re: ifconfig and some minor fixes., Alain Magloire, 2001/06/20
Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/04
Re: ifconfig and some minor fixes., Sergey Poznyakoff, 2001/06/05
Re: ifconfig and some minor fixes., Marcus Brinkmann, 2001/06/25