...
RFC 1983 states that “dotted decimal notation… refers [to] IPv4 addresses of the form A.B.C.D; where each letter represents, in decimal, one byte of a four-byte IPv4 address”. In other words, the dotted-decimal notation separates four decimal byte values by the dot, or period, character (‘.’). Each decimal value represents one byte of the IPv4 address starting with the most significant byte in network order.
Dotted Decimal Notation | Hexadecimal EquivalentDOTTED DECIMAL NOTATION | HEXADECIMAL EQUIVALENT |
---|---|---|
127.0.0.1 | 0x7F000001 | |
192.168.1.64 | 0xC0A80140 | |
255.255.255.0 | 0xFFFFFF00 | |
MSB ….…… LSB | MSB …. LSB |
MSB
Most Significant Byte in Dotted-Decimal IPv4 Address
...
Here is an example of an IPv6 address : fe80:0db8:85a3:0000:0000:8a2e:0370:7334
Leading zeros can be omitted in the IPv6 address representation. Therefore, the example above will become : fe80:db8:85a3:0:0:8a2e:370:7334.
Finally, a compact representation also exists for IPv6 addresses where consecutive groups of zeros can be replace by a two colons (::). The example IPv6 address will become fe80:db8:85a3::8a2e:370:7334.
The function NetASCII_Str_to_IP()
only accepts IPv6 colon-hexadecimal ASCII string that includes only hexadecimal values and the colon character (':').