From owner-freebsd-ipfw@FreeBSD.ORG Fri Mar 25 16:03:17 2005 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF6F016A4CE for ; Fri, 25 Mar 2005 16:03:17 +0000 (GMT) Received: from mail1.wpi.edu (MAIL1.WPI.EDU [130.215.36.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 704E343D41 for ; Fri, 25 Mar 2005 16:03:17 +0000 (GMT) (envelope-from dmehta@WPI.EDU) Received: from mcafee.wpi.edu (MCAFEE.WPI.EDU [130.215.36.86]) by mail1.wpi.edu (8.13.3/8.13.3) with SMTP id j2PG3Gqg018733 for ; Fri, 25 Mar 2005 11:03:17 -0500 Received: from SMTP.WPI.EDU(130.215.36.186) by mcafee.wpi.edu via csmap id 730c29ec_9d47_11d9_8ddc_00304811e63a_8849; Fri, 25 Mar 2005 11:03:38 -0500 (EST) Received: from webmail.wpi.edu (UTILITY4.WPI.EDU [130.215.36.218]) by SMTP.WPI.EDU (8.13.3/8.13.3) with SMTP id j2PG3G4K029586 for ; Fri, 25 Mar 2005 11:03:16 -0500 Received: from 129.55.200.20 (SquirrelMail authenticated user dmehta) by webmail.WPI.EDU with HTTP; Fri, 25 Mar 2005 11:03:16 -0500 (EST) Message-ID: <42141.129.55.200.20.1111766596.squirrel@webmail.WPI.EDU> Date: Fri, 25 Mar 2005 11:03:16 -0500 (EST) From: dmehta@WPI.EDU To: freebsd-ipfw@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Dummynet errors X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 16:03:18 -0000 Hi all, I am trying to use Dummynet on a modified FreeBSD 4.8 kernel. I have loaded Dummynet in to the kernel; and yes, I've confirmed this using sysctl and dmesg. I can add pipes fine, but pipe config returns the following error: # ipfw list 65535 allow ip from any to any # ipfw add pipe 1 ip from any to tc-le3 00100 pipe 1 ip from any to 172.18.1.103 # ipfw pipe 1 config delay 100ms ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument Now I tried debugging this and the error is invoked in ip_dummynet.c here: case IP_DUMMYNET_CONFIGURE : p = &tmp_pipe ; error = sooptcopyin(sopt, p, sizeof *p, sizeof *p); if (error) break ; error = config_pipe(p); break ; inside the sooptcopyin() call which returns an EINVAL. Any ideas on what I should be doing? Thanks! Devan