From 3ac683565058d67ac1d8daddc05c90b39ce6bd92 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 21 Mar 2013 11:30:59 -0700 Subject: [PATCH] Handle IPv6 /32 networks correctly. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/IPAddrs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/IPAddrs.pm b/Shorewall/Perl/Shorewall/IPAddrs.pm index 5be1796ed..73de45ae5 100644 --- a/Shorewall/Perl/Shorewall/IPAddrs.pm +++ b/Shorewall/Perl/Shorewall/IPAddrs.pm @@ -690,7 +690,7 @@ sub validate_6net( $$ ) { assert( ! $allow_name ); ( $net , $vlsm ); } elsif ( valid_6address ( $net ) ) { - $vlsm == 32 ? $net : "$net/$vlsm"; + $vlsm == 128 ? $net : "$net/$vlsm"; } else { $net; }