From owner-freebsd-hackers@freebsd.org Mon Aug 21 04:44:05 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B51DDE7714 for ; Mon, 21 Aug 2017 04:44:05 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omc-2.server.virginmedia.net (know-smtprelay-omc-2.server.virginmedia.net [80.0.253.66]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 01DD18490B for ; Mon, 21 Aug 2017 04:44:04 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.5] ([86.10.211.13]) by know-smtprelay-2-imp with bizsmtp id zgir1v0040HtmFq01girjN; Mon, 21 Aug 2017 05:42:51 +0100 X-Originating-IP: [86.10.211.13] X-Authenticated-User: J.deBoynePollard-newsgroups@NTLWorld.COM X-Spam: 0 X-Authority: v=2.1 cv=ELn7qAtC c=1 sm=1 tr=0 a=SB7hr1IvJSWWr45F2gQiKw==:117 a=SB7hr1IvJSWWr45F2gQiKw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=eG1FbsFRfBOjMoeD4h0A:9 a=QEXdDO2ut3YA:10 To: FreeBSD Hackers From: Jonathan de Boyne Pollard Subject: Re: `ifconfig` patch to resolve IPv6 scope names Message-ID: <598333dc-dd80-af14-98b9-0ee7b4eea6e9@NTLWorld.COM> Date: Mon, 21 Aug 2017 05:42:51 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 04:44:05 -0000 raichoo: > + switch (__IPV6_ADDR_MC_SCOPE(addr)) { > > + case __IPV6_ADDR_SCOPE_NODELOCAL: > I recommend instead using IN6_IS_ADDR_MC_NODELOCAL() and its ilk from netinet/in.h . They are defined by the SUS.