Add functions for IPv4 method conversion