Re: Override dummynet delay limit

2006-12-27 Thread Dan Nelson
In the last episode (Dec 27), ryan m said:
> 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

which is the source to /sbin/ipfw
 
> and I recompiled via
> in the /usr/src directory
> make buildkernel KERNCONF=DUMMYNET
> make installkernel KERNCONF=DUMMYNET

which rebuilt the kernel and left /sbin/ipfw untouched
 
> but I still get
> 
> prompt$ ipfw pipe 1 config delay 6
> ipfw: delay must be < 1

You need to rebuild ipfw :)  cd to /usr/src/sbin/ipfw, run "make obj &&
make depend && make && make install" .

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Override dummynet delay limit

2006-12-27 Thread ryan m

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 > 1)
 errx(EX_DATAERR, "delay must be < 1");
   } 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 > 1)
//  errx(EX_DATAERR, "delay must be < 1");
   } 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 6
ipfw: delay must be < 1

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"