Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 2004 23:11:22 +0200
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Max Laier <max@love2party.net>
Cc:        net@freebsd.org
Subject:   Re: Another bug with netmasked aliases (with fix)
Message-ID:  <20041208211121.GB61146@ip.net.ua>
In-Reply-To: <200412082107.05872.max@love2party.net>
References:  <20041207145932.GA1336@ip.net.ua> <200412082107.05872.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi Max,

On Wed, Dec 08, 2004 at 09:06:58PM +0100, Max Laier wrote:
> Any reason you didn't include the following (also part
> of OpenBSD rev. 1.47)?:
> 
I developed it independently of OpenBSD, and only later
found that OpenBSD also had it, so I missed this part.
It's indeed needed.

> |       /*
> |        * make sure to set rt->rt_ifa to the interface
> |        * address we are using, otherwise we will have trouble
> |        * with source address selection.
> |        */
> |       ifa = &ia->ia_ifa;
> |       if (ifa != rt->rt_ifa) {
> |               IFAFREE(rt->rt_ifa);
> |               ifa->ifa_refcnt++;
> |               rt->rt_ifa = ifa;
> |       }
> 
> 
> Updated diff attached. Not sure if it makes any difference?
> 
Of course it does.  Without it, "ping <alias>" comes from
the main address, where it should come from <alias>.

Reviewed.  Please commit.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBt235qRfpzJluFF4RAm8QAKCPFKnIlVpJVwId9mRGj6iBYhLKoQCeIhPb
gNHjyU1iix/vGpbU8LoMPgc=
=KQw/
-----END PGP SIGNATURE-----

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