Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2005 02:37:14 +0100
From:      Laszlo Zsolt Nagy <nagylzs@freemail.hu>
To:        freebsd-questions@freebsd.org
Subject:   dummynet trick 
Message-ID:  <423A30CA.1080901@freemail.hu>

next in thread | raw e-mail | index | archive | help
Hello,

This is the beginning of my script:

ipfw -q flush
ipfw pipe 1 config bw 729kbit/s
ipfw pipe 2 config bw 121kbit/s
ipfw queue 1 config pipe 1 weight 94
ipfw queue 2 config pipe 1 weight 5
ipfw queue 3 config pipe 1 weight 1
ipfw queue 4 config pipe 2 weight 94
ipfw queue 5 config pipe 2 weight 5
ipfw queue 6 config pipe 2 weight 1

Everything runs okay except this:

    ipfw queue 3 config pipe 1 weight 1

results in:

   ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Invalid argument

But when I change to this:

    ipfw queue 22 config pipe 1 weight 1

then it works just fine. What the hell is this?


   Laci


p.s.: FreeBSD 4.8-p27




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?423A30CA.1080901>