Solved convertIpStringToBinary fails in some scenarios

This topic has been solved
P

PaulB

Guest
convertIpStringToBinary fails in some scenarios because it tries to handle a situation in which the input has already been converted. It would probably be better if it were just simple wrappers around inet_pton().

In particular, a valid IPv6 address in its string representation can be a valid IPv4 address in its binary representation. Similarly, a valid IPv6 address in its binary representation can be a different IPv6's string representation.

For example:
  • ...

Read more

Continue reading...