From: Mika Liljeberg <mika.liljeberg@welho.com>
To: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: netdev@oss.sgi.com
Subject: [PATCH] IPv6: Allow 6to4 routes with SIT
Date: 12 Jul 2003 10:55:43 +0300 [thread overview]
Message-ID: <1057996543.1142.12.camel@hades> (raw)
[-- Attachment #1: Type: text/plain, Size: 337 bytes --]
Ok, I've separated out the SIT fix. A revised anycast fix will follow.
This is against 2.5.75. The patch will allow a host to set up SIT
tunnels using gateway routes to 6to4 addresses. Previously this only
worked with an IPv4-compatible address. Use of the deprecated
IPv4-compatible addresses should not be required.
Thanks,
MikaL
[-- Attachment #2: 2.5.75-sit.udiff --]
[-- Type: text/x-patch, Size: 553 bytes --]
diff -ur orig/linux-2.5.75/net/ipv6/sit.c linux-2.5.75/net/ipv6/sit.c
--- orig/linux-2.5.75/net/ipv6/sit.c 2003-07-10 23:14:48.000000000 +0300
+++ linux-2.5.75/net/ipv6/sit.c 2003-07-12 10:00:27.000000000 +0300
@@ -472,10 +472,13 @@
addr_type = ipv6_addr_type(addr6);
}
- if ((addr_type & IPV6_ADDR_COMPATv4) == 0)
- goto tx_error_icmp;
+ if (addr_type & IPV6_ADDR_COMPATv4)
+ dst = addr6->s6_addr32[3];
+ else
+ dst = try_6to4(addr6);
- dst = addr6->s6_addr32[3];
+ if (!dst)
+ goto tx_error_icmp;
}
{
reply other threads:[~2003-07-12 7:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1057996543.1142.12.camel@hades \
--to=mika.liljeberg@welho.com \
--cc=netdev@oss.sgi.com \
--cc=yoshfuji@linux-ipv6.org \
/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