From owner-freebsd-questions@FreeBSD.ORG Thu Dec 28 03:57:22 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B9C8F16A407 for ; Thu, 28 Dec 2006 03:57:22 +0000 (UTC) (envelope-from smarts40@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id 697A713C470 for ; Thu, 28 Dec 2006 03:57:22 +0000 (UTC) (envelope-from smarts40@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so4204296wxc for ; Wed, 27 Dec 2006 19:57:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=SLiGdjAQclE+dvPJ9L2Q9cTGUgO93lY0H7eweC7B4nKG+gepECcBRdEM4hKLn+6rxsgOVdoFgZaNhh+JYJaiIVT+4WTrBVw0kSPTA7poJV9XBB4+gd02EsumwsXvFAYicV+G8SVQNOk+azTrcrU3wSeERX35V6AkwXGNgQycNdk= Received: by 10.70.74.1 with SMTP id w1mr11366663wxa.1167276589136; Wed, 27 Dec 2006 19:29:49 -0800 (PST) Received: by 10.70.72.19 with HTTP; Wed, 27 Dec 2006 19:29:49 -0800 (PST) Message-ID: Date: Wed, 27 Dec 2006 22:29:49 -0500 From: "ryan m" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Override dummynet delay limit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2006 03:57:22 -0000 Hello, I'm trying to override the 10 second limit to a dummynet pipe delay, and allow it to be unlimited (or at least several minutes). I found this email in the achives: http://lists.freebsd.org/pipermail/freebsd-net/2004-March/003370.html Following the email I modified /usr/src/sbin/ipfw/ipfw2.c I changed: if (do_pipe == 1) { if (p.pipe_nr == 0) errx(EX_DATAERR, "pipe_nr must be > 0"); if (p.delay > 10000) errx(EX_DATAERR, "delay must be < 10000"); } else { /* do_pipe == 2, queue */ to if (do_pipe == 1) { if (p.pipe_nr == 0) errx(EX_DATAERR, "pipe_nr must be > 0"); // if (p.delay > 10000) // errx(EX_DATAERR, "delay must be < 10000"); } else { /* do_pipe == 2, queue */ and I recompiled via in the /usr/src directory make buildkernel KERNCONF=DUMMYNET make installkernel KERNCONF=DUMMYNET but I still get prompt$ ipfw pipe 1 config delay 60000 ipfw: delay must be < 10000 I've also tried changing that message in the source code to say something different, but the changes aren't updated at the command line message, so it seems my changes aren't actually be taken into effect via my approach. I've also tried doing a recursive grep on "delay must be" in the /usr/src directory thinking I might be changing the wrong file, but this is the only place that it's logical for me to need to change to get the desired effect. What am I doing wrong, please help? Thank you kindly for your time, Ryan research assistant at Lehigh University