Add IPv4 and IPv6 function definitions

Add function definitions
Merge pull request #4449 from randyzwitch/master

Add IPv4 and IPv6 function definitions