Added IPv6 temporary and deprecated functions

Is it possible to write this without opening a socket and knowing the
iface name?