Normalize IPv6 addresses in decompose_net

This commit is contained in:
Tom Eastep 2011-02-03 09:57:47 -08:00
parent 4ed4443abb
commit 23eef3b215

View File

@ -281,7 +281,7 @@ sub decompose_net( $ ) {
my $net = $_[0];
( $net, my $vlsm ) = validate_net( $net , 0 );
( ( $family == F_IPV4 ? encodeaddr( $net) : $net ) , $vlsm );
( ( $family == F_IPV4 ? encodeaddr( $net) : normalize_6addr( $net ) ) , $vlsm );
}