On Monday 30 May 2011 01:14:38 Tom Eastep wrote: > 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 Using your original suggestion with a minor change works: my $family = $Shorewall::Chains::family; Your patch also works. I don't mind which I use. So if you prefer to leave the patch off, thats okay with me. Thanks. Steven. ------------------------------------------------------------------------------ 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
