Here’s another function that does the reverse of the other one (CIDR 2 Decimal)
It’s a bit longer since it’s more complicated to convert the decimal value back into CIDR and make sure it’s in the correct format
This function takes in the CIDR address (/x notation) and returns it in a decimal notation (a.b.c.d)
If you’re looking for information about how CIDR works I recommend the wikipedia articles :
Jóhannes H. Laxdal is a specialized humanoid carbon unit whose field is computers and telling lousy jokes, it has a tendency to put "well" before every sentence it utters. In here you will find its ramblings about computer-related stuff.
Tags.net 7 8 2008 2008 R2 Administrator Administrator for web ADSI Application Pool AppPool asp.net backup BannerBitmap C# CentOS CIDR Create debian Decimal Dedicated Server Enumerate Enumerate Websites error IE 7 IIS IIS 6 install banner L4D2 Left 4 dead 2 Linux PeriodicRestartSchedule php Recycle Recycling Samba script spam Submask user-agent Website windows Windows 7 Windows 2008 R2 Windows Media Services WMS