Re: sockets APIs extensions for Host Identity Protocol

Keith Moore <moore@cs.utk.edu> Mon, 14 May 2007 14:22 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 1HnbRr-0006oH-Gc; Mon, 14 May 2007 10:22:51 -0400
Received: from discuss by megatron.ietf.org with local (Exim 4.43) id 1HnbRq-0006oB-Jf for discuss-confirm+ok@megatron.ietf.org; Mon, 14 May 2007 10:22:50 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HnbRq-0006o3-9v for discuss@apps.ietf.org; Mon, 14 May 2007 10:22:50 -0400
Received: from shu.cs.utk.edu ([160.36.56.39]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HnbRp-00059k-1r for discuss@apps.ietf.org; Mon, 14 May 2007 10:22:50 -0400
Received: from localhost (localhost [127.0.0.1]) by shu.cs.utk.edu (Postfix) with ESMTP id 3E9BE1EE1A5; Mon, 14 May 2007 10:22:48 -0400 (EDT)
X-Virus-Scanned: by amavisd-new with ClamAV and SpamAssasin at cs.utk.edu
Received: from shu.cs.utk.edu ([127.0.0.1]) by localhost (shu.cs.utk.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ffiA8l0tt15N; Mon, 14 May 2007 10:22:29 -0400 (EDT)
Received: from lust.indecency.org (user-119b1dm.biz.mindspring.com [66.149.133.182]) by shu.cs.utk.edu (Postfix) with ESMTP id 17CDA1EE207; Mon, 14 May 2007 10:22:29 -0400 (EDT)
Message-ID: <464870A4.7080801@cs.utk.edu>
Date: Mon, 14 May 2007 10:22:28 -0400
From: Keith Moore <moore@cs.utk.edu>
User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326)
MIME-Version: 1.0
To: Miika Komu <miika@iki.fi>
Subject: Re: sockets APIs extensions for Host Identity Protocol
References: <Pine.SOL.4.64.0705041801060.14418@kekkonen.cs.hut.fi> <20070509121703.GA21070@nic.fr> <4641CA52.70504@cs.utk.edu> <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>
In-Reply-To: <Pine.SOL.4.64.0705132006150.17713@kekkonen.cs.hut.fi>
X-Enigmail-Version: 0.95.0
OpenPGP: id=E1473978
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: ea4ac80f790299f943f0a53be7e1a21a
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

have to agree - simply making the length field bigger would break
compatibility for binary object files.

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.

Keith
>> Just change sa_len, sin_len, sin6_len, sun_len, etc, to short instead
>> of char.  (You may want to rearrange the element order for better
>> packing, but that's not essential, just helpful.)
>>
>>> I think it will raise all sorts of backwards compatibility problems.
>>
>> Only if you expect to recompile only part of the world.  There might be
>> code lurking that "knows" those fields max out at 255, but I'd say it's
>> already broken.
>
> Not all of the applications are open source. This change would break
> binary applications which is not very nice. The change would affect
> all sockets, not just HIP based sockets.
>
>> When (if) it comes to releasing OSes with the new _len fields, it gets
>> a little more interesting, but I'd just version the affected calls and
>> ignore the issue.
>
> I don't think that storing of 1 vs. N locators justifies this kind of
> a backwards incompatibility change. It is also a huge deployment barrier.
>