bsdperimeter/pfsense-packages — pull request #231 by phil-davis (2012-03-27 05:12:51+00:00)
Title: Prevent duplicated pfblocker rules on some interfaces

This addresses http://forum.pfsense.org/index.php/topic,42543.msg225835.html#msg225835
If there are floating rules, or any other rule that has interface="" then these can be mixed up in the config file among the rules for a real interface. e.g. in my config I have rules for WAN, LAN and then OPT1. But among the WAN rules is a floating rule. The 2 groups of WAN rules in the config (with a floating rule between) and the old pfblocker logic causes the pfblocker rules for WAN to be added twice.
The improved if test fixes this.