From owner-freebsd-net@FreeBSD.ORG Thu Aug 14 13:05:12 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BE29E740; Thu, 14 Aug 2014 13:05:12 +0000 (UTC) Received: from relay.mailchannels.net (si-002-i47.relay.mailchannels.net [184.154.112.221]) by mx1.freebsd.org (Postfix) with ESMTP id 4AC622471; Thu, 14 Aug 2014 13:05:06 +0000 (UTC) X-Sender-Id: totalchoicehosting|x-authuser|lee@dilkie.com Received: from data.snhdns.com (ip-10-236-1-24.us-west-2.compute.internal [10.236.1.24]) by relay.mailchannels.net (Postfix) with ESMTPA id 2C393120101; Thu, 14 Aug 2014 12:46:48 +0000 (UTC) X-Sender-Id: totalchoicehosting|x-authuser|lee@dilkie.com Received: from data.snhdns.com (data.snhdns.com [10.253.92.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.2.12); Thu, 14 Aug 2014 12:46:50 GMT X-MC-Relay: Good X-MailChannels-SenderId: totalchoicehosting|x-authuser|lee@dilkie.com X-MailChannels-Auth-Id: totalchoicehosting X-MC-Ingress-Time: 1408020410499 Received: from [142.46.160.218] (port=51123 helo=[192.168.51.11]) by data.snhdns.com with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XHuQY-0002l2-9M; Thu, 14 Aug 2014 08:46:46 -0400 Message-ID: <53ECAFB9.50507@dilkie.com> Date: Thu, 14 Aug 2014 08:46:49 -0400 From: Lee Dilkie User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Willem Jan Withagen , Luigi Rizzo , "Alexander V. Chernikov" Subject: Re: [CFT] new tables for ipfw References: <53EBC687.9050503@yandex-team.ru> <53EC880B.3020903@yandex-team.ru> <53EC960A.1030603@yandex-team.ru> <53ECA6B2.8010003@digiware.nl> In-Reply-To: <53ECA6B2.8010003@digiware.nl> X-AuthUser: lee@dilkie.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" , Luigi Rizzo , "Andrey V. Elsukov" , freebsd-ipfw X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 13:05:12 -0000 On 8/14/2014 08:08, Willem Jan Withagen wrote: > I've found the notation ipnr:something rather frustrating when using > ipv6 addresses. Sort of like typing a ipv6 address in a browser, the > last :xx is always interpreted as portnumber, UNLESS you wrap it in []'s. > compare > 2001:4cb8:3:1::1 > 2001:4cb8:3:1::1:80 > [2001:4cb8:3:1::1]:80 > The first and the last are the same host but a different port, the > middle one is just a different host. > > Could/should we do the same in ipfw? the first and second forms are valid, but as ipv6 addresses *with no port*, The third is an ipv6 address with a port. If the intent of the second form is an address and port, it will not be parsed that way by standard parsers and violates the ivp6 addressing rfc's. -lee