From owner-freebsd-ports@FreeBSD.ORG Fri Dec 15 19:14:40 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 96CA416A555 for ; Fri, 15 Dec 2006 19:14:40 +0000 (UTC) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (insomnia.benzedrine.cx [62.65.145.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DD4643DEB for ; Fri, 15 Dec 2006 19:07:01 +0000 (GMT) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (dhartmei@localhost [127.0.0.1]) by insomnia.benzedrine.cx (8.13.4/8.13.4) with ESMTP id kBFJ8cY6017871 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Fri, 15 Dec 2006 20:08:38 +0100 (MET) Received: (from dhartmei@localhost) by insomnia.benzedrine.cx (8.13.4/8.12.10/Submit) id kBFJ8YPo013806; Fri, 15 Dec 2006 20:08:34 +0100 (MET) Date: Fri, 15 Dec 2006 20:08:34 +0100 From: Daniel Hartmeier To: Max Laier Message-ID: <20061215190834.GK6704@insomnia.benzedrine.cx> References: <302F75DC2739FB43B236373398A8C599299F@saturnus.intra.socruel.nu> <200612112110.25591.max@love2party.net> <200612112158.14488.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612112158.14488.max@love2party.net> User-Agent: Mutt/1.5.10i Cc: Lars Wittebrood , freebsd-ports@freebsd.org Subject: Re: Pfstat trouble, no data in database file X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 19:14:40 -0000 On Mon, Dec 11, 2006 at 09:58:08PM +0100, Max Laier wrote: > @@ -67,10 +67,8 @@ > > /* first, find out how many queues there are */ > memset(&pa, 0, sizeof(pa)); > - if (ioctl(fd, DIOCGETALTQS, &pa)) { > - fprintf(stderr, "ioctl: DIOCGETALTQS: %s\n", strerror(errno)); > - return (1); > - } > + if (ioctl(fd, DIOCGETALTQS, &pa)) > + return (0); > mnr = pa.nr; > > /* fetch each of those queues */ Fine with me. I'll include it in the next dist tarball, if you want to put that in the ports patch for the meantime, that would be great ;) Daniel