bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: news about ifconfig


From: Marcus Brinkmann
Subject: Re: news about ifconfig
Date: Fri, 12 Jan 2001 20:02:27 +0100
User-agent: Mutt/1.1.4i

On Fri, Jan 12, 2001 at 10:17:43AM -0500, Alain Magloire wrote:
> Bonjour
> 
>   Cool, this sounds very promising, indeed. Poking around interface
> is very plaform dependent, did you modularize the code enough so if
> I want to do a port say to solaris I will not be entangled in a maze
> of #ifdef's.

I have not set anything in stone, it's just proof of concept for now. I will
redo most of it when complexity increases.

It's hard to avoid #ifdef's, but I will try to limit them to single places.
As an example, I have a file flags.c, which only cares about the various
IFF_ symbols used by SIOCGIFFLAGS/SIOCSIFFLAGS. The general plan is to map
symbols into string tables and test the feature at run time (this does not
mean any runtime configuration happens).

I have access to a Solaris machine with SunOS (2.5 and 2.6), and of course
Linux, the Hurd, and I will get BSD, too. I try my best to support both the
common and specifc features, but a lot of the latter will only be added later
"on demand".

> This is my only (useless) comments for now.  I'm busy working on
> GNU mailutils.  Feel free to create a new directory under inetutils/ifconfig
> Although it does not mean it will be part of any release until you feel
> confident about your code.

Thanks. I will come back to it when I have some code that doesn't keep
changing each time I look at it :)
 
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org address@hidden
Marcus Brinkmann              GNU    http://www.gnu.org    address@hidden
address@hidden
http://www.marcus-brinkmann.de



reply via email to

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