Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2004 19:50:32 +0300
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Max Laier <max@love2party.net>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: in.c autoadding prefix route
Message-ID:  <1100710232.47346.5.camel@localhost>
In-Reply-To: <200411112124.12616.max@love2party.net>
References:  <200411112124.12616.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
=F7 =DE=D4, 11/11/2004 =D7 21:24 +0100, Max Laier =D0=C9=DB=C5=D4:=20
> All,
>=20
> I know I have sent this a couple of times before, but never got anywhere.=
 This=20
> time I am set to commit!
>=20
> The attached patch (http://people.freebsd.org/~mlaier/in.c.patch) derived=
 from=20
> WIDE via OpenBSD in.c, rev 1.21 improves the handling of automatic prefix=
=20
> routes.
>=20
> Right now you can't have two legs into the same network. If you want to, =
you=20
> must give on of the interfaces a host address only (netmask /32). This wa=
y it=20
> is not possible to hand over the route if one of the interfaces is=20
> "removed" (however this is done in the special case).
>=20
> The patch allows to add more than on IPv4 address with the same prefix. I=
n the=20
> case that there is a route already, we leave it alone and add the new add=
ress=20
> without the IFA_ROUTE flag. When we remove an address later on, that has =
a=20
> route associated, we try to find an alternative address to use for the ro=
ute=20
> and hand it over.
>=20
> This is required for CARP, but should be helpful for other situations as =
well.
>=20
> Any objections?

This change actually broke one simple thing:

# ifconfig lo0 alias 10.0.16.111/32
# ping 10.0.16.111
PING 10.0.16.111 (10.0.16.111): 56 data bytes
ping: sendto: No route to host
^C
#

You should (anyway should) add routing of interface address itself to
loop-back interface, like it usually done in all other cases.

Please fix.

--=20
Vladimir B. Grebenchikov
vova@fbsd.ru



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