Re: [BEHAVE] (no subject)

Tom Taylor <tom.taylor.stds@gmail.com> Thu, 27 June 2013 15:35 UTC

Return-Path: <tom.taylor.stds@gmail.com>
X-Original-To: behave@ietfa.amsl.com
Delivered-To: behave@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D39F621F997F for <behave@ietfa.amsl.com>; Thu, 27 Jun 2013 08:35:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PU3pcp9JIUys for <behave@ietfa.amsl.com>; Thu, 27 Jun 2013 08:35:04 -0700 (PDT)
Received: from mail-oa0-x22b.google.com (mail-oa0-x22b.google.com [IPv6:2607:f8b0:4003:c02::22b]) by ietfa.amsl.com (Postfix) with ESMTP id 2E68021F9DCA for <behave@ietf.org>; Thu, 27 Jun 2013 08:34:57 -0700 (PDT)
Received: by mail-oa0-f43.google.com with SMTP id i7so1018986oag.2 for <behave@ietf.org>; Thu, 27 Jun 2013 08:34:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CKGVDMqGYnc0Xqr5nl1Wt+qJVIyvbL2BxLRlEomLP+U=; b=cvIxo6vzOK6htTp5PiAol2z9cvCb1Q8J8cpoJp9aRYw4FSIFjNYV5u+V3yQIjcsJvx znKXysB1HFcNO6EMrfVDCarL4Al+uNRt2QEVDWqGRC6ZyXQeS6FALOmy/nKeNY27YRgj duiVtp+5nEDmLpHbi2f0KgSj7zC63v89v/Z/0OjyISrsiCvQSo3JDVl3Y8YybLg1AO+/ JojYBDVf2fsn2IGNnrrJgonatJmSQJwfqcMbunVMxy+f0veieKPbVqSWvyH2jHS6uPWJ q+nTcBOn5Yist8z7TNhTMeGIDv52dZzymeeJchtdwJz1qNGjRWz6bis6rQ94OqkH3iPN cqtA==
X-Received: by 10.60.132.230 with SMTP id ox6mr3109011oeb.66.1372347295583; Thu, 27 Jun 2013 08:34:55 -0700 (PDT)
Received: from [192.168.1.64] ([216.254.161.150]) by mx.google.com with ESMTPSA id b7sm563749oby.5.2013.06.27.08.34.54 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 08:34:54 -0700 (PDT)
Message-ID: <51CC5B9D.1050706@gmail.com>
Date: Thu, 27 Jun 2013 11:34:53 -0400
From: Tom Taylor <tom.taylor.stds@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: Simon Perreault <simon.perreault@viagenie.ca>
References: <CB1B483277FEC94E9B58357040EE5D02325A6E93@xmb-rcd-x15.cisco.com> <2f7dce8264c8a9a72640629502a44295@cacaoweb.org> <51C1681A.5030909@viagenie.ca> <f8741fad1af1cee094de9c59408b7425@cacaoweb.org> <51C40374.8080403@viagenie.ca> <21e25b7ae1501228a67656b2fa4bc009@cacaoweb.org> <51CAA20F.4070307@viagenie.ca> <88c0ada2b8ebad078fb249ac6572fd8b@cacaoweb.org> <51CBD188.4060408@viagenie.ca> <fc3c7389e9fc7afc9201f0516de436a7@cacaoweb.org> <51CC2ED4.7090506@viagenie.ca> <4d2e082fd02ce46cd003631e8ca8eae9@cacaoweb.org> <014f01ce7341$e5416620$afc43260$@comcast.net> <c5d2c0cac921875729b4ad89a290fcf5@cacaoweb.org> <51CC52AC.8010702@viagenie.ca>
In-Reply-To: <51CC52AC.8010702@viagenie.ca>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: ietfdbh <ietfdbh@comcast.net>, behave@ietf.org, ivan@cacaoweb.org
Subject: Re: [BEHAVE] (no subject)
X-BeenThere: behave@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: mailing list of BEHAVE IETF WG <behave.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/behave>, <mailto:behave-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/behave>
List-Post: <mailto:behave@ietf.org>
List-Help: <mailto:behave-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Jun 2013 15:35:05 -0000

The POSIX.1 specification for Connect() says the following:

"If the socket has not already been bound to a local address, connect() 
shall bind it to an address which, unless the socket's address family is 
AF_UNIX, is an unused local address."

On 27/06/2013 10:56 AM, Simon Perreault wrote:
> Le 2013-06-27 16:51, ivan c a écrit :
>> This is taken from "The Open Group Base Specifications" (or informally
>> The
>> Single Unix Specification), by the IEEE.
>> Volume "System Interfaces", function "bind()":
>>
>>
>> "The bind() function shall fail if:
>>
>> [EADDRINUSE]
>>      The specified address is already in use."
>
> Unless I misunderstand, there is no call to bind() in the sample that
> you assert is prohibited by POSIX:
>
> s1 = socket(..., SOCK_DGRAM, ...);
> s2 = socket(..., SOCK_DGRAM, ...);
> connect(s1, ...);
> connect(s2, ...);
>
> About that code, I said: "The kernel is free to use the same local
> endpoint for those two sockets as long as the remote endpoint is
> different."
>
> To which you replied: "Your pseudo-code will never bind the sockets on
> the same local endpoint. It is forbidden POSIX behavior."
>
> Simon
> _______________________________________________
> Behave mailing list
> Behave@ietf.org
> https://www.ietf.org/mailman/listinfo/behave