From owner-freebsd-stable@FreeBSD.ORG Tue Nov 19 20:36:45 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B6915D58; Tue, 19 Nov 2013 20:36:45 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2EE332A7B; Tue, 19 Nov 2013 20:36:45 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id p61so3545935wes.22 for ; Tue, 19 Nov 2013 12:36:43 -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=h3G8NjPQUZTP24TzVKuMC5JhRoIuOo8pTtwKdE7t+3g=; b=06hTKn9MkblFUaM3Uaa7Kd2DTZLzyoqtM6jm2OxZr8i3200Arpu0DVKxAa56MMC+cy xwa9kKC1RJ8a6Aa25RZ/bkd0mcH31kaGmJB3jfGNOD9990j5gIAAakInJLoUq9wlMXPq PWwoJykfyMOtJzUMnhEA8toqGqPHzHGq9emzRLV49ghWtWaW/0uq8ySxNE0eCbjQrcOk p41HuxRt9qSEV++e0iPigXP0Wca7+UpslKzpsn0StvO+rCvNn72THwqfKRNgTl1SHEes xq6ieOvESsmHF2X032pzO6c6hPX9EMb5lrEFMhqHVrsUwRXbg+Hb5e86jMBXzL6oXaNm GGNQ== MIME-Version: 1.0 X-Received: by 10.180.185.242 with SMTP id ff18mr22676243wic.44.1384893403424; Tue, 19 Nov 2013 12:36:43 -0800 (PST) Received: by 10.216.91.144 with HTTP; Tue, 19 Nov 2013 12:36:43 -0800 (PST) In-Reply-To: References: Date: Tue, 19 Nov 2013 22:36:43 +0200 Message-ID: Subject: Re: ipfw table add problem From: =?ISO-8859-1?Q?=D6zkan_KIRIK?= To: Andreas Nilsson 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:36:45 -0000 Hi, On Tue, Nov 19, 2013 at 10:22 PM, Andreas Nilsson wrote= : > > > > On Tue, Nov 19, 2013 at 8:55 PM, =D6zkan KIRIK wro= te: > >> 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 > No, i want to use this table as port list ( to use with "lookup src-port 1" ) . If you add like this, you cannot match against ports. Am I wrong? > >> #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. > Please dont leave spaces between 0 and 1. > >> #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. > Thank you > >> >> 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 > Best regards, Ozkan.