From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 04:09:50 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 77B2416A4CF; Thu, 16 Sep 2004 04:09:50 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 17997 invoked by alias); 25 Jul 2004 22:50:40 -0000 Delivered-To: unirz@vampire.homelinux.org Received: (qmail 17994 invoked from network); 25 Jul 2004 22:50:40 -0000 Received: from mailstud.rz.uni-karlsruhe.de (129.13.185.210) by pd9e392b4.dip.t-dialin.net with SMTP; 25 Jul 2004 22:50:40 -0000 Received: from spamstud.rz.uni-karlsruhe.de (spamstud.rz.uni-karlsruhe.de [129.13.185.237]) by mailstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1Borqc-0004In-10 for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 00:52:02 +0200 Received: from localhost (exim@[127.0.0.1]) by spamstud.rz.uni-karlsruhe.de with spam-scanned (Exim 4.34 #1) id 1Borqb-0007rH-Rg for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 00:52:02 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by spamstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1Borqb-0007r6-P8 for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 00:52:01 +0200 Received: from [212.227.126.150] (helo=mxng07.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Borqb-0004v7-00 for max.laier@stud.uni-karlsruhe.de; Mon, 26 Jul 2004 00:52:01 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng07.kundenserver.de with esmtp (Exim 3.35 #1) id 1Borqb-0007m9-00 for max@love2party.net; Mon, 26 Jul 2004 00:52:01 +0200 Received: from localhost (localhost [127.0.0.1])ESMTP id CA01072C62F; Sun, 25 Jul 2004 17:25:17 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26466-64; Sun, 25 Jul 2004 17:25:17 -0500 (EST) Received: from turing (localhost [127.0.0.1])ESMTP id B0C7D72C69A; Sun, 25 Jul 2004 17:25:16 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Sun, 25 Jul 2004 17:24:58 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from localhost (localhost [127.0.0.1])ESMTP id 0FFB272C62F for ; Sun, 25 Jul 2004 17:24:57 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24908-93 for ; Sun, 25 Jul 2004 17:24:56 -0500 (EST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.189])ESMTP id 40ED772C5B6 for ; Sun, 25 Jul 2004 17:24:56 -0500 (EST) Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BorqD-0004iK-00; Mon, 26 Jul 2004 00:51:37 +0200 Received: from [217.227.146.180] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1BorqD-0008C4-00; Mon, 26 Jul 2004 00:51:37 +0200 From: Max Laier To: pf4freebsd@freelists.org User-Agent: KMail/1.6.2 References: <410426B8.2050409@bredband.net> In-Reply-To: <410426B8.2050409@bredband.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_8jDBBoy3wGQ0PLM"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407260049.32209.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 381 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: max@love2party.net Precedence: normal X-list: pf4freebsd X-Virus-Scanned: by amavisd-new at freelists.org X-Provags-Forward: max@love2party.net -> max.laier@stud.uni-karlsruhe.de X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mail6.rz.uni-karlsruhe.de X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=no version=2.61 X-Spam-Level: X-Scan-Signature: c0869f30fcb1900e6377e146dcf5af39 X-UID: 492 X-Length: 6557 X-Mailman-Approved-At: Thu, 16 Sep 2004 04:12:49 +0000 cc: Jonas Davidsson Subject: [pf4freebsd] Re: [ALTQ] DIOCGIFSPEED: Bad file descriptor X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 04:09:50 -0000 X-Original-Date: Mon, 26 Jul 2004 00:49:25 +0200 X-List-Received-Date: Thu, 16 Sep 2004 04:09:50 -0000 --Boundary-02=_8jDBBoy3wGQ0PLM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 25 July 2004 23:31, Jonas Davidsson wrote: > What does this mean? > I've patched the sources, > am running the patched kernel, > the pf_freebsd-altq-2.03 package is compiled and installed, > all pf-modules including pfaltq are loaded, > everything else about pf works great, except when i try ty do altq on > $interface. That's when it says: "pfctl: DIOCGIFSPEED: Bad file descripto= r" > I've tried this with two NICs, rl0 and xl0. Both should be supported. > The system is running FreeBSD 5.2.1-RELEASE-p9 Hmmm ... EBADF is returned by ioctl() to indicate that the passed fd is not= =20 valid (DIOCGIFSPEED returns EINVAL to indicate error) so that means that=20 somehow the reference to "/dev/pf" got scrabbled or was never setup correct= ly=20 (which would be strange when everything else works). If you are familiar with gdb, you could try to set a breakpoint in=20 "eval_pfaltq()" and check if pf->dev is a properly initialized fd or not. Other than that, I can only invite you (and everybody else) to check out=20 =2Dcurrent. Not only does it provide newer, better pf- and altq-support, yo= u=20 will also help to shake out the last bunch of bugs in order to make 5.3 a=20 success. Thanks! =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-02=_8jDBBoy3wGQ0PLM Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBBDj8XyyEoT62BG0RArq1AJ9J4M+WGAah+jZETeqQTzvQJk5/6ACfRKev 8dmVi9j/iJjEmMpwdxXnZ2I= =3aqg -----END PGP SIGNATURE----- --Boundary-02=_8jDBBoy3wGQ0PLM--