From owner-freebsd-net@FreeBSD.ORG Wed Feb 28 08:48:01 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D22316A402 for ; Wed, 28 Feb 2007 08:48:01 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by mx1.freebsd.org (Postfix) with ESMTP id 6A5B613C48D for ; Wed, 28 Feb 2007 08:48:01 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-5.cisco.com with ESMTP; 28 Feb 2007 00:48:01 -0800 X-IronPort-AV: i="4.14,228,1170662400"; d="scan'208"; a="394643287:sNHT53914828" Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id l1S8m1td019304 for ; Wed, 28 Feb 2007 00:48:01 -0800 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l1S8m1Gk025856 for ; Wed, 28 Feb 2007 00:48:01 -0800 (PST) Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Feb 2007 00:48:00 -0800 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Feb 2007 00:48:00 -0800 Message-ID: <45E541A2.4020005@cisco.com> Date: Wed, 28 Feb 2007 03:47:30 -0500 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: freebsd-net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Feb 2007 08:48:00.0679 (UTC) FILETIME=[26CD7B70:01C75B15] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1392; t=1172652481; x=1173516481; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Thinking=20about=20IPv6=20and=20DEPRECATED=20addresses |Sender:=20; bh=ag6hOXEs0k7x5ORvHTMKevVsGZOsVy27HK1BLV5qI9U=; b=MeuD4vQ+T+c/lAclfI4/7PvqQ7CcFhCf13WnlQVu5hOdiLYhuJR7k2PlF3v4ledYC6KHnwbh yYIw+CFC78IuIc7dtPZAbQuwRHvlW3GNVrKuRx5bXvT/L7117i4VmEMn; Authentication-Results: sj-dkim-2; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim2002 verified; ); Subject: Thinking about IPv6 and DEPRECATED addresses 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: Wed, 28 Feb 2007 08:48:01 -0000 All: I have been deep in the middle of breaking SCTP's dependencies on looking at ifa structures... One of the problems I have run in to is that V6 has this additional set of flags: ifa6->ia6_flags And it can have things like: IN6_IFF_DEPRECATED IN6_IFF_DETACHED IN6_IFF_ANYCAST IN6_IFF_NOTREADY Now obviously if you have a deprecated or detached address you probably do not want to use them.. nor do you want to use a "NOTREADY" since I think that means that DAD has not finished... So, I am contemplating adding to rtsock.c the ability to send these types of events up. I am thinking on adding this there for two reasons.. a) SCTP already hooks into the routing socket to get interface changes. and b) It may well be a relevant fact that if an address becomes DETACHED or non-DETACHED (etc) for a routing process to want to know about.. What do others think? If I am off in the weeds somewhere and this does not concern the routing socket I could use other methods .. including isolating the "look at the state" flags into a special place so that proper locking could be added when we actually do locking for the ifa's... of course I would prefer just not to have to look at it :-D Opinions if this is a good idea or not?? Thanks R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)