From owner-freebsd-stable@FreeBSD.ORG Tue Nov 19 20:22:23 2013 Return-Path: Delivered-To: freebsd-stable@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 A24D488E; Tue, 19 Nov 2013 20:22:23 +0000 (UTC) Received: from mail-ob0-x22d.google.com (mail-ob0-x22d.google.com [IPv6:2607:f8b0:4003:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F28629A3; Tue, 19 Nov 2013 20:22:23 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id gq1so4146484obb.32 for ; Tue, 19 Nov 2013 12:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9fMG7J2TzWib9FLjAOg/mCkiFVgMsBVbtWSXaoBHpus=; b=OWzCW5iIugTDwWPvoPt0NLlOWVcBXuD0hDOnwL+SenGuDx56J+Vm0wxrWLE3ZVG78Y jFnGc6L8pAs384Nk7vu36Z2SvJkYtiDEEIO3qI3j3WzVHfcRc0NdK0y/bTKDU4o47QP6 EBzHQiyYW2GTcisK0eM4XevJ/SQ2CwctSNhRQVljDk9hp4InF8msAWeLYCqm3aPmac4Z kDNkI+Q+LwhgpBuQxfH3HecE/tu3Wz9BBHisH1Joem68THVk1lVYUXhpuNrXZawLEt9w gMqdNw30rds44dkl5AN1Bvxs1e7D6Hjv18wpu27aRhmJf2l42PTK5PbFQJ9Pnpm5oc6t KHWA== MIME-Version: 1.0 X-Received: by 10.182.87.42 with SMTP id u10mr26720115obz.22.1384892542355; Tue, 19 Nov 2013 12:22:22 -0800 (PST) Received: by 10.76.177.234 with HTTP; Tue, 19 Nov 2013 12:22:22 -0800 (PST) In-Reply-To: References: Date: Tue, 19 Nov 2013 21:22:22 +0100 Message-ID: Subject: Re: ipfw table add problem From: Andreas Nilsson To: =?ISO-8859-1?Q?=D6zkan_KIRIK?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.16 Cc: freebsd-ipfw , freebsd-stable , Luigi Rizzo X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 20:22:23 -0000 On Tue, Nov 19, 2013 at 8:55 PM, =D6zkan KIRIK wrot= e: > Hi, > > I'm using kernel FreeBSD 10.0-BETA3 #2 r257635 kernel. > I am trying to add port number to ipfw tables. But there is something > strange : > Problem is easily repeatable. > > #ipfw table 1 flush > #ipfw table 1 add 4899 > #ipfw table 1 list > ::/0 0 > Works with ipfw table 1 add 0 4899 > > #ipfw table 1 flush > #ipfw table 1 add 10.2.3.01 ( not 10.0.0.1, the last 1 has 0 as > prefix ) > #ipfw table 1 list > ::/0 0 > Did you mean ipfw table 1 add 10.2.3.0 1 ? That works for me. > > #ipfw table 1 delete ::/0 > ipfw: setsockopt(IP_FW_TABLE_XDEL): No such process > However ipfw table 1 delete 0.0.0.0/0 does. > > > I guess that, this problem is related to radix mask calculation > problem/fix. > > Is there a quick solution for this. > Best, regards, Best regards Andreas