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.

Rather than
        'our $family;'
        ...
        if ( $family == ...)

Try

        my $family = $Shorewall::Chains::$family;
        ...
        if ( $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 \________________________________________________

Attachment: 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

Reply via email to