>> Rather: >> >> ?set $p1 $1 ? $1 : '-' >> ?set $p2 $2 ? $2 : '-' >> action2( $p1, $p2 ) >> >> Still not perfect but simpler than what you suggested. > > Patch attached -- it allows parameters to be omitted in action invocations. action1 ~~~~~~~ action2($1,$2,$3,$4)
rules ~~~~~ action1(one,two,three) I get: "ERROR: Invalid action parameter ($4) /etc/shorewall/action.action1" ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
