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: Mon, 4 Jun 2001 10:53:48 -0400 (EDT)

> 
> Here are some minor fixes for the package. I have finally made
> ifconfig work on Solaris. It was tested on following platforms:
> 
>        SunOS <> 5.8 Generic sun4u sparc SUNW,Ultra-5_10
>        SunOS <> 5.7 Generic i86pc i386 i86pc

Cool.

> Some notes: I had to unconditionally add if_index.c to the build
> since the generic if_nameindex function does not return any
> information about interface aliases, e.g. elxl2:0. I can't propose
> any reliable way to check for this in configure.in, so maybe we'd
> be better off providing the replacement unconditionally...
> 
> By the way, what's <stdint.h>? It wasn't found on any system I have
> access to (Solaris, SunOS, GNU/Linux, FreeBSD). Was it a typo?

<stdint.h> is part of C99 now, the "older" systems will use
something like <inttypes.h> and <limits.h>.
If it is important to have we should be checking for it in configure.in
AC_CHECK_HEADERS(stdint.h inttypes.h)
And coverthings with the appropriate
HAVE_STDINT_H
HAVE_INTTYPES_H

But on most system, it is sometimes suck in indirectly by
calling <sys/types.h>

> 
> Another question regarding ifconfig: is it planned to add the up/down
> functionality? For example, the standard way to put an interface down
> was:
> 
>       ifconfig en0 down
> 
> In case of GNU ifconfig it would be something like
> 
>       ifconfig --interface en0 --flags down
> 
> I suppose it would be very useful.
> 
> OK, so here goes the patch:
> 
> ChangeLog:

I will let Marcus comment on it.
He is responsive when not swamp by University work.
Ping me in a few days, if no anwser.

--
alain




reply via email to

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