# calculate broadcast address my $brodval = ( $addrval & $maskval ) + ( ~ $maskval );