Re: sockets APIs extensions for Host Identity Protocol

Tony Finch <dot@dotat.at> Mon, 14 May 2007 15:21 UTC

Return-path: <discuss-bounces@apps.ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1HncMU-0003hI-HH; Mon, 14 May 2007 11:21:22 -0400
Received: from discuss by megatron.ietf.org with local (Exim 4.43) id 1HnbsF-0000Es-95 for discuss-confirm+ok@megatron.ietf.org; Mon, 14 May 2007 10:50:07 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HnbsE-0000Ek-Sg for discuss@apps.ietf.org; Mon, 14 May 2007 10:50:06 -0400
Received: from ppsw-2.csi.cam.ac.uk ([131.111.8.132]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HnbsC-0005Te-JQ for discuss@apps.ietf.org; Mon, 14 May 2007 10:50:06 -0400
X-Cam-SpamDetails: Not scanned
X-Cam-AntiVirus: No virus found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-1.csi.cam.ac.uk ([131.111.8.51]:43073) by ppsw-2.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.152]:25) with esmtpa (EXTERNAL:fanf2) id 1Hnbs7-0001lM-8Y (Exim 4.63) (return-path <fanf2@hermes.cam.ac.uk>); Mon, 14 May 2007 15:49:59 +0100
Received: from fanf2 (helo=localhost) by hermes-1.csi.cam.ac.uk (hermes.cam.ac.uk) with local-esmtp id 1Hnbs7-0004GE-Jc (Exim 4.54) (return-path <fanf2@hermes.cam.ac.uk>); Mon, 14 May 2007 15:49:59 +0100
Date: Mon, 14 May 2007 15:49:59 +0100
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-1.csi.cam.ac.uk
To: Keith Moore <moore@cs.utk.edu>
Subject: Re: sockets APIs extensions for Host Identity Protocol
In-Reply-To: <464870A4.7080801@cs.utk.edu>
Message-ID: <Pine.LNX.4.64.0705141545590.26169@hermes-1.csi.cam.ac.uk>
References: <Pine.SOL.4.64.0705041801060.14418@kekkonen.cs.hut.fi> <Pine.LNX.4.64.0705091449360.26169@hermes-1.csi.cam.ac.uk> <4641D94C.9070304@cs.utk.edu> <Pine.SOL.4.64.0705102013550.10049@kekkonen.cs.hut.fi> <46436B10.5090706@cs.utk.edu> <Pine.SOL.4.64.0705102159020.10049@kekkonen.cs.hut.fi> <4643F873.3000501@cs.utk.edu> <Pine.SOL.4.64.0705110851440.24038@kekkonen.cs.hut.fi> <46442588.7020405@cs.utk.edu> <Pine.SOL.4.64.0705111344130.16213@kekkonen.cs.hut.fi> <4644779F.60805@cs.utk.edu> <Pine.SOL.4.64.0705111801430.8816@kekkonen.cs.hut.fi> <4644CD76.10900@cs.utk.edu> <Pine.SOL.4.64.0705112330070.8816@kekkonen.cs.hut.fi> <4644D90B.1020304@cs.utk.edu> <Pine.SOL.4.64.0705120006150.8816@kekkonen.cs.hut.fi> <200705122107.RAA01505@Sparkle.Rodents.Montreal.QC.CA> <Pine.SOL.4.64.0705130022380.27730@kekkonen.cs.hut.fi> <200705122150.RAA01766@Sparkle.Rodents.Montreal.QC.CA> <Pine.SOL.4.64.0705132006150.17713@kekkonen.cs.hut. fi> <464870A4.7080801@cs.utk.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Score: 0.0 (/)
X-Scan-Signature: de4f315c9369b71d7dd5909b42224370
X-Mailman-Approved-At: Mon, 14 May 2007 11:21:19 -0400
Cc: der Mouse <mouse@Rodents.Montreal.QC.CA>, discuss@apps.ietf.org
X-BeenThere: discuss@apps.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: general discussion of application-layer protocols <discuss.apps.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=unsubscribe>
List-Post: <mailto:discuss@apps.ietf.org>
List-Help: <mailto:discuss-request@apps.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=subscribe>
Errors-To: discuss-bounces@apps.ietf.org

On Mon, 14 May 2007, Keith Moore wrote:
>
> however, you might probably move the location of the length field, leave
> sa_family where it is, put a "must be zero" field in its place, and have
> the kernel code distinguish between old and new sockaddr structures by
> looking at sa_family.

That has already been done for the 4.3BSD -> 4.4BSD sockets API changes.
The sockaddr was originally designed to have an external length (as you
can see in connect() and other calls) but 4.4BSD messed this up by moving
to an embedded length field.

Tony.
-- 
f.a.n.finch  <dot@dotat.at>  http://dotat.at/
TYNE DOGGER: CYCLONIC 4 OR 5, OCCASIONALLY 6, BECOMING VARIABLE 3. MODERATE OR
ROUGH. RAIN OR SHOWERS. MODERATE OR GOOD.