Re: [Hipsec] draft-ietf-hip-native-api-09-pre

Miika Komu <miika.komu@hiit.fi> Mon, 24 August 2009 08:56 UTC

Return-Path: <miika.komu@hiit.fi>
X-Original-To: hipsec@core3.amsl.com
Delivered-To: hipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E876C3A6A03 for <hipsec@core3.amsl.com>; Mon, 24 Aug 2009 01:56:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BAc3FiDp9ZM2 for <hipsec@core3.amsl.com>; Mon, 24 Aug 2009 01:55:59 -0700 (PDT)
Received: from argo.otaverkko.fi (argo.otaverkko.fi [212.68.0.2]) by core3.amsl.com (Postfix) with ESMTP id CAD3F28C155 for <hipsec@ietf.org>; Mon, 24 Aug 2009 01:55:58 -0700 (PDT)
Received: from [193.167.187.26] (halko.pc.infrahip.net [193.167.187.26]) by argo.otaverkko.fi (Postfix) with ESMTP id 2057825ED0F; Mon, 24 Aug 2009 11:56:03 +0300 (EEST)
Message-ID: <4A9255A2.1010903@hiit.fi>
Date: Mon, 24 Aug 2009 11:56:02 +0300
From: Miika Komu <miika.komu@hiit.fi>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
MIME-Version: 1.0
To: "Henderson, Thomas R" <thomas.r.henderson@boeing.com>
References: <4A8DBB16.3010705@hiit.fi> <77F357662F8BFA4CA7074B0410171B6D0A8B726A@XCH-NW-5V1.nw.nos.boeing.com>
In-Reply-To: <77F357662F8BFA4CA7074B0410171B6D0A8B726A@XCH-NW-5V1.nw.nos.boeing.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: hip WG <hipsec@ietf.org>
Subject: Re: [Hipsec] draft-ietf-hip-native-api-09-pre
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: miika.komu@hiit.fi
List-Id: "This is the official IETF Mailing List for the HIP Working Group." <hipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hipsec>
List-Post: <mailto:hipsec@ietf.org>
List-Help: <mailto:hipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Aug 2009 08:56:03 -0000

Henderson, Thomas R wrote:

Hi,

>> #2 How should the socket calls react to only-hip wildcard. Currently 
>> section 4.1.1 describes:
>>
>>     With the HIP_HIT_ANY address,
>>     the underlying system allows only HIP-based data flows with the
>>     corresponding socket.  For incoming packets, the system 
>> transparently
>>     discards all other traffic arriving at the socket than 
>> HIP related.
>>     For outgoing packets, the system returns -1 in the socket call and
>>     sets errno to ECOMM when the system failed to deliver the 
>> packet over
>>     a HIP-based data channel.
> 
> I would like to suggest these changes to the above paragraph:
> 
>     With the HIP_HIT_ANY address,
>     the underlying system allows only HIP-based data flows with the
>     corresponding socket.  For incoming packets, the system
>     discards all non-HIP-related traffic arriving at the socket.
>     For outgoing packets, the system returns -1 in the socket call and
>     sets errno to an appropriate error type when the system failed to
> deliver the packet over
>     a HIP-based data channel.
> 
> rationale:
> 1) for incoming datagrams, "discards" rather than "transparently
> discards" is a policy issue that is not related to the API (e.g. whether
> a system returns some type of ICMP error is out of scope for the API
> specification)
> 2) for outgoing packets, different systems appear to specify different
> errnos under different circumstances, so it probably is too restrictive
> to specify ECOMM here.  ECOMM, for instance, does not appear to be an
> error type returned by Linux as a failure code for connect().

seems reasonable to me.