On 2/9/13 6:42 PM, "Mr Dash Four" <[email protected]> wrote:
> >>> 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" If you don't pass a parameter to an action, but refer to the parameter in the body then you must specify a default value using a DEFAULTS entry. -Tom You do not need a parachute to skydive. You only need a parachute to skydive twice. ------------------------------------------------------------------------------ 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
