Add IPv4 and IPv6 function definitions

Add function definitions