Date: Thu, 16 Sep 2004 04:09:50 -0000 From: Max Laier <max@love2party.net> To: pf4freebsd@freelists.org Cc: Jonas Davidsson <aphex@bredband.net> Subject: [pf4freebsd] Re: [ALTQ] DIOCGIFSPEED: Bad file descriptor Message-ID: <200407260049.32209.max@love2party.net> In-Reply-To: <410426B8.2050409@bredband.net> References: <410426B8.2050409@bredband.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 descriptor" > 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 valid (DIOCGIFSPEED returns EINVAL to indicate error) so that means that somehow the reference to "/dev/pf" got scrabbled or was never setup correctly (which would be strange when everything else works). If you are familiar with gdb, you could try to set a breakpoint in "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 -current. Not only does it provide newer, better pf- and altq-support, you will also help to shake out the last bunch of bugs in order to make 5.3 a success. Thanks! -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBBDj8XyyEoT62BG0RArq1AJ9J4M+WGAah+jZETeqQTzvQJk5/6ACfRKev 8dmVi9j/iJjEmMpwdxXnZ2I= =3aqg -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407260049.32209.max>
