From: "Mika Penttilä" <mika.penttila@kolumbus.fi>
To: Mika Liljeberg <mika.liljeberg@welho.com>
Cc: Pekka Savola <pekkas@netcore.fi>, Andre Tomt <andre@tomt.net>,
linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: 2.4.21+ - IPv6 over IPv4 tunneling b0rked
Date: Fri, 11 Jul 2003 17:27:57 +0300 [thread overview]
Message-ID: <3F0EC96D.6080102@kolumbus.fi> (raw)
In-Reply-To: 1057930712.895.32.camel@hades
afaics, ipv6_addr_type() checks just for some rfc-specified reserved
anycast addresses, not the ones in device list. Anyway, it will surely
also bail out from the loopback test (anycast subnet router address is
ours).
--Mika
Mika Liljeberg wrote:
>On Fri, 2003-07-11 at 15:48, Mika Penttilä wrote:
>
>
>>It turns out to be the (otherwise valid) check for IFF_LOOPBACK for
>>gateway's address in ip6_route_add() that gives EINVAL for prefix::, and
>>has nothing to do with iid being 0, just a coinsidence....
>>
>>
>
>Not sure. Seems to me that ipv6_addr_type() flags the gateway address as
>anycast. In ip6_route_addr() [2.5.74] we have:
>
> if (rtmsg->rtmsg_flags & RTF_GATEWAY) {
> struct in6_addr *gw_addr;
> int gwa_type;
>
> gw_addr = &rtmsg->rtmsg_gateway;
> ipv6_addr_copy(&rt->rt6i_gateway, &rtmsg->rtmsg_gateway);
> gwa_type = ipv6_addr_type(gw_addr);
>
> if (gwa_type != (IPV6_ADDR_LINKLOCAL|IPV6_ADDR_UNICAST)) {
> struct rt6_info *grt;
>
> /* IPv6 strictly inhibits using not link-local
> addresses as nexthop address.
> Otherwise, router will not able to send redirects.
> It is very good, but in some (rare!) curcumstances
> (SIT, PtP, NBMA NOARP links) it is handy to allow
> some exceptions. --ANK
> */
> err = -EINVAL;
> if (!(gwa_type&IPV6_ADDR_UNICAST))
> goto out;
>
>Looks like it would bail out here, unless I read the code wrong. How about:
>
> if (!(gwa_type&(IPV6_ADDR_UNICAST|IPV6_ADDR_ANYCAST)))
> goto out;
>
> MikaL
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
>
next prev parent reply other threads:[~2003-07-11 14:27 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-10 15:43 2.4.21+ - IPv6 over IPv4 tunneling b0rked CaT
2003-07-10 15:55 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-10 15:58 ` CaT
2003-07-10 16:08 ` Pekka Savola
2003-07-10 16:18 ` 2.4.21+ - IPv6 over IPv4 tunneling broken YOSHIFUJI Hideaki / 吉藤英明
2003-07-10 16:19 ` Pekka Savola
2003-07-13 14:49 ` 2.4.21+ - IPv6 over IPv4 tunneling b0rked Anand Kumria
2003-07-13 16:23 ` Pekka Savola
2003-07-10 19:57 ` Mika Penttilä
2003-07-10 16:27 ` Mika Liljeberg
2003-07-10 23:39 ` CaT
2003-07-11 0:04 ` Mika Liljeberg
2003-07-11 1:49 ` Andre Tomt
2003-07-11 2:03 ` Mika Liljeberg
2003-07-11 2:03 ` 2.4.21+ - IPv6 over IPv4 tunneling broken YOSHIFUJI Hideaki / 吉藤英明
2003-07-11 4:51 ` 2.4.21+ - IPv6 over IPv4 tunneling b0rked Pekka Savola
2003-07-11 5:20 ` Mika Liljeberg
2003-07-11 5:22 ` Pekka Savola
2003-07-11 5:39 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-11 8:46 ` Pekka Savola
2003-07-11 9:04 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-11 9:39 ` Mika Penttilä
2003-07-11 10:03 ` Pekka Savola
2003-07-11 10:47 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-11 10:47 ` Pekka Savola
2003-07-11 10:59 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-11 10:59 ` Pekka Savola
2003-07-11 11:03 ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-11 11:04 ` Pekka Savola
2003-07-11 11:36 ` Mika Liljeberg
2003-07-11 11:48 ` Pekka Savola
2003-07-11 12:09 ` Mika Liljeberg
2003-07-11 12:48 ` Mika Penttilä
2003-07-11 13:38 ` Mika Liljeberg
2003-07-11 14:27 ` Mika Penttilä [this message]
2003-07-11 14:32 ` Mika Liljeberg
2003-07-11 15:16 ` Mika Penttilä
[not found] <20030710.214551.08349572.davem@redhat.com>
2003-07-14 23:49 ` kuznet
2003-07-15 6:14 ` Pekka Savola
2003-07-15 14:46 ` kuznet
2003-07-15 17:29 ` Pekka Savola
2003-07-15 23:19 ` kuznet
2003-07-16 6:03 ` Pekka Savola
2003-07-17 0:03 ` kuznet
2003-07-17 6:50 ` Pekka Savola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F0EC96D.6080102@kolumbus.fi \
--to=mika.penttila@kolumbus.fi \
--cc=andre@tomt.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.liljeberg@welho.com \
--cc=netdev@oss.sgi.com \
--cc=pekkas@netcore.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).