Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2005 02:37:50 +0200
From:      Philipp Wuensche <cryx-freebsd@h3q.com>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: alias configuration in rc.conf
Message-ID:  <435443DE.6090300@h3q.com>
In-Reply-To: <20051017215309.GH15097@odin.ac.hmc.edu>
References:  <435412F7.2030906@h3q.com> <20051017215309.GH15097@odin.ac.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Brooks Davis wrote:
> 
> I don't like ipv4_ifconfig_fxp0.  I'd suggest ifconfig_fxp0_ipv4_aliases
> instead.  

Good idea, the ipv4_ifconfig was just a placeholder more ore less. But
why is there a differentiation between adding the first ipaddr. to the
interface and adding anoter one anyway?

Part of my idea (not implemented in this piece of code) was to use
ifconfig_if (or ifconfig_if_option) for interface options only and use
ipv4_ and ipv6_ifconfig_if to configure the ipaddr. of the interface.
This would make no difference between adding the first ipaddr and adding
more. Just for the record ;-).

> The ipv4_ifconfig_getargs function is slightly bogus as
> written since a default value makes no sense and that would be the wrong
> one anyway.  The implemenation also fails to match the comment though
> that's easy to fix.  I'd also not modify etc/rc.d/netif and do this from
> ifalias_up().  

I moved everything to ifalias_up() keeping the other aliasN stuff.

> Corresponding ifalias_down() support should also be added.

Done.

> Finally modifications will be needed to rc.conf(5).

Yes and /etc/defaults/rc.conf also.

Once again, I made the patch available at
http://outpost.h3q.com/patches/network.subr-range.patch

greetings,
cryx




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?435443DE.6090300>