Re: Another bug with netmasked aliases (with fix)
From: Ruslan Ermilov (ru_at_freebsd.org)
Date: 12/08/04
- Previous message: gnn_at_freebsd.org: "Re: the correct ipv6 behavior for interfaces with gif tunnel on them"
- In reply to: Max Laier: "Re: Another bug with netmasked aliases (with fix)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Dec 2004 23:11:22 +0200 To: Max Laier <max@love2party.net>
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
- application/pgp-signature attachment: stored
- Previous message: gnn_at_freebsd.org: "Re: the correct ipv6 behavior for interfaces with gif tunnel on them"
- In reply to: Max Laier: "Re: Another bug with netmasked aliases (with fix)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|