Added preprocessing macros to switch between IPv4 and IPv6
Actual use of the preprocessing macros
Merge pull request #1 from lukhio/IPv6

IPv6 support