212 Posted April 20, 2007 Share Posted April 20, 2007 Hi all I need to generate ip mask list from list with ip ranges such as ..... I have list with this 62.213.0.0 - 62.213.127.255 62.217.160.0 - 62.217.191.255 62.231.0.0 - 62.231.31.255 62.231.160.0 - 62.231.191.255 77.34.0.0 - 77.35.255.255 77.37.128.0 - 77.37.255.255 77.39.0.0 - 77.39.127.255 77.40.0.0 - 77.40.127.255 77.41.0.0 - 77.41.255.255 77.43.128.0 - 77.43.255.255 77.45.128.0 - 77.45.255.255 77.50.0.0 - 77.51.255.255 77.66.128.0 - 77.66.255.255 needed to generate ip mask list like this 63.213.0.* 63.213.1.* 63.213.2.* ...... 77.66.254.* 77.66.255.* is there a way to make it?? May be in php or win soft?? Quote Link to comment Share on other sites More sharing options...
taith Posted April 20, 2007 Share Posted April 20, 2007 function mask_ip($ip){ return substr($ip, 0, strpos($ip, strrchr($ip, "."))).'.*'; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.