From owner-freebsd-net@FreeBSD.ORG Fri Sep 24 03:32:12 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B41C106566B for ; Fri, 24 Sep 2010 03:32:12 +0000 (UTC) (envelope-from loki.fab@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id CEFD28FC0C for ; Fri, 24 Sep 2010 03:32:11 +0000 (UTC) Received: by ywt2 with SMTP id 2so1032586ywt.13 for ; Thu, 23 Sep 2010 20:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=CHAc4bSdbTLPvV2XdGiUC+JcHLt59xBlxcGsHDay80Q=; b=hvdxPcCb4KcFmUsgG0WCU5X15ZdhgOyDrROBZPRzz32NiTcCqAKkrz0A4Wq9ALZvbW IBO2d72/doP1G///bh+hO/ENfAQcVOzsXAADW3oHneY8u/7VkDhzkVZuu8Zla2ZBuYyj WhKeofs3vVeKP3r2NeYY3pHWs7bePB3lnT3rU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gOGONXh+XJporFj9i0nSioCnau9aN/SHqQz/Oz4BXl/UE94ZGlPWJPuyDbImXuviQm lgpBoxwxszS91V/7pOeDMewt2ibIr39q/VaN/4Shl7WPPpACSWpCDodwBosIw37K3dhm Ju33VLqoewpuDQe5ZksEhRXWyjQOlGMHI0tdo= MIME-Version: 1.0 Received: by 10.101.26.21 with SMTP id d21mr3106223anj.177.1285297721602; Thu, 23 Sep 2010 20:08:41 -0700 (PDT) Received: by 10.101.67.6 with HTTP; Thu, 23 Sep 2010 20:08:41 -0700 (PDT) In-Reply-To: <20100924.011518.142217958.hrs@allbsd.org> References: <20100923.053236.231630719.hrs@allbsd.org> <20100924.011518.142217958.hrs@allbsd.org> Date: Fri, 24 Sep 2010 11:08:41 +0800 Message-ID: From: Ondoy To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Call for testers: RFC 5569 (6rd) support in stf(4) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 03:32:12 -0000 Hello Hiroki, This is great. I've been looking at 6rd including the srd stuff from http://bougaidenpa.org/masakazu/archives/54 (which I guess you also got wind of). I haven't tried your patch yet but I need some clarifications. RFC 5969 has the following elements for 6rd configuration: IPv4MaskLen, 6rdPrefix, 6rdPrefixLen, 6rdBRIPv4Address. >From your example, I think the following takes care of 6rdPrefix and 6rdPrefixLen: # ifconfig stf0 inet6 2001:db8:c000:0202::/32 How can we configure the IPv4MaskLen and 6rdBRIPv4Address? I suspect IPv4MaskLen is fixed at zero (use all 32 bits) in this patch.(?) As I understand from the specs, this can be variable. It seems that at the CE, the IPv4 address of the BR is automatically calculated from the dst/src IPv6 address. But what if the embedded IPv4 address is not the whole 32 bits (IPv4MaskLen > 0)? Also, you mentioned that prefixlen of stf is from 0 to 32. Is this the same as 6rdPrefixLen? I think 6rdPrefixLen can be more than 32. Lastly, I'm a bit confused with the IPv6 default route at the CE (set to 2001:db8:c000:0201::1) since there's supposed to be no IPv6 connection between the CE and the BR, only IPv4. Regards, Ondoy On Fri, Sep 24, 2010 at 12:15 AM, Hiroki Sato wrote: > Hiroki Sato wrote > =A0in <20100923.053236.231630719.hrs@allbsd.org>: > > hr> Hello, > hr> > hr> =A0Can anyone try a patch for adding 6rd (RFC 5569) support to stf(4)= ? > hr> =A0The patch for HEAD can be found at: > hr> > hr> =A0 http://people.allbsd.org/~hrs/FreeBSD/stf_6rd_20100921-1.diff > > =A0Grr, I noticed it broke 6to4 functionality. =A0Please use the fixed > =A0version here: > > =A0http://people.allbsd.org/~hrs/FreeBSD/stf_6rd_20100923-1.diff > > -- Hiroki >