Re: [Anima-bootstrap] Anima bootstrap: discover protocol multicast notes
Brian E Carpenter <brian.e.carpenter@gmail.com> Sun, 12 February 2017 22:20 UTC
Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima-bootstrap@ietfa.amsl.com
Delivered-To: anima-bootstrap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3691D126BF6 for <anima-bootstrap@ietfa.amsl.com>; Sun, 12 Feb 2017 14:20:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LfxWpKk_r4KZ for <anima-bootstrap@ietfa.amsl.com>; Sun, 12 Feb 2017 14:20:49 -0800 (PST)
Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B4B0C128BA2 for <anima-bootstrap@ietf.org>; Sun, 12 Feb 2017 14:20:49 -0800 (PST)
Received: by mail-pg0-x243.google.com with SMTP id 75so7928444pgf.3 for <anima-bootstrap@ietf.org>; Sun, 12 Feb 2017 14:20:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=kyBVQR0gzRLtrYNzQO8IfnQcaMIyY4SYXAtIfvyuDFs=; b=R60WfGganCJK2kYwVWIfKjZpHVrfE7/2o4exoFjmzzphJtQ/xUQkyX3OOjP2+9o+lL UjwsuBBjHmhFsWjEG2ICjH6qNreg0xG0iv8Q1oy5BPv4LPKHkIlq+AXvaQ6DZrfUlgaP 7HPBC8eyKeVXfeX68+G3WeXQTmFkY9JL5nvquZ6cMeEaDXk3B8/MOSOWu2QyO4vWYk0c F+dUq1PBjR7Py/rp9MMNJWxWvZmhbtmlW2ug5dkhzWyEaFyUDEkszbyyFmF54wVXS50I Sd+yYE9ATjAIVjteVnl23VcAiRsLbkmpTxeoRSW9pC8h1QrTxMSWYkN7Ft4BHVFSfOjV tydw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=kyBVQR0gzRLtrYNzQO8IfnQcaMIyY4SYXAtIfvyuDFs=; b=rLjF0b2C+wu1Yd1vq7q/pc0SX7CfuaK3vBR1xDjHi4GGEgnKPpi22aAwAZmyaSwEgz AWadS7HCB20P1/wtXNfV1JBNbNpOq0PBZQiJSJ0uKTlC25hhWcZWUwzjEEOEbD8LFF8U JmHjAAazkjAgz2eMu2s7EcCP78j/Mn1eHTDL3VLQDoY7aE4RrQfWpN3UR22cqttIywKF LSRlH38eQlStOjvQqTtDVMYHlI5cdMzOcyZzo7UUWbbg0h6FvKHaJtRQW+0yNNuHbG0R xdKOK8Tim0YnjHjg1u/3qkEXxuEtqwa6hvJ1SYFWJly8/f0Fy9WqxqdNU5qVIttxBbGn NcFA==
X-Gm-Message-State: AMke39kNS6wCYFthLoXyF5COM4u8HeA+wV57mv4rpaysWRXSdhhJrhFGRTNP1l6+Gn+eUA==
X-Received: by 10.84.233.136 with SMTP id l8mr25899508plk.169.1486938049036; Sun, 12 Feb 2017 14:20:49 -0800 (PST)
Received: from ?IPv6:2406:e007:6e60:1:28cc:dc4c:9703:6781? ([2406:e007:6e60:1:28cc:dc4c:9703:6781]) by smtp.gmail.com with ESMTPSA id w16sm16753719pgc.15.2017.02.12.14.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Feb 2017 14:20:48 -0800 (PST)
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <20170117171732.GA14606@faui40p.informatik.uni-erlangen.de> <20170117172824.GB14606@faui40p.informatik.uni-erlangen.de> <c5daca2c-2c33-ee33-3415-7ce01a49715f@gmail.com> <12728.1486936969@obiwan.sandelman.ca>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <b1491c78-3b52-c2a3-bd73-4dfa84e54483@gmail.com>
Date: Mon, 13 Feb 2017 11:20:44 +1300
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <12728.1486936969@obiwan.sandelman.ca>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima-bootstrap/v-40eCk7kyycUdls6YUMku3D-tU>
Cc: anima-bootstrap@ietf.org
Subject: Re: [Anima-bootstrap] Anima bootstrap: discover protocol multicast notes
X-BeenThere: anima-bootstrap@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Mailing list for the bootstrap design team of the ANIMA WG <anima-bootstrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima-bootstrap>, <mailto:anima-bootstrap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima-bootstrap/>
List-Post: <mailto:anima-bootstrap@ietf.org>
List-Help: <mailto:anima-bootstrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima-bootstrap>, <mailto:anima-bootstrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 12 Feb 2017 22:20:52 -0000
On 13/02/2017 11:02, Michael Richardson wrote: > > Brian E Carpenter <brian.e.carpenter@gmail.com> wrote: > >> This information is typically ignored in existing network protocol > >> stacks > >> and is also typically unavailable on the socket-API. This IMHO makes > >> it highly beneficial to > >> use a very lightweight protocol (like the subset of GRASP dedicate to > >> this) that can specifically > >> be implemented to do this security check. > > > Presumably you have to use a raw socket. I don't see any other way to get the > > destination address out of the packet. > > With recvmsg(), you can can as for IPV6_RECVPKTINFO in the auxiliary > messages in IPV6_PKTINFO. You get the destination IPv6 address as well as > the ifindex. (ifindex is pretty essential if you are receiving multicast messages) Yes, for multicast I now see that I do pick up the destination address and ifindex from recvfrom(). I haven't needed to look at that code for many months. For TCP I seem to pick it up from accept(). Brian
- [Anima-bootstrap] Anima bootstrap: discover proto… Toerless Eckert
- Re: [Anima-bootstrap] Anima bootstrap: discover p… Toerless Eckert
- Re: [Anima-bootstrap] Anima bootstrap: discover p… Brian E Carpenter
- Re: [Anima-bootstrap] Anima bootstrap: discover p… Michael Richardson
- Re: [Anima-bootstrap] Anima bootstrap: discover p… Michael Richardson
- Re: [Anima-bootstrap] Anima bootstrap: discover p… Brian E Carpenter
- Re: [Anima-bootstrap] Anima bootstrap: discover p… peter van der Stok
- [Anima-bootstrap] M_FLOOD and mDNS (was Re: Anima… Michael Richardson
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… Brian E Carpenter
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… Michael Richardson
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… peter van der Stok
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… Michael Richardson
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… Brian E Carpenter
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… peter van der Stok
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… peter van der Stok
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… Michael Richardson
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… peter van der Stok
- Re: [Anima-bootstrap] M_FLOOD and mDNS (was Re: A… Michael Richardson