Ir al contenido principal

Entradas

Mostrando entradas de mayo, 2017

CIDR to netmask

To begin with, something basic but useful, a LabVIEW VI for converting CIDR suffix to a standard IP mask. As you know, in CIDR format the number after the IP indicates the bits that address uses. If you need to convert to a tradicional subnet mask, this VI comes handy.So, a CIDR of 24 will return a 255.255.255.0 mask, 28 is 255.255.255.240, etc. Pretty simple, but a lot of applications demand netmasks in this format.Download (VI for LabVIEW 2016)LabVIEW still only supports IPv4, so I haven't delved into the complexities of IPv6 (we'd need a U128 data type for that).

Welcome

Welcome to Solar Code, a personal blog by Aitor Solar (yeah, the blog's name is just a bad pun on my surname). Here I will post my programming tips and solutions, mainly for LabVIEW (though some JavaScript is foreseen). All the code and tips in this blog come with no warranty, you use it at your own risk. Any questions regarding it should be directed to Aitor Solar at aitor.solar@gmail.com.