vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Wed, Feb 16, 2005 at 06:36:19PM +0100, Manon Goo wrote: > in which order are the rules matched ? > is it in the order written ? (interface, af, proto, from, to, user, flags > ... ) > can I optimize / mess up by putting the line in an other order > or does pf have a preferred lookup order ? The order of the criteria in a single rule does not matter, as long as the parser understands it. The criteria are parsed and stored in a structure, which is transfered to the kernel in one block (so the same thing will be transfered no matter what order you specify the criteria in). The kernel will evaluate the criteria in a fixed order, in general the cheap ones come first. The result is not affected by the order of evaluation of the criteria within a single rule, so you don't need to consider that when writing rules. Use the order that makes the rules most human-readable to you. Daniel |