layer2 filtering and dummynet, bw reduced by half

2005-10-03 Thread Patrick Tracanelli
Hello, I am doing some simple tests in a specific enviroment where layer2 filtering and dummynet will work together. There is a complex set of FW rules, which showed a behaviour where, whenever I turn layer2 filtering on, dummynet configured pipes get the configured BW reduced by half. To

Re: layer2 filtering and dummynet, bw reduced by half

2005-10-03 Thread Luigi Rizzo
you are passing traffic through the pipe twice. you have to decide if your rules should apply tto layer2 or not and write the rules accordingly luigi On Mon, Oct 03, 2005 at 01:07:56PM -0300, Patrick Tracanelli wrote: Hello, I am doing some simple tests in a specific enviroment where

Re: layer2 filtering and dummynet, bw reduced by half

2005-10-03 Thread Patrick Tracanelli
Luigi Rizzo wrote: you are passing traffic through the pipe twice. you have to decide if your rules should apply tto layer2 or not and write the rules accordingly Why are they going twice through the pipe? When net.link.ether.ipfw=1 you pass it through all rules twice? first match wins does

Re: layer2 filtering and dummynet, bw reduced by half

2005-10-03 Thread Luigi Rizzo
see the ipfw manpage near the eginning with the graph showing the packet flow. layer2 means the rule matches only on layer2. not layer2 matches only on layer 3. if you don't put anything, it matches both layer2 and layer3. luigi On Mon, Oct 03, 2005 at 01:27:39PM -0300, Patrick Tracanelli