ot::Ip4::Cidr::FromString() method
Converts the IPv4 CIDR string to binary. The string format uses quad-dotted notation of four bytes in the address with the length of prefix (e.g., "127.0.0.1/32").
Arguments
aString
A pointer to the null-terminated string.
Return value
kErrorNone Successfully parsed the IPv4 CIDR string. kErrorParse Failed to parse the IPv4 CIDR string.
ot::Ip4::Cidr::FromString() calls 2 functions:
![]()
ot::Ip4::Cidr::FromString()
ot::Ip4::Cidr::FromString() reads 4 variables:
![]()
ot::Ip4::Cidr::FromString()