good functions for network scan, include network mask types