On 5/29/11 4:16 PM, Steven Jan Springl wrote: > Tom > > I have an action extension script that tests the variable $family to > determine > if IPv4 or IPv6 is being used. > > The script worked with shorewall(6) 4.4.19. I believe it stopped working > shorewall(6) 4.4.20 Beta4. > > I now get the following messages: > > Compiling /etc/shorewall1/action.Extns for chain %Extns... > > Use of uninitialized value $Shorewall::Rules::family in numeric eq (==) at > (eval 9) line 28, <$currentfile> line 18. > > Is there anything I need to do to be able reference $family within the script. > > I have attached a copy of the script.
And here is a patch that will restore your ability to simple declare 'our $family'. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 146f41a..24fd7b0 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -66,7 +66,7 @@ my %default_actions; my %macros; -my $family; +our $family; my @builtins;
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
